<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Adding new Column in invoce]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=7858</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=7858&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Adding new Column in invoce.]]></description>
		<lastBuildDate>Tue, 04 Dec 2018 16:32:22 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Adding new Column in invoce]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=33489#p33489</link>
			<description><![CDATA[<p>The <strong>function get_invoice_range()</strong> in the invoice report <strong>reporting/rep107.php</strong> uses the sql:<br /></p><div class="codebox"><pre><code>SELECT trans.trans_no, trans.reference
FROM 1_debtor_trans trans 
LEFT JOIN 1_voided voided ON trans.type=voided.type AND trans.trans_no=voided.id
WHERE trans.type=10 AND ISNULL(voided.id);</code></pre></div><p>which extracts the invoices to be printed and example of it is:<br /></p><div class="codebox"><pre><code>trans_no    reference
1    001/2017
2    002/2017
3    003/2017
4    004/2017</code></pre></div><p>The <strong>function get_customer_trans</strong> in <strong>sales/includes/db/cust_trans_db.inc</strong> uses the sql:<br /></p><div class="codebox"><pre><code>SELECT trans.*, ov_amount+ov_gst+ov_freight+ov_freight_tax+ov_discount AS Total,
    cust.name AS DebtorName, cust.address, 
    cust.curr_code, 
    cust.tax_id,
    trans.prep_amount&gt;0 AS prepaid,
    com.memo_, 
    1_shippers.shipper_name, 
    1_sales_types.sales_type, 
    1_sales_types.tax_included, 
    branch.*, 
    cust.discount, 
    1_tax_groups.name AS tax_group_name, 
    1_tax_groups.id AS tax_group_id 
FROM 1_debtor_trans trans
    LEFT JOIN 1_comments com ON trans.type=com.type AND trans.trans_no=com.id
    LEFT JOIN 1_shippers ON 1_shippers.shipper_id=trans.ship_via, 
    1_debtors_master cust, 
    1_sales_types, 
    1_cust_branch branch, 
    1_tax_groups 
WHERE trans.debtor_no=cust.debtor_no
  AND 1_sales_types.id = trans.tpe
  AND branch.branch_code = trans.branch_code
  AND branch.tax_group_id = 1_tax_groups.id;</code></pre></div><p>The delivery date is in another record (type=13) and not in the invoice record (type=10).</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Tue, 04 Dec 2018 16:32:22 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=33489#p33489</guid>
		</item>
		<item>
			<title><![CDATA[Re: Adding new Column in invoce]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=33487#p33487</link>
			<description><![CDATA[<p>Hi Apmuthu<br />I really appreciate your advice, but i don&#039;t think i can do it my self ...<br />I really looking for this job to be done<br />I will be appreciated if you contact me in my E-mail: bahashin@gmail.com<br />to discuss this issue in more details ...</p>]]></description>
			<author><![CDATA[null@example.com (bahashin)]]></author>
			<pubDate>Mon, 03 Dec 2018 17:46:12 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=33487#p33487</guid>
		</item>
		<item>
			<title><![CDATA[Re: Adding new Column in invoce]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=33476#p33476</link>
			<description><![CDATA[<p>Make an extension to implement this ether with a sys_prefs flag to toggle the functionality or have an option in the report request form as a parameter. ST_CUSTDELIVERY (13) in gl_trans table has the trans_date as the delivery date.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Mon, 03 Dec 2018 03:47:51 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=33476#p33476</guid>
		</item>
		<item>
			<title><![CDATA[Adding new Column in invoce]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=33473#p33473</link>
			<description><![CDATA[<p>hi every body<br />I am trying to add one more field in invoice with name (Delivery date) for each item in Sales Items ...As it was required by our company because we are delivering different items in different times ...<br />I have posted this in FA Modification assuming that i can do it my self but all my trials has been failed...<br />Now i am looking for some one to complete this task for me with what fees it requires</p><p>Please if some one interested in this task contact me and you are welcome</p>]]></description>
			<author><![CDATA[null@example.com (bahashin)]]></author>
			<pubDate>Sat, 01 Dec 2018 19:16:08 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=33473#p33473</guid>
		</item>
	</channel>
</rss>
