<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Salesman Listing Report 106 - Fix]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=8335</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=8335&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Salesman Listing Report 106 - Fix.]]></description>
		<lastBuildDate>Sun, 18 Aug 2019 05:56:53 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Salesman Listing Report 106 - Fix]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=35717#p35717</link>
			<description><![CDATA[<p>@joe <a href="https://github.com/FrontAccountingERP/FA/commit/bb2691a9b508aaf3f75b38ca4768f6bc949c7cd5">committed</a> it.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Sun, 18 Aug 2019 05:56:53 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=35717#p35717</guid>
		</item>
		<item>
			<title><![CDATA[Re: Salesman Listing Report 106 - Fix]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=35689#p35689</link>
			<description><![CDATA[<p>Thanks, will have a look at this.</p><p>Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Fri, 16 Aug 2019 17:12:57 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=35689#p35689</guid>
		</item>
		<item>
			<title><![CDATA[Salesman Listing Report 106 - Fix]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=35685#p35685</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (dearmosin)]]></author>
			<pubDate>Fri, 16 Aug 2019 17:05:21 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=35685#p35685</guid>
		</item>
	</channel>
</rss>
