<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Salesman Listing Report 106 - Fix]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=8335&amp;type=atom" />
	<updated>2019-08-18T05:56:53Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=8335</id>
		<entry>
			<title type="html"><![CDATA[Re: Salesman Listing Report 106 - Fix]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=35717#p35717" />
			<content type="html"><![CDATA[<p>@joe <a href="https://github.com/FrontAccountingERP/FA/commit/bb2691a9b508aaf3f75b38ca4768f6bc949c7cd5">committed</a> it.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2019-08-18T05:56:53Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=35717#p35717</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Salesman Listing Report 106 - Fix]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=35689#p35689" />
			<content type="html"><![CDATA[<p>Thanks, will have a look at this.</p><p>Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2019-08-16T17:12:57Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=35689#p35689</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Salesman Listing Report 106 - Fix]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=35685#p35685" />
			<content type="html"><![CDATA[<p>Salesman Listing Report 106</p><p>while fetching salesman listing report current sql query is conflicting with order_no displaying mismatch data. I have fix this adding AND sorder.trans_type = 30 to correct this issue.</p><p>&nbsp; &nbsp; $sql = &quot;SELECT DISTINCT trans.*,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ov_amount+ov_discount AS InvoiceTotal,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cust.name AS DebtorName,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cust.curr_code,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; branch.br_name,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sorder.customer_ref,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; salesman.*<br />&nbsp; &nbsp; &nbsp; &nbsp; FROM &quot;.TB_PREF.&quot;debtor_trans trans,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &quot;.TB_PREF.&quot;debtors_master cust,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &quot;.TB_PREF.&quot;sales_orders sorder,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &quot;.TB_PREF.&quot;cust_branch branch,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;.TB_PREF.&quot;salesman salesman<br />&nbsp; &nbsp; &nbsp; &nbsp; WHERE sorder.order_no=trans.order_<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;AND trans.branch_code=branch.branch_code<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;AND sorder.trans_type = 30<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;AND branch.salesman=salesman.salesman_code<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;AND trans.debtor_no=cust.debtor_no<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;AND (trans.type=&quot;.ST_SALESINVOICE.&quot; OR trans.type=&quot;.ST_CUSTCREDIT.&quot;)<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;AND trans.tran_date&gt;=&#039;$fromdate&#039;<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;AND trans.tran_date&lt;=&#039;$todate&#039;<br />&nbsp; &nbsp; &nbsp; &nbsp; ORDER BY salesman.salesman_code, trans.tran_date&quot;;</p>]]></content>
			<author>
				<name><![CDATA[dearmosin]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=44699</uri>
			</author>
			<updated>2019-08-16T17:05:21Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=35685#p35685</id>
		</entry>
</feed>
