<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Incentive or Penalty while receiving goods]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=5550&amp;type=atom" />
	<updated>2015-02-17T13:15:00Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=5550</id>
		<entry>
			<title type="html"><![CDATA[Re: Incentive or Penalty while receiving goods]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=22593#p22593" />
			<content type="html"><![CDATA[<p>The code appears incomplete since the &quot;incen_fine&quot; form variable is not defined (did you mean to replace the &#039;mahamai&#039; with a single +Incentive / -Fine variable).</p><p>Any reason why you would want to comment out the $taxes and $tax_total assignments and prevent it forming part of the $display_total?</p><p>I would expect the last part of the <em>function <strong>display_po_items()</strong></em> to be:<br /></p><div class="codebox"><pre><code>    start_row();
    label_cell(_(&quot;Incentive / -Fine&quot;), &quot;colspan=$colspan align=right&quot;);
    small_amount_cells(null, &#039;incen_fine&#039;, price_format(get_post(&#039;incen_fine&#039;,0)));
    label_cell(&#039;&#039;, &#039;colspan=2&#039;);
    end_row();

//    $display_sub_total = price_format($total + input_num(&#039;incen_fine&#039;));

//    label_row(_(&quot;Sub-total&quot;), $display_sub_total, &quot;colspan=$colspan align=right&quot;,&quot;align=right&quot;, 2);

    $taxes = $order-&gt;get_taxes(input_num(&#039;freight_cost&#039;));
    
    $tax_total = display_edit_tax_items($taxes, $colspan, $order-&gt;tax_included, 2, $order-&gt;trans_type==ST_SUPPINVOICE);

    $display_total = price_format($total + input_num(&#039;freight_cost&#039;) + $tax_total + input_num(&#039;incen_fine&#039;));

    start_row();
    label_cells(_(&quot;Amount Total&quot;), $display_total, &quot;colspan=$colspan align=&#039;right&#039;&quot;,&quot;align=&#039;right&#039;&quot;);
    $order-&gt;order_no ? submit_cells(&#039;update&#039;, _(&quot;Update&quot;), &quot;colspan=2 align=&#039;center&#039;&quot;, _(&quot;Refresh&quot;), true)
        : label_cell(&#039;&#039;, &quot;colspan=2&quot;);
    end_row();

    end_table(1);
    div_end();
}</code></pre></div><p>But where does the &#039;incen_fine&#039; get stored and how?</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2015-02-17T13:15:00Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=22593#p22593</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Incentive or Penalty while receiving goods]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=22591#p22591" />
			<content type="html"><![CDATA[<p>file name and path: /purchasing/includes/ui/po_ui.inc</p><br /><p>&nbsp; &nbsp; start_row();<br />&nbsp; &nbsp; label_cell(_(&quot;Mahamai&quot;), &quot;colspan=$colspan align=right&quot;);<br />&nbsp; &nbsp; small_amount_cells(null, &#039;mahamai&#039;, price_format(get_post(&#039;mahamai&#039;,0)));<br />&nbsp; &nbsp; label_cell(&#039;&#039;, &#039;colspan=2&#039;);<br />&nbsp; &nbsp; end_row();</p><p>&nbsp; &nbsp; $display_sub_total = price_format($total + input_num(&#039;incen_fine&#039;));<br />&nbsp; //&nbsp; $display_sub_total = $display_sub_total - input_num(&#039;mahamai&#039;);</p><p>&nbsp; //&nbsp; label_row(_(&quot;Sub-total&quot;), $display_sub_total, &quot;colspan=$colspan align=right&quot;,&quot;align=right&quot;, 2);<br />&nbsp; //&nbsp; $taxes = $order-&gt;get_taxes(input_num(&#039;freight_cost&#039;));<br />&nbsp; //&nbsp; $tax_total = display_edit_tax_items($taxes, $colspan, $order-&gt;tax_included, 2);</p><p>&nbsp; &nbsp;// $display_total = price_format(($total + input_num(&#039;freight_cost&#039;) + $tax_total));<br />&nbsp; &nbsp; $display_total_if = price_format(&nbsp; &nbsp; $total + input_num(&#039;incen_fine&#039;)&nbsp; &nbsp;);<br />&nbsp; &nbsp; $display_total =&nbsp; &nbsp;price_format(&nbsp; &nbsp; &nbsp;$display_total_if - input_num(&#039;mahamai&#039;)&nbsp; &nbsp;);<br />&nbsp; &nbsp;start_row();</p><p>&nbsp; &nbsp; label_cells(_(&quot;Amount Total&quot;), $display_total, &quot;colspan=$colspan align=right&quot;,&quot;align=right&quot;);<br />&nbsp; &nbsp; //submit_cells(&#039;update&#039;, _(&quot;Update&quot;), &quot;colspan=2 align=&#039;center&#039;&quot;, _(&quot;Refresh&quot;), true);<br />&nbsp; &nbsp; end_row();</p>]]></content>
			<author>
				<name><![CDATA[yeshrao]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20002</uri>
			</author>
			<updated>2015-02-17T12:37:23Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=22591#p22591</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Incentive or Penalty while receiving goods]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=22572#p22572" />
			<content type="html"><![CDATA[<p>It would be nice if you provided the changed files (or actual workflow menu click sequence) so that it may be included in the next version natively.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2015-02-16T16:19:30Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=22572#p22572</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Incentive or Penalty while receiving goods]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=22571#p22571" />
			<content type="html"><![CDATA[<p>Identified work around for our requirement where there is no need to make the changes. While making payments, we exclude or include the penalty or incentive. It gets populated correctly.</p><p>The exercise what we carried out, was able to understand the flow of FA</p>]]></content>
			<author>
				<name><![CDATA[yeshrao]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20002</uri>
			</author>
			<updated>2015-02-16T15:50:09Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=22571#p22571</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Incentive or Penalty while receiving goods]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=22568#p22568" />
			<content type="html"><![CDATA[<p>Provide the changed code to test.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2015-02-16T10:04:07Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=22568#p22568</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Incentive or Penalty while receiving goods]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=22566#p22566" />
			<content type="html"><![CDATA[<p>We have included two input fields in GRN and the total is getting updated as expected. We are unsuccessful when we change the input value and click update. Though the Ajax gets activated but there is no result. Is there anything we are missing here?</p><p>P.S. We have followed the method as in Direct Sales.</p>]]></content>
			<author>
				<name><![CDATA[yeshrao]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20002</uri>
			</author>
			<updated>2015-02-16T06:51:52Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=22566#p22566</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Incentive or Penalty while receiving goods]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=22564#p22564" />
			<content type="html"><![CDATA[<p>If the incentive is calculatable from the quantity, then a enable/disable flag (0/1) is sufficient for it and an amount variable for delays if it is variable with no dependancy will suffice. Better to have a quick entry for those transactions where these issues arise with no fields necessary in the tables. The fields can be avoided altogether if quick entries are used except that manual computation will be necessary.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2015-02-16T06:20:31Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=22564#p22564</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Incentive or Penalty while receiving goods]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=22561#p22561" />
			<content type="html"><![CDATA[<p>No they are not different. We may or may not pay incentive or deduct penalty. Will calculate based on the quantity and pay incentive or deduct the amount w.r.t delayed days. </p><p>As you said, need to add a field and include the same in the screen. Need to make changes in &#039;GL Setup&#039; Screen as well as GRN. Am I right?</p>]]></content>
			<author>
				<name><![CDATA[yeshrao]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20002</uri>
			</author>
			<updated>2015-02-16T02:17:04Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=22561#p22561</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Incentive or Penalty while receiving goods]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=22550#p22550" />
			<content type="html"><![CDATA[<p>Provide an example of the 2 fields envisaged - are they different for each GRN or only their values are different for each GRN or they have some relationship (calculatable formula) with existing constants / field values?</p><p>You might want to experiment with manually entered values into the <strong>sys_prefs</strong> table and / or use special charge / service items in the GRN.</p><p>Checkout the <a href="https://frontaccounting.com/fawiki/index.php?n=Help.DirectGRNEntry">screenshot in the wiki</a> and make a mockup of what you want and link it in here.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2015-02-15T10:35:30Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=22550#p22550</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Incentive or Penalty while receiving goods]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=22547#p22547" />
			<content type="html"><![CDATA[<p>Thanks apmuthu.</p><p>Will it possible to include two input fields under &quot;Suppliers and Purchasing Defaults&quot; while setting up &#039;General GL&#039;. The same should appear in GRN screen. Will it be possible? If yes, method to do this.</p><p>Yeshrao</p>]]></content>
			<author>
				<name><![CDATA[yeshrao]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20002</uri>
			</author>
			<updated>2015-02-15T09:50:16Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=22547#p22547</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Incentive or Penalty while receiving goods]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=22536#p22536" />
			<content type="html"><![CDATA[<p>Will Tags suffice?</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2015-02-14T06:35:15Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=22536#p22536</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Incentive or Penalty while receiving goods]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=22532#p22532" />
			<content type="html"><![CDATA[<p>Thanks apmuthu.</p><p>Forget to mention our way of processing this transaction. We include this transaction as part of our GRN and add the transaction into GL (i.e. the way shipping charges included in Direct Sales). What is the best way to do this.</p><p>Advance thanks </p><p>Towerfour</p>]]></content>
			<author>
				<name><![CDATA[yeshrao]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20002</uri>
			</author>
			<updated>2015-02-14T06:15:00Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=22532#p22532</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Incentive or Penalty while receiving goods]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=22515#p22515" />
			<content type="html"><![CDATA[<p>Journal Voucher / Credit / Debit Notes.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2015-02-13T15:01:21Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=22515#p22515</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Incentive or Penalty while receiving goods]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=22511#p22511" />
			<content type="html"><![CDATA[<p>We normally get our finished product through our contractors. As part of our process we pay incentive for prompt delivery or penalise when the criteria is not met.</p><p>Created as item (serviceable) but does not allow me to add because either the qty is 0 or the item value is negative. How to overcome this issue. Otherwise any better idea</p><p>Regards</p><p>Towerfour</p>]]></content>
			<author>
				<name><![CDATA[towerfour]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19995</uri>
			</author>
			<updated>2015-02-13T06:15:13Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=22511#p22511</id>
		</entry>
</feed>
