<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Invoice Code Problem.]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=3261&amp;type=atom" />
	<updated>2012-08-12T13:29:42Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=3261</id>
		<entry>
			<title type="html"><![CDATA[Invoice Code Problem.]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=13060#p13060" />
			<content type="html"><![CDATA[<p>In customer_invoice.php page there is a function check_quantites(). whose code given below:-</p><p>function check_quantities()<br />{<br />&nbsp; &nbsp; $ok =1;<br />&nbsp; &nbsp; foreach ($_SESSION[&#039;Items&#039;]-&gt;line_items as $line_no=&gt;$itm) {<br />&nbsp; &nbsp; &nbsp; &nbsp; if (isset($_POST[&#039;Line&#039;.$line_no])) {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if($_SESSION[&#039;Items&#039;]-&gt;trans_no) {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $min = $itm-&gt;qty_done;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $max = $itm-&gt;quantity;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } else {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $min = 0;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $max = $itm-&gt;quantity - $itm-&gt;qty_done;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (check_num(&#039;Line&#039;.$line_no, $min, $max)) {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $_SESSION[&#039;Items&#039;]-&gt;line_items[$line_no]-&gt;qty_dispatched =<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;input_num(&#039;Line&#039;.$line_no);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $ok = 0;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; }</p><p>&nbsp; &nbsp; &nbsp; &nbsp; if (isset($_POST[&#039;Line&#039;.$line_no.&#039;Desc&#039;])) {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $line_desc = $_POST[&#039;Line&#039;.$line_no.&#039;Desc&#039;];<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (strlen($line_desc) &gt; 0) {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $_SESSION[&#039;Items&#039;]-&gt;line_items[$line_no]-&gt;item_description = $line_desc;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; }<br /> return $ok;<br />}</p><p>In above code please give me explaination about if (isset($_POST[&#039;Line&#039;.$line_no])) {. </p><p>How $_POST[&#039;Line&#039;.$line_no] (Line No. - 5) works, means what does it means. what will be returned value.</p><p>Waiting for very quick response.</p><br /><p>===============</p><p>Sumit Singh</p>]]></content>
			<author>
				<name><![CDATA[sumitg.mukti]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=2386</uri>
			</author>
			<updated>2012-08-12T13:29:42Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=13060#p13060</id>
		</entry>
</feed>
