<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — plz help, i need to make a invoice with negative amount]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=1565</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=1565&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in plz help, i need to make a invoice with negative amount.]]></description>
		<lastBuildDate>Sun, 24 Jul 2011 20:33:44 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: plz help, i need to make a invoice with negative amount]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=9799#p9799</link>
			<description><![CDATA[<p>Hi. I have seen that this issue was resolved (bug 343) and implemented in 2.3.4, but only in the sales module. I have copied the concept to the purchasing module, as I have had suppliers send me invoices with negative items (even though the total invoice amount is positive). Pretty much exactly what is explained above.</p><p>The patch is below, but I can send it somewhere else if needed. This is my first code submission, so please let me know if there is a better process to follow.</p><br /><p>diff -up ./po_entry_items.php.bug343 ./po_entry_items.php<br />--- ./po_entry_items.php.bug343&nbsp; &nbsp; 2011-07-24 22:24:38.000000000 +0200<br />+++ ./po_entry_items.php&nbsp; &nbsp; 2011-07-24 22:29:03.000000000 +0200<br />@@ -209,6 +209,9 @@ function handle_cancel_po()</p><p> function check_data()<br /> {<br />+&nbsp; &nbsp; global $allow_negative_prices;<br />+&nbsp; &nbsp; $is_inventory_item = is_inventory_item($_POST[&#039;stock_id&#039;]);<br />+<br /> &nbsp; &nbsp; if(!get_post(&#039;stock_id_text&#039;, true)) {<br /> &nbsp; &nbsp; &nbsp; &nbsp; display_error( _(&quot;Item description cannot be empty.&quot;));<br /> &nbsp; &nbsp; &nbsp; &nbsp; set_focus(&#039;stock_id_edit&#039;);<br />@@ -225,7 +228,7 @@ function check_data()<br /> &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; return false;<br />&nbsp; &nbsp; &nbsp;}</p><p>-&nbsp; &nbsp; if (!check_num(&#039;price&#039;, 0))<br />+&nbsp; &nbsp; if (!check_num(&#039;price&#039;, 0) &amp;&amp; (!$allow_negative_prices || $is_inventory_item))<br />&nbsp; &nbsp; &nbsp;{<br /> &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; display_error(_(&quot;The price entered must be numeric and not less than zero.&quot;));<br /> &nbsp; &nbsp; &nbsp; &nbsp; set_focus(&#039;price&#039;);</p>]]></description>
			<author><![CDATA[null@example.com (johanvdb)]]></author>
			<pubDate>Sun, 24 Jul 2011 20:33:44 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=9799#p9799</guid>
		</item>
		<item>
			<title><![CDATA[Re: plz help, i need to make a invoice with negative amount]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=7760#p7760</link>
			<description><![CDATA[<p>No, finally it was not introduced in 2.3 due to lack of resources, but I have just filled related&nbsp; report on Mantis, to investigate the preposition it in near future.<br />Janusz</p>]]></description>
			<author><![CDATA[null@example.com (itronics)]]></author>
			<pubDate>Fri, 17 Dec 2010 12:29:03 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=7760#p7760</guid>
		</item>
		<item>
			<title><![CDATA[Re: plz help, i need to make a invoice with negative amount]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=7750#p7750</link>
			<description><![CDATA[<p>Hi Janusz,</p><p>Is this now working for non-inventory items?</p><p>This is what I&#039;m searching for too, to be able to put a line on the &quot;invoice&quot; with &quot;-&quot;, which is not related to an invoiced item.<br />The total amount will be not negative, it is still an invoice.<br />If a special discount is not already deducted on the invoice, you will create admin-work (people forget to deduct, pay the wrong amount, ask for the special credit, you have to pay back the diff., or they don&#039;t see the sep. credit and ask for a new invoice etc.)</p><p>Thanks,<br />ernie</p>]]></description>
			<author><![CDATA[null@example.com (ferre)]]></author>
			<pubDate>Thu, 16 Dec 2010 15:29:34 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=7750#p7750</guid>
		</item>
		<item>
			<title><![CDATA[Re: plz help, i need to make a invoice with negative amount]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=7104#p7104</link>
			<description><![CDATA[<p>that would be very nice Janusz, let me know plz</p>]]></description>
			<author><![CDATA[null@example.com (shopimport.nl)]]></author>
			<pubDate>Mon, 11 Oct 2010 10:45:44 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=7104#p7104</guid>
		</item>
		<item>
			<title><![CDATA[Re: plz help, i need to make a invoice with negative amount]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=7103#p7103</link>
			<description><![CDATA[<p>Maybe we will find a time to investigate the problem and add this option in 2.3 final.</p><p>Janusz</p>]]></description>
			<author><![CDATA[null@example.com (itronics)]]></author>
			<pubDate>Mon, 11 Oct 2010 10:42:27 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=7103#p7103</guid>
		</item>
		<item>
			<title><![CDATA[Re: plz help, i need to make a invoice with negative amount]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=7102#p7102</link>
			<description><![CDATA[<p>HI Janusz</p><p>we dont want to risk our accounting by editing something in the php file that wil make it able to make negative amount for non-inventory items.</p><p>we hope u wil put it in the next release or in mean time know how we can edit this version without risk side effects in GL</p><p>Gr Geert</p>]]></description>
			<author><![CDATA[null@example.com (shopimport.nl)]]></author>
			<pubDate>Mon, 11 Oct 2010 08:08:55 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=7102#p7102</guid>
		</item>
		<item>
			<title><![CDATA[Re: plz help, i need to make a invoice with negative amount]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=7074#p7074</link>
			<description><![CDATA[<p>FA is designed rather for b2b or wholesale than as a waiter POS. But yes, you can use it for cash sale in your company unless you are Walmart owner <img src="https://frontaccounting.com/punbb/img/smilies/smile.png" width="15" height="15" alt="smile" />.</p><p>Janusz</p>]]></description>
			<author><![CDATA[null@example.com (itronics)]]></author>
			<pubDate>Thu, 07 Oct 2010 21:04:52 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=7074#p7074</guid>
		</item>
		<item>
			<title><![CDATA[Re: plz help, i need to make a invoice with negative amount]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=7072#p7072</link>
			<description><![CDATA[<p>In a real store ( not webshop or virtual store ) u go as customer to a checkout where u pay, this is what we call point of sale. ( http://en.wikipedia.org/wiki/Point_of_sale) </p><p>and it would be nice if there wil come a pos in FA so u can make quick invoices with touchscreen for example with customers in my real store.</p><p>example<br />http://www.fileguru.com/Retail-Man-POS/screenshot<br />http://www.avdsn.com/images/pos1large.jpg</p>]]></description>
			<author><![CDATA[null@example.com (shopimport.nl)]]></author>
			<pubDate>Thu, 07 Oct 2010 09:20:23 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=7072#p7072</guid>
		</item>
		<item>
			<title><![CDATA[Re: plz help, i need to make a invoice with negative amount]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=7067#p7067</link>
			<description><![CDATA[<p>What you mean by POS?<br />Janusz</p>]]></description>
			<author><![CDATA[null@example.com (itronics)]]></author>
			<pubDate>Wed, 06 Oct 2010 19:47:54 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=7067#p7067</guid>
		</item>
		<item>
			<title><![CDATA[Re: plz help, i need to make a invoice with negative amount]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=7053#p7053</link>
			<description><![CDATA[<p>haha thats a good sign right.</p><p>Can u let me know plz when new version is out and if it has this new function in it.</p><p>I know this is not the way i know i have to put a new post but i have one little question, is front accounting working on a POS system ( point of sale) </p><p>greets Geert</p>]]></description>
			<author><![CDATA[null@example.com (shopimport.nl)]]></author>
			<pubDate>Wed, 06 Oct 2010 09:17:42 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=7053#p7053</guid>
		</item>
		<item>
			<title><![CDATA[Re: plz help, i need to make a invoice with negative amount]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=7041#p7041</link>
			<description><![CDATA[<p>Still not sure - there is surprisingly not many bug reports on RC release. We want to be sure it is free form serious bugs before release.<br />Janusz</p>]]></description>
			<author><![CDATA[null@example.com (itronics)]]></author>
			<pubDate>Tue, 05 Oct 2010 10:30:59 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=7041#p7041</guid>
		</item>
		<item>
			<title><![CDATA[Re: plz help, i need to make a invoice with negative amount]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=7029#p7029</link>
			<description><![CDATA[<p>Hi Janusz,</p><p>Thnx for the reply.<br />Yes it would be perfect if u can do this in the next release for non-inventory items.<br />In mean time we wil try to fix that line u said.</p><p>Do u know around somewhere when the next update wil be a fact</p><p>Thnx again and i let u know.</p><p>greets Geert</p>]]></description>
			<author><![CDATA[null@example.com (shopimport.nl)]]></author>
			<pubDate>Mon, 04 Oct 2010 06:24:40 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=7029#p7029</guid>
		</item>
		<item>
			<title><![CDATA[Re: plz help, i need to make a invoice with negative amount]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=7027#p7027</link>
			<description><![CDATA[<p>Ok, maybe we should consider this in next release for non-inventory items (i.e. service type items). In mean time you can try to fix input checks in sales_order_entry.php (in 2.3RC1 about line 462-465 remove the price check). I&#039;m not sure about side effects in GL, so no warranty on this advice though.<br />Janusz</p>]]></description>
			<author><![CDATA[null@example.com (itronics)]]></author>
			<pubDate>Sun, 03 Oct 2010 21:37:38 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=7027#p7027</guid>
		</item>
		<item>
			<title><![CDATA[Re: plz help, i need to make a invoice with negative amount]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=7026#p7026</link>
			<description><![CDATA[<p>Hi Janusz,</p><p>Thnx for your reply.<br />But its not working properly if you only can make a credit for things people buy.<br />Did you read my example in my post here above? then you will understand the reason for this function.</p><p>I work with lots of accounting software because we have lots of customers using differtent accounting software programs.<br />But front accounting is the only program i know that does not have the option for a negative amount in a invoice.</p><p>Can u plz tell me that you consider to put this in one of the next updates, or tell me where do ajust the php files so we can do it our self</p><p>Here in the netherlands its normal to do that.</p><p>Plz read my example with the reason for this negative amount, because the call cost of 750 euro is not something my customer first buys so i can make a credit for it you understand. its just a part of the minutes.</p><p>I have lots of more situations where i better have a negative amounts for a product but the above is the most important.<br />Like when a customer buys some products of us i want to show him a fixed discount in stead of a procentage.<br />example:<br />- website pro with paypal&nbsp; &nbsp; &nbsp;€ 1500<br />- implementation module&nbsp; &nbsp; &nbsp;€ 100<br />- introduction discount&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;€ -50&nbsp; &nbsp;( u see here i want to make a product line with negative amount BUT i cant do that now)<br />_____________________________<br />TOTAL:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; € 1550</p><p>Thnx for your reaction and i hope you can help us.</p><p>regards</p><p>Geert de Graef<br />Shopimport</p>]]></description>
			<author><![CDATA[null@example.com (shopimport.nl)]]></author>
			<pubDate>Sun, 03 Oct 2010 19:54:41 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=7026#p7026</guid>
		</item>
		<item>
			<title><![CDATA[Re: plz help, i need to make a invoice with negative amount]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=7004#p7004</link>
			<description><![CDATA[<p>Normally Credit Note is issued for negative sales and invoice is issued by the seller to a buyer. <br />I&#039;m not sure negative invoice is valid at all from accounting point of view (it is not at least in Poland). Even zero priced items often are treated by auditors as donations and are tax deductible.</p><p>Janusz</p>]]></description>
			<author><![CDATA[null@example.com (itronics)]]></author>
			<pubDate>Thu, 30 Sep 2010 21:47:08 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=7004#p7004</guid>
		</item>
	</channel>
</rss>
