<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Additional Argument in Function Call]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=10317</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=10317&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Additional Argument in Function Call.]]></description>
		<lastBuildDate>Fri, 23 Jun 2023 20:35:38 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Additional Argument in Function Call]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=42396#p42396</link>
			<description><![CDATA[<p>Hello,</p><p>In <strong>purchasing/includes/purchasing_db.inc</strong> the below function call on Line # 200 the third last argument <strong>true</strong> is additional I think</p><div class="codebox"><pre><code>$inv-&gt;add_grn_to_trans($line-&gt;grn_item_id, $line-&gt;po_detail_rec, $line-&gt;stock_id,
            $line-&gt;item_description, $line-&gt;receive_qty, 0, $line-&gt;receive_qty,
            $line-&gt;price, $line-&gt;price, true, get_unit_cost($line-&gt;stock_id), &#039;&#039;);</code></pre></div><div class="codebox"><pre><code>function add_grn_to_trans($grn_item_id, $po_detail_item, $item_code, $item_description, 
        $qty_recd, $prev_quantity_inv, $this_quantity_inv, $order_price, $chg_price, 
        $std_cost_unit=null, $gl_code=&#039;&#039;)
    {
        $this-&gt;grn_items[$grn_item_id] = new grn_item($grn_item_id, $po_detail_item, 
            $item_code, $item_description, $qty_recd, $prev_quantity_inv, $this_quantity_inv, 
            $order_price, $chg_price, $std_cost_unit, $gl_code, $this-&gt;tax_included);

        $this-&gt;src_docs = find_src_invoices($this);

        unset($this-&gt;tax_overrides); // cancel tax overrides after cart change
        return 1;
    }</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (boxygen)]]></author>
			<pubDate>Fri, 23 Jun 2023 20:35:38 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=42396#p42396</guid>
		</item>
	</channel>
</rss>
