<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Invoice Code Problem.]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=3261</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=3261&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Invoice Code Problem..]]></description>
		<lastBuildDate>Sun, 12 Aug 2012 13:29:42 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Invoice Code Problem.]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=13060#p13060</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (sumitg.mukti)]]></author>
			<pubDate>Sun, 12 Aug 2012 13:29:42 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=13060#p13060</guid>
		</item>
	</channel>
</rss>
