<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — How to limit customer negative balance]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=3868</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=3868&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in How to limit customer negative balance.]]></description>
		<lastBuildDate>Wed, 06 Mar 2013 13:42:20 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: How to limit customer negative balance]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=15913#p15913</link>
			<description><![CDATA[<p>It seems no one is interested in this function <img src="https://frontaccounting.com/punbb/img/smilies/smile.png" width="15" height="15" alt="smile" /><br />but it&#039;s effective function and good idea ... but for now i don&#039;t know how to use it</p>]]></description>
			<author><![CDATA[null@example.com (Berctain)]]></author>
			<pubDate>Wed, 06 Mar 2013 13:42:20 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=15913#p15913</guid>
		</item>
		<item>
			<title><![CDATA[How to limit customer negative balance]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=15678#p15678</link>
			<description><![CDATA[<p>Hi I want t insert a query in sales_order_entry.php file<br />that if total of Current balance and sales invoice is less than -500 then form should display a error and if balance is min than max than -500 then it will alow to submit.</p><p>I have created an array which is showing customer current balance before submitting a form. ( $bal )<br />Example: </p><p>if (($bal - $_SESSION[&#039;Items&#039;]-&gt;get_items_total()) &lt; &#039;-500&#039;) {<br />&nbsp; &nbsp; &nbsp; &nbsp; display_error(&quot;Customer balance can not be less than -500.&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp; return false;<br />&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; }<br />I used this code in sales_order_entry.php at line 438 just like this---------------</p><p>if ($_SESSION[&#039;Items&#039;]-&gt;get_items_total() &lt; 0) {<br />&nbsp; &nbsp; &nbsp; &nbsp; display_error(&quot;Bill total amount cannot be less than zero.&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp; return false;<br />&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; return true;</p><p>Pls help me how to write this code and where to paste it.......</p>]]></description>
			<author><![CDATA[null@example.com (shive9jai)]]></author>
			<pubDate>Mon, 18 Feb 2013 05:05:58 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=15678#p15678</guid>
		</item>
	</channel>
</rss>
