<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Question about Variables]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=3655&amp;type=atom" />
	<updated>2012-12-18T19:39:01Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=3655</id>
		<entry>
			<title type="html"><![CDATA[Re: Question about Variables]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=14694#p14694" />
			<content type="html"><![CDATA[<p>Could be default variables injected for Quick Entries or specific instance of certain voucher entry types for invoices.</p><p>The stated code appears only once and it is in the <strong>function sales_order_item_controls()</strong> in the file <strong>sales/includes/ui/sales_order_ui.inc</strong>.</p><p>It is used for Ajax requests for dynamic form population from previously entered values.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2012-12-18T19:39:01Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=14694#p14694</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Question about Variables]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=14688#p14688" />
			<content type="html"><![CDATA[<p>As I&#039;ve been looking over the coding for FA, I frequently find myself wondering where the variables are coming from. For example:<br />&nbsp; &nbsp; &nbsp;</p><div class="quotebox"><blockquote><p>$_POST[&#039;qty&#039;] = number_format2($order-&gt;line_items[$id]-&gt;qty_dispatched, $dec);<br />&nbsp; &nbsp; &nbsp; &nbsp; $_POST[&#039;price&#039;] = price_format($order-&gt;line_items[$id]-&gt;price);<br />&nbsp; &nbsp; &nbsp; &nbsp; $_POST[&#039;Disc&#039;] = percent_format($order-&gt;line_items[$id]-&gt;discount_percent*100);</p></blockquote></div><p>In this snippet, where is the &#039;qty&#039; or &#039;price&#039; or &#039;Disc&#039; coming from? Is that a reference to another array or to the database? <br />If it is a reference to an array, where are the items of that array defined (as in what file)? I am trying to change the line items and it&#039;s hard to know what each line item relies on in order to exist. </p><p>Thanks in advance for your help!</p>]]></content>
			<author>
				<name><![CDATA[reservhotel]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=16779</uri>
			</author>
			<updated>2012-12-18T17:07:50Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=14688#p14688</id>
		</entry>
</feed>
