<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — 2.4.4 no Longer Displays 0.00 Sales Invoices in customer_inquiry.php]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=7683&amp;type=atom" />
	<updated>2018-09-10T03:37:57Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=7683</id>
		<entry>
			<title type="html"><![CDATA[Re: 2.4.4 no Longer Displays 0.00 Sales Invoices in customer_inquiry.php]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=32628#p32628" />
			<content type="html"><![CDATA[<p>This happens when there are no transactions in <strong>function get_customer_trans_version()</strong> in <strong>sales/includes/db/cust_trans_db.inc</strong>. The construct at lines 37-43:<br /></p><div class="codebox"><pre><code>    $sql= &#039;SELECT trans_no, version FROM &#039;.TB_PREF. &#039;debtor_trans
            WHERE type=&#039;.db_escape($type).&#039; AND (&#039;;

    foreach ($trans_no as $key=&gt;$trans)
        $trans_no[$key] =     &#039;trans_no=&#039;.db_escape($trans_no[$key]);

    $sql .= implode(&#039; OR &#039;, $trans_no) . &#039;)&#039;;</code></pre></div><p>can be modified to be<br /></p><div class="codebox"><pre><code>    $sql= &#039;SELECT trans_no, version FROM &#039;.TB_PREF. &#039;debtor_trans
            WHERE type=&#039;.db_escape($type).&#039; AND trans_no IN (&#039;.implode(&#039;,&#039;, db_escape($trans_no)).&#039;)&#039;;</code></pre></div>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2018-09-10T03:37:57Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=32628#p32628</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 2.4.4 no Longer Displays 0.00 Sales Invoices in customer_inquiry.php]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=32627#p32627" />
			<content type="html"><![CDATA[<p>Yes, unfortunately it shows voided invoices now Wished this could be removed and if you click the option to edit a voided it will throw a SQL error.</p><div class="quotebox"><blockquote><p>DATABASE ERROR : document version retreival<br />error code : 1064<br />error message : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near &#039;)&#039; at line 2<br />sql that failed was : SELECT trans_no, version FROM 2_debtor_trans WHERE type=&#039;13&#039; AND ()</p></blockquote></div>]]></content>
			<author>
				<name><![CDATA[trafficpest]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=42061</uri>
			</author>
			<updated>2018-09-10T02:17:02Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=32627#p32627</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 2.4.4 no Longer Displays 0.00 Sales Invoices in customer_inquiry.php]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=32566#p32566" />
			<content type="html"><![CDATA[<p>It is automatically mirrored to /FrontaccountingErp/FA.</p><p>Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2018-08-30T12:09:10Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=32566#p32566</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 2.4.4 no Longer Displays 0.00 Sales Invoices in customer_inquiry.php]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=32565#p32565" />
			<content type="html"><![CDATA[<p>@joe commit <a href="https://sourceforge.net/p/frontaccounting/git/ci/5d8f36d15260bfd9215315935af86b7d96065489/"> this </a> to github as well.</p>]]></content>
			<author>
				<name><![CDATA[kvvaradha]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19348</uri>
			</author>
			<updated>2018-08-30T11:59:05Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=32565#p32565</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 2.4.4 no Longer Displays 0.00 Sales Invoices in customer_inquiry.php]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=32564#p32564" />
			<content type="html"><![CDATA[<p>This has been solved by including a checkbox in the Customer Transactions &#039;Zero values&#039;. Marking this will show the voided and zero valued records.</p><p>Will be committed in a while.</p><p>/Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2018-08-30T07:00:12Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=32564#p32564</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 2.4.4 no Longer Displays 0.00 Sales Invoices in customer_inquiry.php]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=32562#p32562" />
			<content type="html"><![CDATA[<p>Yes, maybe a company flag. Will have a look.</p><p>Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2018-08-29T18:04:46Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=32562#p32562</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 2.4.4 no Longer Displays 0.00 Sales Invoices in customer_inquiry.php]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=32561#p32561" />
			<content type="html"><![CDATA[<p>@joe: should a flag be used or should it simulate the old functionality with the inclusion of the said code?</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2018-08-29T17:33:43Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=32561#p32561</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 2.4.4 no Longer Displays 0.00 Sales Invoices in customer_inquiry.php]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=32558#p32558" />
			<content type="html"><![CDATA[<p>You&nbsp; guys are awesome and that did work.</p><p>Just to let you know it still doesn&#039;t show the delivery notes in the 0.00 amount.</p><p>Thanks again, you guys are always the greatest</p>]]></content>
			<author>
				<name><![CDATA[trafficpest]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=42061</uri>
			</author>
			<updated>2018-08-29T16:37:35Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=32558#p32558</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 2.4.4 no Longer Displays 0.00 Sales Invoices in customer_inquiry.php]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=32547#p32547" />
			<content type="html"><![CDATA[<p>@joe: Please verify and include if okay. Why was this done in the first place - was it the remnant of some debug coding? Or must there be a flag to suppress zero entries?</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2018-08-29T03:16:31Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=32547#p32547</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 2.4.4 no Longer Displays 0.00 Sales Invoices in customer_inquiry.php]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=32545#p32545" />
			<content type="html"><![CDATA[<p>I didn&#039;t know it changed, but to show them,</p><p>sales/includes/db/cust_trans_db.inc<br /> function get_sql_for_customer_inquiry</p><p>Change line 351 to:</p><div class="codebox"><pre><code>    // exclude voided transactions :
            .&quot; AND ISNULL(v.date_)&quot;
        // exclude self-balancing (journal) transactions:

      .&quot; AND (trans.type = &quot; . ST_SALESINVOICE . &quot;
            OR (trans.ov_amount + trans.ov_gst + trans.ov_freight + trans.ov_freight_tax + trans.ov_discount) != 0)&quot;;</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Braath Waate]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=41493</uri>
			</author>
			<updated>2018-08-29T01:36:43Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=32545#p32545</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[2.4.4 no Longer Displays 0.00 Sales Invoices in customer_inquiry.php]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=32544#p32544" />
			<content type="html"><![CDATA[<p>I just upgraded to 2.4.4 from 2.4.1 and it no longer shows sales invoices if they were for free i.e. 0.00 </p><p>We create service invoices for 0.00 when work was guaranteed all the time and can no longer see the clients complete&nbsp; work history.&nbsp; The invoices can no longer be seen all types and I just noticed the delivery notes are missing as well.</p><p>Thank you</p>]]></content>
			<author>
				<name><![CDATA[trafficpest]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=42061</uri>
			</author>
			<updated>2018-08-28T20:50:31Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=32544#p32544</id>
		</entry>
</feed>
