<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Need Salesman wise report]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=4832&amp;type=atom" />
	<updated>2020-04-18T11:57:17Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=4832</id>
		<entry>
			<title type="html"><![CDATA[Re: Need Salesman wise report]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=37279#p37279" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>dofollowbacklinks.us wrote:</cite><blockquote><p>I am newbie in frontaccounting. I am using frontaccounting Version 2.4.8. I have few salesman. Different salesman have different customer. I need salesman wise (filter as salesman) Customer Balances, Aged Customer Analysis, Customer Detail Listing, Sales Summary Report, Order Status Listing separately.</p></blockquote></div>]]></content>
			<author>
				<name><![CDATA[debanjan]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=45409</uri>
			</author>
			<updated>2020-04-18T11:57:17Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=37279#p37279</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Need Salesman wise report]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=37277#p37277" />
			<content type="html"><![CDATA[<p>Not hard as you think. Understand the concept. Every transactions entry, we have to record the salesman id in both sales order and debtor trans tables to retrieve them back while making report.&nbsp; By logical we need to alter the table and add column for salesman.&nbsp; And than while making sales invoices,&nbsp; record the salesman&nbsp; id in that column.&nbsp; With that you can make custom report to get the salesman wise reports.</p>]]></content>
			<author>
				<name><![CDATA[kvvaradha]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19348</uri>
			</author>
			<updated>2020-04-18T04:06:56Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=37277#p37277</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Need Salesman wise report]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=37274#p37274" />
			<content type="html"><![CDATA[<p>Need Salesman wise report, please guide me step by step</p>]]></content>
			<author>
				<name><![CDATA[debanjan]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=45409</uri>
			</author>
			<updated>2020-04-17T21:06:25Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=37274#p37274</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Need Salesman wise report]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=27838#p27838" />
			<content type="html"><![CDATA[<p>Since the TB_PREF is already alaised in the FROM part, it is not necessary anywhere else.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-05-17T17:29:41Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=27838#p27838</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Need Salesman wise report]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=27836#p27836" />
			<content type="html"><![CDATA[<p>Thanks @apmuthu it worked.</p><p>It shall be GROUP BY &quot;.TB_PREF.&quot;debtors_master.debtor_no</p>]]></content>
			<author>
				<name><![CDATA[boxygen]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20175</uri>
			</author>
			<updated>2017-05-16T18:37:43Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=27836#p27836</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Need Salesman wise report]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=27580#p27580" />
			<content type="html"><![CDATA[<p>Replace line 201 in the new file:<br /></p><div class="codebox"><pre><code>    $sql .= &quot; ORDER BY name&quot;;</code></pre></div><p>with<br /></p><div class="codebox"><pre><code>    $sql .= &quot; GROUP BY debtors_master.debtor_no ORDER BY name&quot;;</code></pre></div>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-03-01T15:35:01Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=27580#p27580</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Need Salesman wise report]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=27579#p27579" />
			<content type="html"><![CDATA[<p>The said error occurs because you have the same salesman in 2 or more branches and the <strong>debtors_master</strong> does not specify a particular branch since it should be taken from the transaction itself....</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-03-01T15:24:54Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=27579#p27579</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Need Salesman wise report]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=27436#p27436" />
			<content type="html"><![CDATA[<p>Does this bug appear in the other implementation?<br />Post a copy of the SQL statements after they are formed in the report file.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-01-25T12:44:31Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=27436#p27436</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Need Salesman wise report]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=27418#p27418" />
			<content type="html"><![CDATA[<p>@apmuthu there is a logical bug in this modification. It multiplies the display on report times the number of branches. If a Customer has 2 Branches then its information will be displayed 2 times and if it has 3 branches then its info will be displayed 3 times. on the same report</p><p>http://prntscr.com/dyra0n</p><p>You can check the screen shot</p>]]></content>
			<author>
				<name><![CDATA[boxygen]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20175</uri>
			</author>
			<updated>2017-01-22T07:52:52Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=27418#p27418</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Need Salesman wise report]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=27090#p27090" />
			<content type="html"><![CDATA[<p>Try this. The table alias names&#039; prefixes have been removed.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2016-12-19T11:51:17Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=27090#p27090</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Need Salesman wise report]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=27089#p27089" />
			<content type="html"><![CDATA[<p>Your File Giving Following Errors</p><p>DATABASE ERROR : The customers could not be retrieved<br />error code : 1054<br />error message : Unknown column &#039;debtors_master.debtor_no&#039; in &#039;field list&#039;<br />sql that failed was : SELECT debtors_master.debtor_no, debtors_master.name, debtors_master.curr_code FROM 1_debtors_master INNER JOIN 1_cust_branch ON debtors_master.debtor_no=cust_branch.debtor_no INNER JOIN 1_areas ON cust_branch.area = areas.area_code INNER JOIN 1_salesman ON cust_branch.salesman=salesman.salesman_code WHERE salesman.salesman_code=&#039;1&#039; ORDER BY name</p>]]></content>
			<author>
				<name><![CDATA[boxygen]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20175</uri>
			</author>
			<updated>2016-12-19T10:45:50Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=27089#p27089</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Need Salesman wise report]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=27079#p27079" />
			<content type="html"><![CDATA[<p>Attached is the modified rep102.php file for FA 2.3.25+ to be used with the changes in the previous post.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2016-12-18T13:45:43Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=27079#p27079</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Need Salesman wise report]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=26991#p26991" />
			<content type="html"><![CDATA[<p>In the file <strong>includes/ui/ui_lists.inc</strong>, the function <strong>sales_areas_list()</strong>:<br /></p><div class="codebox"><pre><code>function sales_areas_list($name, $selected_id=null)
{
    $sql = &quot;SELECT area_code, description, inactive FROM &quot;.TB_PREF.&quot;areas&quot;;
    return combo_input($name, $selected_id, $sql, &#039;area_code&#039;, &#039;description&#039;, array());
}</code></pre></div><p>should be made to match it&#039;s peers (function sales_persons_list) as:<br /></p><div class="codebox"><pre><code>function sales_areas_list($name, $selected_id=null, $spec_opt=false)
{
    $opt = array();
    if ($spec_opt !== false)
        $opt = array(&#039;order&#039;=&gt;array(&#039;description&#039;), &#039;spec_option&#039; =&gt; $spec_opt, &#039;spec_id&#039; =&gt; ALL_NUMERIC);
    $sql = &quot;SELECT area_code, description, inactive FROM &quot;.TB_PREF.&quot;areas&quot;;
    return combo_input($name, $selected_id, $sql, &#039;area_code&#039;, &#039;description&#039;, $opt);
}</code></pre></div><p>and the lines in <strong>reporting/includes/reports_classes.inc</strong>:<br /></p><div class="codebox"><pre><code>                case &#039;AREAS&#039;:
                    return sales_areas_list($name);</code></pre></div><p>should be changed to:<br /></p><div class="codebox"><pre><code>                case &#039;AREAS&#039;:
                    return sales_areas_list($name, null, _(&quot;No Sales Area Filter&quot;));</code></pre></div><p>and the string added to the <strong>empty.po</strong> for translations.</p><p>The &quot;AREAS&quot; is used only in the <strong>rep103.php</strong> as of now.<br />The &quot;SALESTYPES&quot; is used only in <strong>rep104.php</strong> and will need similar changes.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2016-12-08T11:36:04Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=26991#p26991</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Need Salesman wise report]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=26960#p26960" />
			<content type="html"><![CDATA[<p>The logs are available as &quot;history&quot; in the appropriate files&#039; github file page. You can &quot;pull&quot; the project into your local Git Repo and track changes (<a href="https://tortoisegit.org/">TortoiseGIT</a> for windows, etc).</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2016-12-05T04:04:36Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=26960#p26960</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Need Salesman wise report]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=26959#p26959" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>apmuthu wrote:</cite><blockquote><p>In @dz&#039;s <a href="https://frontaccounting.com/punbb/viewtopic.php?pid=20154#p20154">post no. 6 in this thread</a>, please correct the function invocation &quot;zone_cells&quot; to be &quot;zone_list_cells&quot; to match the &quot;function zone_row&quot; definition above it.</p></blockquote></div><p>You are right however for this report only zone_list function is used.</p><div class="quotebox"><cite>apmuthu wrote:</cite><blockquote><p>Also, compare your &quot;rep102.php&quot; with the <a href="https://github.com/FrontAccountingERP/FA/blob/master/reporting/rep102.php">current master file</a> as it has been corrected in 4 places that does not reflect in your post - you may be using a dated version. See lines 44 and 49 to 51 in the said file for changes.</p></blockquote></div><p>Is there any log where I can keep checking for any modifications in Master Files or I can Subscribe to changes notifications?</p>]]></content>
			<author>
				<name><![CDATA[boxygen]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20175</uri>
			</author>
			<updated>2016-12-05T03:56:22Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=26959#p26959</id>
		</entry>
</feed>
