<?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 delivery date for each item in invoice]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=7807</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=7807&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in adding delivery date for each item in invoice.]]></description>
		<lastBuildDate>Fri, 16 Nov 2018 18:20:11 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: adding delivery date for each item in invoice]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=33278#p33278</link>
			<description><![CDATA[<p>No need for extra field in any table.</p><p>Use the <strong>function get_customer_trans()</strong> in <strong>sales/includes/db/cust_trans_db.inc</strong> and use the <strong>trans_date</strong> field for the delivery date in your report. An example of the sql used in the said function is:<br /></p><div class="codebox"><pre><code>SET @TRANS_ID:=5;
SET @TRANS_TYPE=13; -- ST_CUSTDELIVERY

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_
      , shippers.shipper_name
      , sales_types.sales_type
      , sales_types.tax_included
      , branch.*
      , cust.discount
      , tax_groups.name AS tax_group_name
      , 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 shippers ON shippers.shipper_id=trans.ship_via
     , 1_debtors_master cust
     , 1_sales_types sales_types
     , 1_cust_branch branch
     , 1_tax_groups tax_groups
WHERE trans.trans_no=@TRANS_ID
  AND trans.type=@TRANS_TYPE
  AND trans.debtor_no=cust.debtor_no
  AND sales_types.id = trans.tpe
  AND branch.branch_code = trans.branch_code
  AND branch.tax_group_id = tax_groups.id</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Fri, 16 Nov 2018 18:20:11 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=33278#p33278</guid>
		</item>
		<item>
			<title><![CDATA[Re: adding delivery date for each item in invoice]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=33270#p33270</link>
			<description><![CDATA[<p>You need to enable debugging mode&nbsp; to see the issues. Not everyone can program without bugs or mistakes. so try with debugging mode and get us the issues, we can help you somehow.</p>]]></description>
			<author><![CDATA[null@example.com (kvvaradha)]]></author>
			<pubDate>Fri, 16 Nov 2018 02:10:13 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=33270#p33270</guid>
		</item>
		<item>
			<title><![CDATA[Re: adding delivery date for each item in invoice]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=33267#p33267</link>
			<description><![CDATA[<p>Dear kvvaradha<br />I appreciate your feedback regarding my problem ..<br />and please forgive my weak knowledge in PHP<br />I have been trying all the last days following your guidance above but all what i get is blank page <br />when changing in functions you mentioned ..</p><p>If you can guide me in more details regarding what should i change in functions I really be appreciated</p>]]></description>
			<author><![CDATA[null@example.com (bahashin)]]></author>
			<pubDate>Thu, 15 Nov 2018 19:32:57 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=33267#p33267</guid>
		</item>
		<item>
			<title><![CDATA[Re: adding delivery date for each item in invoice]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=33223#p33223</link>
			<description><![CDATA[<p>That&#039;s fine to do it. </p><p>All you need to update fields in program and add one ! more field in database.</p><p>Sales order details table and<br /> debtor trans details</p><p>Add a column for delivery date .</p><p>And then go to sales/includes/ui</p><p>Here sales_order_ui.inc file is there. Just find below functions </p><p>add_to_order. - pass one more parameter and do it.<br />display_order_summary<br />sales_order_item_controls</p><p>And now open sales/includes/cart_class.inc update the line_details class with one more field and for date and also pass it to add_to_order function here.</p><br /><p>With in the read and write functions it calls some more db operational functions. Just update that to complete it<br />Sales order entry.php</p><p>Pass the date parameter to add to cart calling function</p>]]></description>
			<author><![CDATA[null@example.com (kvvaradha)]]></author>
			<pubDate>Sun, 11 Nov 2018 01:59:27 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=33223#p33223</guid>
		</item>
		<item>
			<title><![CDATA[adding delivery date for each item in invoice]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=33216#p33216</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 found many topics talking about&nbsp; modifying&nbsp; - sales/view/view_invoice.php and sales/includes/ui/sales_order_ui.inc files , and i have tried all that without success .... We are using last version 2.4.4</p><p>I will be appreciated for some help or advice</p>]]></description>
			<author><![CDATA[null@example.com (bahashin)]]></author>
			<pubDate>Sat, 10 Nov 2018 13:21:33 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=33216#p33216</guid>
		</item>
	</channel>
</rss>
