<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Question about Variables]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=3655</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=3655&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Question about Variables.]]></description>
		<lastBuildDate>Tue, 18 Dec 2012 19:39:01 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Question about Variables]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=14694#p14694</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Tue, 18 Dec 2012 19:39:01 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=14694#p14694</guid>
		</item>
		<item>
			<title><![CDATA[Question about Variables]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=14688#p14688</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (reservhotel)]]></author>
			<pubDate>Tue, 18 Dec 2012 17:07:50 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=14688#p14688</guid>
		</item>
	</channel>
</rss>
