<?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 sales-invoice]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=10394</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=10394&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Adding delivery-date for each item in sales-invoice.]]></description>
		<lastBuildDate>Wed, 15 Nov 2023 04:02:48 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Adding delivery-date for each item in sales-invoice]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=42691#p42691</link>
			<description><![CDATA[<p>Why are you not using multiple deliveries against sales order and then merge deliveries on sales invoice?</p>]]></description>
			<author><![CDATA[null@example.com (boxygen)]]></author>
			<pubDate>Wed, 15 Nov 2023 04:02:48 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=42691#p42691</guid>
		</item>
		<item>
			<title><![CDATA[Adding delivery-date for each item in sales-invoice]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=42635#p42635</link>
			<description><![CDATA[<p>Hi,</p><p>I want the &#039;delivery date&#039; for each item in salesinvoice ((new) column &#039;Date&#039; (&#039;tran_date&#039; of delivery)).&nbsp; I know I have to change the function &#039;get_customer_trans_details&#039; in &#039;/sales/includes/db/cust_trans_details_db.inc&#039;, but how to select the &#039;tran_date&#039; of the delivery in the sql-syntax ?</p><p>This is the function :</p><div class="quotebox"><blockquote><p>function get_customer_trans_details($debtor_trans_type, $debtor_trans_no)<br />{<br />if (!is_array($debtor_trans_no))<br />&nbsp; &nbsp; $debtor_trans_no = array( 0=&gt;$debtor_trans_no );</p><p>&nbsp; &nbsp; $sql = &quot;SELECT line.*,<br />&nbsp; &nbsp; &nbsp; &nbsp; line.unit_price+line.unit_tax AS FullUnitPrice,<br />&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; line.unit_price AS UnitPriceExTax,&nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; line.description AS StockDescription,<br />&nbsp; &nbsp; &nbsp; &nbsp; item.long_description AS StockLongDescription,<br />&nbsp; &nbsp; &nbsp; &nbsp; item.units, item.mb_flag<br />&nbsp; &nbsp; &nbsp; &nbsp; FROM &quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .TB_PREF.&quot;debtor_trans_details line,&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .TB_PREF.&quot;stock_master item<br />&nbsp; &nbsp; &nbsp; &nbsp; WHERE (&quot;;</p><p>&nbsp; &nbsp; $tr=array();<br />&nbsp; &nbsp; foreach ($debtor_trans_no as $trans_no)<br />&nbsp; &nbsp; &nbsp; &nbsp; $tr[] = &#039;debtor_trans_no=&#039;.db_escape($trans_no);</p><p>&nbsp; &nbsp; $sql .= implode(&#039; OR &#039;, $tr);</p><br /><p>&nbsp; &nbsp; $sql.=&nbsp; &nbsp; &quot;) AND debtor_trans_type=&quot;.db_escape($debtor_trans_type).&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; AND item.stock_id=line.stock_id<br />&nbsp; &nbsp; &nbsp; &nbsp; ORDER BY id&quot;;<br />&nbsp; &nbsp; return db_query($sql, &quot;The debtor transaction detail could not be queried&quot;);<br />}</p></blockquote></div><p>Thanks,</p><p>F.</p>]]></description>
			<author><![CDATA[null@example.com (advocaat.pollet)]]></author>
			<pubDate>Sat, 28 Oct 2023 09:08:55 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=42635#p42635</guid>
		</item>
	</channel>
</rss>
