<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Additional Argument in Function Call]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=10317&amp;type=atom" />
	<updated>2023-06-23T20:35:38Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=10317</id>
		<entry>
			<title type="html"><![CDATA[Additional Argument in Function Call]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=42396#p42396" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[boxygen]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20175</uri>
			</author>
			<updated>2023-06-23T20:35:38Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=42396#p42396</id>
		</entry>
</feed>
