<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Delivery against Sales Orders at Different Branches of a Customer]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=7327</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=7327&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Delivery against Sales Orders at Different Branches of a Customer.]]></description>
		<lastBuildDate>Mon, 19 Feb 2018 13:26:44 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Delivery against Sales Orders at Different Branches of a Customer]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=30849#p30849</link>
			<description><![CDATA[<p>&quot;@stefan: Sales Order Tracking will then have to be manual on the description / memo fields.&quot;</p><br /><p>@apmuthu: Yes, that&#039;s why I wrote &quot;not so fine, but acceptable&quot; <img src="https://frontaccounting.com/punbb/img/smilies/smile.png" width="15" height="15" alt="smile" /> <br />Sometimes you just have to keep up with the customer&#039;s requirements, no matter what the code logic is...</p>]]></description>
			<author><![CDATA[null@example.com (stefan)]]></author>
			<pubDate>Mon, 19 Feb 2018 13:26:44 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=30849#p30849</guid>
		</item>
		<item>
			<title><![CDATA[Re: Delivery against Sales Orders at Different Branches of a Customer]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=30821#p30821</link>
			<description><![CDATA[<p>@boxygen: The database integrity will be affected as 1 Sales Order is related to 1 or more Customer Deliveries but 1 Customer Delivery&nbsp; pertains to just 1 Sales Order as the latter has the Cust_Branch defined in it.</p><p>@stefan: Sales Order Tracking will then have to be manual on the description / memo fields.</p><p>The best way is to make a new Sales Order for another cust_branch and edit / move over the subset of items that need to emanate from that other cust_branch to it and effect delivery from it.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Thu, 15 Feb 2018 17:47:18 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=30821#p30821</guid>
		</item>
		<item>
			<title><![CDATA[Re: Delivery against Sales Orders at Different Branches of a Customer]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=30820#p30820</link>
			<description><![CDATA[<p>An easy work around (if you don&#039;t track huge information of this kind) is to create a virtual branch, named Complex, Combined, Flexible or ?????, and use the address field and comments field to specify the real branch detailed enough. It saves the additional complications and is fine on documents, not so fine but acceptable in inquiries...<br />However I have only a few like this.</p>]]></description>
			<author><![CDATA[null@example.com (stefan)]]></author>
			<pubDate>Thu, 15 Feb 2018 09:29:01 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=30820#p30820</guid>
		</item>
		<item>
			<title><![CDATA[Re: Delivery against Sales Orders at Different Branches of a Customer]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=30819#p30819</link>
			<description><![CDATA[<p>I tried this and it worked. But I fear if this creates any anomaly in database and relations. @apmuthu can you just review it.</p><div class="quotebox"><blockquote><p>&lt;?php<br />/**********************************************************************<br />&nbsp; &nbsp; Copyright (C) FrontAccounting, LLC.<br />&nbsp; &nbsp; Released under the terms of the GNU General Public License, GPL,<br />&nbsp; &nbsp; as published by the Free Software Foundation, either version 3<br />&nbsp; &nbsp; of the License, or (at your option) any later version.<br />&nbsp; &nbsp; This program is distributed in the hope that it will be useful,<br />&nbsp; &nbsp; but WITHOUT ANY WARRANTY; without even the implied warranty of<br />&nbsp; &nbsp; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.<br />&nbsp; &nbsp; See the License here &lt;http://www.gnu.org/licenses/gpl-3.0.html&gt;.<br />***********************************************************************/<br />//-----------------------------------------------------------------------------<br />//<br />//&nbsp; &nbsp; Entry/Modify Delivery Note against Sales Order<br />//<br />$page_security = &#039;SA_SALESDELIVERY&#039;;<br />$path_to_root = &quot;../..&quot;;</p><p>include_once($path_to_root . &quot;/sales/includes/cart_class.inc&quot;);<br />include_once($path_to_root . &quot;/includes/session.inc&quot;);<br />include_once($path_to_root . &quot;/includes/data_checks.inc&quot;);<br />include_once($path_to_root . &quot;/sales/includes/sales_db.inc&quot;);<br />include_once($path_to_root . &quot;/sales/includes/sales_ui.inc&quot;);<br />include_once($path_to_root . &quot;/reporting/includes/reporting.inc&quot;);<br />include_once($path_to_root . &quot;/taxes/tax_calc.inc&quot;);</p><p>$js = &quot;&quot;;<br />if ($SysPrefs-&gt;use_popup_windows) {<br />&nbsp; &nbsp; $js .= get_js_open_window(900, 500);<br />}<br />if (user_use_date_picker()) {<br />&nbsp; &nbsp; $js .= get_js_date_picker();<br />}</p><p>if (isset($_GET[&#039;ModifyDelivery&#039;])) {<br />&nbsp; &nbsp; $_SESSION[&#039;page_title&#039;] = sprintf(_(&quot;Modifying Delivery Note # %d.&quot;), $_GET[&#039;ModifyDelivery&#039;]);<br />&nbsp; &nbsp; $help_context = &quot;Modifying Delivery Note&quot;;<br />&nbsp; &nbsp; processing_start();<br />} elseif (isset($_GET[&#039;OrderNumber&#039;])) {<br />&nbsp; &nbsp; $_SESSION[&#039;page_title&#039;] = _($help_context = &quot;Deliver Items for a Sales Order&quot;);<br />&nbsp; &nbsp; processing_start();<br />}</p><p>page($_SESSION[&#039;page_title&#039;], false, false, &quot;&quot;, $js);</p><p>if (isset($_GET[&#039;AddedID&#039;])) {<br />&nbsp; &nbsp; $dispatch_no = $_GET[&#039;AddedID&#039;];</p><p>&nbsp; &nbsp; display_notification_centered(sprintf(_(&quot;Delivery # %d has been entered.&quot;),$dispatch_no));</p><p>&nbsp; &nbsp; display_note(get_customer_trans_view_str(ST_CUSTDELIVERY, $dispatch_no, _(&quot;&amp;View This Delivery&quot;)), 0, 1);</p><p>&nbsp; &nbsp; display_note(print_document_link($dispatch_no, _(&quot;&amp;Print Delivery Note&quot;), true, ST_CUSTDELIVERY));<br />&nbsp; &nbsp; display_note(print_document_link($dispatch_no, _(&quot;&amp;Email Delivery Note&quot;), true, ST_CUSTDELIVERY, false, &quot;printlink&quot;, &quot;&quot;, 1), 1, 1);<br />&nbsp; &nbsp; display_note(print_document_link($dispatch_no, _(&quot;P&amp;rint as Packing Slip&quot;), true, ST_CUSTDELIVERY, false, &quot;printlink&quot;, &quot;&quot;, 0, 1));<br />&nbsp; &nbsp; display_note(print_document_link($dispatch_no, _(&quot;E&amp;mail as Packing Slip&quot;), true, ST_CUSTDELIVERY, false, &quot;printlink&quot;, &quot;&quot;, 1, 1), 1);</p><p>&nbsp; &nbsp; display_note(get_gl_view_str(13, $dispatch_no, _(&quot;View the GL Journal Entries for this Dispatch&quot;)),1);</p><p>&nbsp; &nbsp; if (!isset($_GET[&#039;prepaid&#039;]))<br />&nbsp; &nbsp; &nbsp; &nbsp; hyperlink_params(&quot;$path_to_root/sales/customer_invoice.php&quot;, _(&quot;Invoice This Delivery&quot;), &quot;DeliveryNumber=$dispatch_no&quot;);</p><p>&nbsp; &nbsp; hyperlink_params(&quot;$path_to_root/sales/inquiry/sales_orders_view.php&quot;, _(&quot;Select Another Order For Dispatch&quot;), &quot;OutstandingOnly=1&quot;);</p><p>&nbsp; &nbsp; display_footer_exit();</p><p>} elseif (isset($_GET[&#039;UpdatedID&#039;])) {</p><p>&nbsp; &nbsp; $delivery_no = $_GET[&#039;UpdatedID&#039;];</p><p>&nbsp; &nbsp; display_notification_centered(sprintf(_(&#039;Delivery Note # %d has been updated.&#039;),$delivery_no));</p><p>&nbsp; &nbsp; display_note(get_trans_view_str(ST_CUSTDELIVERY, $delivery_no, _(&quot;View this delivery&quot;)), 0, 1);</p><p>&nbsp; &nbsp; display_note(print_document_link($delivery_no, _(&quot;&amp;Print Delivery Note&quot;), true, ST_CUSTDELIVERY));<br />&nbsp; &nbsp; display_note(print_document_link($delivery_no, _(&quot;&amp;Email Delivery Note&quot;), true, ST_CUSTDELIVERY, false, &quot;printlink&quot;, &quot;&quot;, 1), 1, 1);<br />&nbsp; &nbsp; display_note(print_document_link($delivery_no, _(&quot;P&amp;rint as Packing Slip&quot;), true, ST_CUSTDELIVERY, false, &quot;printlink&quot;, &quot;&quot;, 0, 1));<br />&nbsp; &nbsp; display_note(print_document_link($delivery_no, _(&quot;E&amp;mail as Packing Slip&quot;), true, ST_CUSTDELIVERY, false, &quot;printlink&quot;, &quot;&quot;, 1, 1), 1);</p><p>&nbsp; &nbsp; if (!isset($_GET[&#039;prepaid&#039;]))<br />&nbsp; &nbsp; &nbsp; &nbsp; hyperlink_params($path_to_root . &quot;/sales/customer_invoice.php&quot;, _(&quot;Confirm Delivery and Invoice&quot;), &quot;DeliveryNumber=$delivery_no&quot;);</p><p>&nbsp; &nbsp; hyperlink_params($path_to_root . &quot;/sales/inquiry/sales_deliveries_view.php&quot;, _(&quot;Select A Different Delivery&quot;), &quot;OutstandingOnly=1&quot;);</p><p>&nbsp; &nbsp; display_footer_exit();<br />}<br />//-----------------------------------------------------------------------------</p><p>if (isset($_GET[&#039;OrderNumber&#039;]) &amp;&amp; $_GET[&#039;OrderNumber&#039;] &gt; 0) {</p><p>&nbsp; &nbsp; $ord = new Cart(ST_SALESORDER, $_GET[&#039;OrderNumber&#039;], true);<br />&nbsp; &nbsp; if ($ord-&gt;is_prepaid())<br />&nbsp; &nbsp; &nbsp; &nbsp; check_deferred_income_act(_(&quot;You have to set Deferred Income Account in GL Setup to entry prepayment invoices.&quot;));</p><p>&nbsp; &nbsp; if ($ord-&gt;count_items() == 0) {<br />&nbsp; &nbsp; &nbsp; &nbsp; hyperlink_params($path_to_root . &quot;/sales/inquiry/sales_orders_view.php&quot;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _(&quot;Select a different sales order to delivery&quot;), &quot;OutstandingOnly=1&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp; echo &quot;&lt;br&gt;&lt;center&gt;&lt;b&gt;&quot; . _(&quot;This order has no items. There is nothing to delivery.&quot;) .<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;&lt;/center&gt;&lt;/b&gt;&quot;;<br />&nbsp; &nbsp; &nbsp; &nbsp; display_footer_exit();<br />&nbsp; &nbsp; } else if (!$ord-&gt;is_released()) {<br />&nbsp; &nbsp; &nbsp; &nbsp; hyperlink_params($path_to_root . &quot;/sales/inquiry/sales_orders_view.php&quot;,_(&quot;Select a different sales order to delivery&quot;),<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;OutstandingOnly=1&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp; echo &quot;&lt;br&gt;&lt;center&gt;&lt;b&gt;&quot;._(&quot;This prepayment order is not yet ready for delivery due to insufficient amount received.&quot;)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .&quot;&lt;/center&gt;&lt;/b&gt;&quot;;<br />&nbsp; &nbsp; &nbsp; &nbsp; display_footer_exit();<br />&nbsp; &nbsp; }<br /> &nbsp; &nbsp; // Adjust Shipping Charge based upon previous deliveries TAM<br />&nbsp; &nbsp; adjust_shipping_charge($ord, $_GET[&#039;OrderNumber&#039;]);</p><p>&nbsp; &nbsp; $_SESSION[&#039;Items&#039;] = $ord;<br />&nbsp; &nbsp; copy_from_cart();</p><p>} elseif (isset($_GET[&#039;ModifyDelivery&#039;]) &amp;&amp; $_GET[&#039;ModifyDelivery&#039;] &gt; 0) {</p><p>&nbsp; &nbsp; check_is_editable(ST_CUSTDELIVERY, $_GET[&#039;ModifyDelivery&#039;]);<br />&nbsp; &nbsp; $_SESSION[&#039;Items&#039;] = new Cart(ST_CUSTDELIVERY,$_GET[&#039;ModifyDelivery&#039;]);</p><p>&nbsp; &nbsp; if (!$_SESSION[&#039;Items&#039;]-&gt;prepaid &amp;&amp; $_SESSION[&#039;Items&#039;]-&gt;count_items() == 0) {<br />&nbsp; &nbsp; &nbsp; &nbsp; hyperlink_params($path_to_root . &quot;/sales/inquiry/sales_orders_view.php&quot;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _(&quot;Select a different delivery&quot;), &quot;OutstandingOnly=1&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp; echo &quot;&lt;br&gt;&lt;center&gt;&lt;b&gt;&quot; . _(&quot;This delivery has all items invoiced. There is nothing to modify.&quot;) .<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;&lt;/center&gt;&lt;/b&gt;&quot;;<br />&nbsp; &nbsp; &nbsp; &nbsp; display_footer_exit();<br />&nbsp; &nbsp; }</p><p>&nbsp; &nbsp; copy_from_cart();</p><p>} elseif ( !processing_active() ) {<br />&nbsp; &nbsp; /* This page can only be called with an order number for invoicing*/</p><p>&nbsp; &nbsp; display_error(_(&quot;This page can only be opened if an order or delivery note has been selected. Please select it first.&quot;));</p><p>&nbsp; &nbsp; hyperlink_params(&quot;$path_to_root/sales/inquiry/sales_orders_view.php&quot;, _(&quot;Select a Sales Order to Delivery&quot;), &quot;OutstandingOnly=1&quot;);</p><p>&nbsp; &nbsp; end_page();<br />&nbsp; &nbsp; exit;</p><p>} else {<br />&nbsp; &nbsp; check_edit_conflicts(get_post(&#039;cart_id&#039;));</p><p>&nbsp; &nbsp; if (!check_quantities()) {<br />&nbsp; &nbsp; &nbsp; &nbsp; display_error(_(&quot;Selected quantity cannot be less than quantity invoiced nor more than quantity&nbsp; &nbsp; not dispatched on sales order.&quot;));</p><p>&nbsp; &nbsp; } elseif(!check_num(&#039;ChargeFreightCost&#039;, 0)) {<br />&nbsp; &nbsp; &nbsp; &nbsp; display_error(_(&quot;Freight cost cannot be less than zero&quot;));<br />&nbsp; &nbsp; &nbsp; &nbsp; set_focus(&#039;ChargeFreightCost&#039;);<br />&nbsp; &nbsp; }<br />}</p><p>//-----------------------------------------------------------------------------</p><p>function check_data()<br />{<br />&nbsp; &nbsp; global $Refs, $SysPrefs;</p><p>&nbsp; &nbsp; if (!isset($_POST[&#039;DispatchDate&#039;]) || !is_date($_POST[&#039;DispatchDate&#039;]))&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; display_error(_(&quot;The entered date of delivery is invalid.&quot;));<br />&nbsp; &nbsp; &nbsp; &nbsp; set_focus(&#039;DispatchDate&#039;);<br />&nbsp; &nbsp; &nbsp; &nbsp; return false;<br />&nbsp; &nbsp; }</p><p>&nbsp; &nbsp; if (!is_date_in_fiscalyear($_POST[&#039;DispatchDate&#039;])) {<br />&nbsp; &nbsp; &nbsp; &nbsp; display_error(_(&quot;The entered date is out of fiscal year or is closed for further data entry.&quot;));<br />&nbsp; &nbsp; &nbsp; &nbsp; set_focus(&#039;DispatchDate&#039;);<br />&nbsp; &nbsp; &nbsp; &nbsp; return false;<br />&nbsp; &nbsp; }</p><p>&nbsp; &nbsp; if (!isset($_POST[&#039;due_date&#039;]) || !is_date($_POST[&#039;due_date&#039;]))&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; display_error(_(&quot;The entered dead-line for invoice is invalid.&quot;));<br />&nbsp; &nbsp; &nbsp; &nbsp; set_focus(&#039;due_date&#039;);<br />&nbsp; &nbsp; &nbsp; &nbsp; return false;<br />&nbsp; &nbsp; }</p><p>&nbsp; &nbsp; if ($_SESSION[&#039;Items&#039;]-&gt;trans_no==0) {<br />&nbsp; &nbsp; &nbsp; &nbsp; if (!$Refs-&gt;is_valid($_POST[&#039;ref&#039;], ST_CUSTDELIVERY)) {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; display_error(_(&quot;You must enter a reference.&quot;));<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; set_focus(&#039;ref&#039;);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return false;<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; }<br />&nbsp; &nbsp; if ($_POST[&#039;ChargeFreightCost&#039;] == &quot;&quot;) {<br />&nbsp; &nbsp; &nbsp; &nbsp; $_POST[&#039;ChargeFreightCost&#039;] = price_format(0);<br />&nbsp; &nbsp; }</p><p>&nbsp; &nbsp; if (!check_num(&#039;ChargeFreightCost&#039;,0)) {<br />&nbsp; &nbsp; &nbsp; &nbsp; display_error(_(&quot;The entered shipping value is not numeric.&quot;));<br />&nbsp; &nbsp; &nbsp; &nbsp; set_focus(&#039;ChargeFreightCost&#039;);<br />&nbsp; &nbsp; &nbsp; &nbsp; return false;<br />&nbsp; &nbsp; }</p><p>&nbsp; &nbsp; if ($_SESSION[&#039;Items&#039;]-&gt;has_items_dispatch() == 0 &amp;&amp; input_num(&#039;ChargeFreightCost&#039;) == 0) {<br />&nbsp; &nbsp; &nbsp; &nbsp; display_error(_(&quot;There are no item quantities on this delivery note.&quot;));<br />&nbsp; &nbsp; &nbsp; &nbsp; return false;<br />&nbsp; &nbsp; }</p><p>&nbsp; &nbsp; if (!check_quantities()) {<br />&nbsp; &nbsp; &nbsp; &nbsp; return false;<br />&nbsp; &nbsp; }</p><p>&nbsp; &nbsp; copy_to_cart();</p><p>&nbsp; &nbsp; if (!$SysPrefs-&gt;allow_negative_stock() &amp;&amp; ($low_stock = $_SESSION[&#039;Items&#039;]-&gt;check_qoh()))<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; display_error(_(&quot;This document cannot be processed because there is insufficient quantity for items marked.&quot;));<br />&nbsp; &nbsp; &nbsp; &nbsp; return false;<br />&nbsp; &nbsp; }</p><p>&nbsp; &nbsp; return true;<br />}<br />//------------------------------------------------------------------------------<br />function copy_to_cart()<br />{<br />&nbsp; &nbsp; $cart = &amp;$_SESSION[&#039;Items&#039;];<br />&nbsp; &nbsp; $cart-&gt;ship_via = $_POST[&#039;ship_via&#039;];<br />&nbsp; &nbsp; $cart-&gt;Branch = $_POST[&#039;branch_id&#039;]; //added by faisal<br />&nbsp; &nbsp; $cart-&gt;freight_cost = input_num(&#039;ChargeFreightCost&#039;);<br />&nbsp; &nbsp; $cart-&gt;document_date = $_POST[&#039;DispatchDate&#039;];<br />&nbsp; &nbsp; $cart-&gt;due_date =&nbsp; $_POST[&#039;due_date&#039;];<br />&nbsp; &nbsp; $cart-&gt;Location = $_POST[&#039;Location&#039;];<br />&nbsp; &nbsp; $cart-&gt;Comments = $_POST[&#039;Comments&#039;];<br />&nbsp; &nbsp; $cart-&gt;dimension_id = $_POST[&#039;dimension_id&#039;];<br />&nbsp; &nbsp; $cart-&gt;dimension2_id = $_POST[&#039;dimension2_id&#039;];<br />&nbsp; &nbsp; if ($cart-&gt;trans_no == 0)<br />&nbsp; &nbsp; &nbsp; &nbsp; $cart-&gt;reference = $_POST[&#039;ref&#039;];</p><p>}<br />//------------------------------------------------------------------------------</p><p>function copy_from_cart()<br />{<br />&nbsp; &nbsp; $cart = &amp;$_SESSION[&#039;Items&#039;];<br />&nbsp; &nbsp; $_POST[&#039;ship_via&#039;] = $cart-&gt;ship_via;<br />&nbsp; &nbsp; $_POST[&#039;ChargeFreightCost&#039;] = price_format($cart-&gt;freight_cost);<br />&nbsp; &nbsp; $_POST[&#039;DispatchDate&#039;] = $cart-&gt;document_date;<br />&nbsp; &nbsp; $_POST[&#039;due_date&#039;] = $cart-&gt;due_date;<br />&nbsp; &nbsp; $_POST[&#039;Location&#039;] = $cart-&gt;Location;<br />&nbsp; &nbsp; $_POST[&#039;Comments&#039;] = $cart-&gt;Comments;<br />&nbsp; &nbsp; $_POST[&#039;dimension_id&#039;] = $cart-&gt;dimension_id;<br />&nbsp; &nbsp; $_POST[&#039;dimension2_id&#039;] = $cart-&gt;dimension2_id;<br />&nbsp; &nbsp; $_POST[&#039;cart_id&#039;] = $cart-&gt;cart_id;<br />&nbsp; &nbsp; $_POST[&#039;ref&#039;] = $cart-&gt;reference;<br />}<br />//------------------------------------------------------------------------------</p><p>function check_quantities()<br />{<br />&nbsp; &nbsp; $ok =1;<br />&nbsp; &nbsp; // Update cart delivery quantities/descriptions<br />&nbsp; &nbsp; foreach ($_SESSION[&#039;Items&#039;]-&gt;line_items as $line=&gt;$itm) {<br />&nbsp; &nbsp; &nbsp; &nbsp; if (isset($_POST[&#039;Line&#039;.$line])) {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if($_SESSION[&#039;Items&#039;]-&gt;trans_no) {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $min = $itm-&gt;qty_done;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $max = $itm-&gt;quantity;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } else {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $min = 0;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $max = $itm-&gt;quantity - $itm-&gt;qty_done;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (check_num(&#039;Line&#039;.$line, $min, $max)) {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $_SESSION[&#039;Items&#039;]-&gt;line_items[$line]-&gt;qty_dispatched =<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;input_num(&#039;Line&#039;.$line);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } else {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; set_focus(&#039;Line&#039;.$line);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $ok = 0;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</p><p>&nbsp; &nbsp; &nbsp; &nbsp; }</p><p>&nbsp; &nbsp; &nbsp; &nbsp; if (isset($_POST[&#039;Line&#039;.$line.&#039;Desc&#039;])) {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $line_desc = $_POST[&#039;Line&#039;.$line.&#039;Desc&#039;];<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (strlen($line_desc) &gt; 0) {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $_SESSION[&#039;Items&#039;]-&gt;line_items[$line]-&gt;item_description = $line_desc;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; }<br />&nbsp; &nbsp; return $ok;<br />}</p><p>//------------------------------------------------------------------------------</p><p>if (isset($_POST[&#039;process_delivery&#039;]) &amp;&amp; check_data()) {<br />&nbsp; &nbsp; $dn = &amp;$_SESSION[&#039;Items&#039;];</p><p>&nbsp; &nbsp; if ($_POST[&#039;bo_policy&#039;]) {<br />&nbsp; &nbsp; &nbsp; &nbsp; $bo_policy = 0;<br />&nbsp; &nbsp; } else {<br />&nbsp; &nbsp; &nbsp; &nbsp; $bo_policy = 1;<br />&nbsp; &nbsp; }<br />&nbsp; &nbsp; $newdelivery = ($dn-&gt;trans_no == 0);</p><p>&nbsp; &nbsp; if ($newdelivery)<br />&nbsp; &nbsp; &nbsp; &nbsp; new_doc_date($dn-&gt;document_date);</p><p>&nbsp; &nbsp; $delivery_no = $dn-&gt;write($bo_policy);</p><p>&nbsp; &nbsp; if ($delivery_no == -1)<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; display_error(_(&quot;The entered reference is already in use.&quot;));<br />&nbsp; &nbsp; &nbsp; &nbsp; set_focus(&#039;ref&#039;);<br />&nbsp; &nbsp; }<br />&nbsp; &nbsp; else<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; $is_prepaid = $dn-&gt;is_prepaid() ? &quot;&amp;prepaid=Yes&quot; : &#039;&#039;;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; processing_end();<br />&nbsp; &nbsp; &nbsp; &nbsp; if ($newdelivery) {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; meta_forward($_SERVER[&#039;PHP_SELF&#039;], &quot;AddedID=$delivery_no$is_prepaid&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp; } else {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; meta_forward($_SERVER[&#039;PHP_SELF&#039;], &quot;UpdatedID=$delivery_no$is_prepaid&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; }<br />}</p><p>if (isset($_POST[&#039;Update&#039;]) || isset($_POST[&#039;_Location_update&#039;]) || isset($_POST[&#039;qty&#039;]) || isset($_POST[&#039;process_delivery&#039;])) {<br />&nbsp; &nbsp; $Ajax-&gt;activate(&#039;Items&#039;);<br />}<br />//------------------------------------------------------------------------------<br />start_form();<br />hidden(&#039;cart_id&#039;);</p><p>start_table(TABLESTYLE2, &quot;width=&#039;80%&#039;&quot;, 5);<br />echo &quot;&lt;tr&gt;&lt;td&gt;&quot;; // outer table</p><p>start_table(TABLESTYLE, &quot;width=&#039;100%&#039;&quot;);<br />start_row();<br />label_cells(_(&quot;Customer&quot;), $_SESSION[&#039;Items&#039;]-&gt;customer_name, &quot;class=&#039;tableheader2&#039;&quot;);</p><p>label_cell(_(&quot;Branch&quot;), &quot;class=&#039;tableheader2&#039;&quot;);//changed by faisal<br />customer_branches_list_cells(&#039;&#039;,<br />&nbsp; &nbsp; &nbsp; &nbsp; $_SESSION[&#039;Items&#039;]-&gt;customer_id, &#039;branch_id&#039;, null, false, true, true, true); //added by faisal</p><p>label_cells(_(&quot;Currency&quot;), $_SESSION[&#039;Items&#039;]-&gt;customer_currency, &quot;class=&#039;tableheader2&#039;&quot;);<br />end_row();<br />start_row();</p><p>if ($_SESSION[&#039;Items&#039;]-&gt;trans_no==0) {<br />&nbsp; &nbsp; ref_cells(_(&quot;Reference&quot;), &#039;ref&#039;, &#039;&#039;, null, &quot;class=&#039;tableheader2&#039;&quot;, false, ST_CUSTDELIVERY,<br />&nbsp; &nbsp; array(&#039;customer&#039; =&gt; $_SESSION[&#039;Items&#039;]-&gt;customer_id,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#039;branch&#039; =&gt; $_SESSION[&#039;Items&#039;]-&gt;Branch,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#039;date&#039; =&gt; get_post(&#039;DispatchDate&#039;)));<br />} else {<br />&nbsp; &nbsp; label_cells(_(&quot;Reference&quot;), $_SESSION[&#039;Items&#039;]-&gt;reference, &quot;class=&#039;tableheader2&#039;&quot;);<br />}</p><p>label_cells(_(&quot;For Sales Order&quot;), get_customer_trans_view_str(ST_SALESORDER, $_SESSION[&#039;Items&#039;]-&gt;order_no), &quot;class=&#039;tableheader2&#039;&quot;);</p><p>label_cells(_(&quot;Sales Type&quot;), $_SESSION[&#039;Items&#039;]-&gt;sales_type_name, &quot;class=&#039;tableheader2&#039;&quot;);<br />end_row();<br />start_row();</p><p>if (!isset($_POST[&#039;Location&#039;])) {<br />&nbsp; &nbsp; $_POST[&#039;Location&#039;] = $_SESSION[&#039;Items&#039;]-&gt;Location;<br />}<br />label_cell(_(&quot;Delivery From&quot;), &quot;class=&#039;tableheader2&#039;&quot;);<br />locations_list_cells(null, &#039;Location&#039;, null, false, true);</p><p>if (!isset($_POST[&#039;ship_via&#039;])) {<br />&nbsp; &nbsp; $_POST[&#039;ship_via&#039;] = $_SESSION[&#039;Items&#039;]-&gt;ship_via;<br />}<br />label_cell(_(&quot;Shipping Company&quot;), &quot;class=&#039;tableheader2&#039;&quot;);<br />shippers_list_cells(null, &#039;ship_via&#039;, $_POST[&#039;ship_via&#039;]);</p><p>// set this up here cuz it&#039;s used to calc qoh<br />if (!isset($_POST[&#039;DispatchDate&#039;]) || !is_date($_POST[&#039;DispatchDate&#039;])) {<br />&nbsp; &nbsp; $_POST[&#039;DispatchDate&#039;] = new_doc_date();<br />&nbsp; &nbsp; if (!is_date_in_fiscalyear($_POST[&#039;DispatchDate&#039;])) {<br />&nbsp; &nbsp; &nbsp; &nbsp; $_POST[&#039;DispatchDate&#039;] = end_fiscalyear();<br />&nbsp; &nbsp; }<br />}<br />date_cells(_(&quot;Date&quot;), &#039;DispatchDate&#039;, &#039;&#039;, $_SESSION[&#039;Items&#039;]-&gt;trans_no==0, 0, 0, 0, &quot;class=&#039;tableheader2&#039;&quot;);<br />end_row();</p><p>end_table();</p><p>echo &quot;&lt;/td&gt;&lt;td&gt;&quot;;// outer table</p><p>start_table(TABLESTYLE, &quot;width=&#039;90%&#039;&quot;);</p><p>if (!isset($_POST[&#039;due_date&#039;]) || !is_date($_POST[&#039;due_date&#039;])) {<br />&nbsp; &nbsp; $_POST[&#039;due_date&#039;] = get_invoice_duedate($_SESSION[&#039;Items&#039;]-&gt;payment, $_POST[&#039;DispatchDate&#039;]);<br />}<br />customer_credit_row($_SESSION[&#039;Items&#039;]-&gt;customer_id, $_SESSION[&#039;Items&#039;]-&gt;credit, &quot;class=&#039;tableheader2&#039;&quot;);</p><p>$dim = get_company_pref(&#039;use_dimension&#039;);<br />if ($dim &gt; 0) {<br />&nbsp; &nbsp; start_row();<br />&nbsp; &nbsp; label_cell(_(&quot;Dimension&quot;).&quot;:&quot;, &quot;class=&#039;tableheader2&#039;&quot;);<br />&nbsp; &nbsp; dimensions_list_cells(null, &#039;dimension_id&#039;, null, true, &#039; &#039;, false, 1, false);<br />&nbsp; &nbsp; end_row();<br />}<br />else<br />&nbsp; &nbsp; hidden(&#039;dimension_id&#039;, 0);<br />if ($dim &gt; 1) {<br />&nbsp; &nbsp; start_row();<br />&nbsp; &nbsp; label_cell(_(&quot;Dimension&quot;).&quot; 2:&quot;, &quot;class=&#039;tableheader2&#039;&quot;);<br />&nbsp; &nbsp; dimensions_list_cells(null, &#039;dimension2_id&#039;, null, true, &#039; &#039;, false, 2, false);<br />&nbsp; &nbsp; end_row();<br />}<br />else<br />&nbsp; &nbsp; hidden(&#039;dimension2_id&#039;, 0);<br />//---------<br />start_row();<br />date_cells(_(&quot;Invoice Dead-line&quot;), &#039;due_date&#039;, &#039;&#039;, null, 0, 0, 0, &quot;class=&#039;tableheader2&#039;&quot;);<br />end_row();<br />end_table();</p><p>echo &quot;&lt;/td&gt;&lt;/tr&gt;&quot;;<br />end_table(1); // outer table</p><p>$row = get_customer_to_order($_SESSION[&#039;Items&#039;]-&gt;customer_id);<br />if ($row[&#039;dissallow_invoices&#039;] == 1)<br />{<br />&nbsp; &nbsp; display_error(_(&quot;The selected customer account is currently on hold. Please contact the credit control personnel to discuss.&quot;));<br />&nbsp; &nbsp; end_form();<br />&nbsp; &nbsp; end_page();<br />&nbsp; &nbsp; exit();<br />}<br />display_heading(_(&quot;Delivery Items&quot;));<br />div_start(&#039;Items&#039;);<br />start_table(TABLESTYLE, &quot;width=&#039;80%&#039;&quot;);</p><p>$new = $_SESSION[&#039;Items&#039;]-&gt;trans_no==0;<br />$th = array(_(&quot;Item Code&quot;), _(&quot;Item Description&quot;),<br />&nbsp; &nbsp; $new ? _(&quot;Ordered&quot;) : _(&quot;Max. delivery&quot;), _(&quot;Units&quot;), $new ? _(&quot;Delivered&quot;) : _(&quot;Invoiced&quot;),<br />&nbsp; &nbsp; _(&quot;This Delivery&quot;), _(&quot;Price&quot;), _(&quot;Tax Type&quot;), _(&quot;Discount&quot;), _(&quot;Total&quot;));</p><p>table_header($th);<br />$k = 0;<br />$has_marked = false;</p><p>foreach ($_SESSION[&#039;Items&#039;]-&gt;line_items as $line=&gt;$ln_itm) {<br />&nbsp; &nbsp; if ($ln_itm-&gt;quantity==$ln_itm-&gt;qty_done) {<br />&nbsp; &nbsp; &nbsp; &nbsp; continue; //this line is fully delivered<br />&nbsp; &nbsp; }<br />&nbsp; &nbsp; if(isset($_POST[&#039;_Location_update&#039;]) || isset($_POST[&#039;clear_quantity&#039;]) || isset($_POST[&#039;reset_quantity&#039;])) {<br />&nbsp; &nbsp; &nbsp; &nbsp; // reset quantity<br />&nbsp; &nbsp; &nbsp; &nbsp; $ln_itm-&gt;qty_dispatched = $ln_itm-&gt;quantity-$ln_itm-&gt;qty_done;<br />&nbsp; &nbsp; }<br />&nbsp; &nbsp; // if it&#039;s a non-stock item (eg. service) don&#039;t show qoh<br />&nbsp; &nbsp; $row_classes = null;<br />&nbsp; &nbsp; if (has_stock_holding($ln_itm-&gt;mb_flag) &amp;&amp; $ln_itm-&gt;qty_dispatched) {<br />&nbsp; &nbsp; &nbsp; &nbsp; // It&#039;s a stock : call get_dispatchable_quantity hook&nbsp; to get which quantity to preset in the<br />&nbsp; &nbsp; &nbsp; &nbsp; // quantity input box. This allows for example a hook to modify the default quantity to what&#039;s dispatchable<br />&nbsp; &nbsp; &nbsp; &nbsp; // (if there is not enough in hand), check at other location or other order people etc ...<br />&nbsp; &nbsp; &nbsp; &nbsp; // This hook also returns a &#039;reason&#039; (css classes) which can be used to theme the row.<br />&nbsp; &nbsp; &nbsp; &nbsp; //<br />&nbsp; &nbsp; &nbsp; &nbsp; // FIXME: hook_get_dispatchable definition does not allow qoh checks on transaction level<br />&nbsp; &nbsp; &nbsp; &nbsp; // (but anyway dispatch is checked again later before transaction is saved)</p><p>&nbsp; &nbsp; &nbsp; &nbsp; $qty = $ln_itm-&gt;qty_dispatched;<br />&nbsp; &nbsp; &nbsp; &nbsp; if ($check = check_negative_stock($ln_itm-&gt;stock_id, $ln_itm-&gt;qty_done-$ln_itm-&gt;qty_dispatched, $_POST[&#039;Location&#039;], $_POST[&#039;DispatchDate&#039;]))<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $qty = $check[&#039;qty&#039;];</p><p>&nbsp; &nbsp; &nbsp; &nbsp; $q_class =&nbsp; hook_get_dispatchable_quantity($ln_itm, $_POST[&#039;Location&#039;], $_POST[&#039;DispatchDate&#039;], $qty);</p><p>&nbsp; &nbsp; &nbsp; &nbsp; // Skip line if needed<br />&nbsp; &nbsp; &nbsp; &nbsp; if($q_class === &#039;skip&#039;)&nbsp; continue;<br />&nbsp; &nbsp; &nbsp; &nbsp; if(is_array($q_class)) {<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;list($ln_itm-&gt;qty_dispatched, $row_classes) = $q_class;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $has_marked = true;<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; }</p><p>&nbsp; &nbsp; alt_table_row_color($k, $row_classes);<br />&nbsp; &nbsp; view_stock_status_cell($ln_itm-&gt;stock_id);</p><p>&nbsp; &nbsp; if ($ln_itm-&gt;descr_editable)<br />&nbsp; &nbsp; &nbsp; &nbsp; text_cells(null, &#039;Line&#039;.$line.&#039;Desc&#039;, $ln_itm-&gt;item_description, 30, 50);<br />&nbsp; &nbsp; else<br />&nbsp; &nbsp; &nbsp; &nbsp; label_cell($ln_itm-&gt;item_description);</p><p>&nbsp; &nbsp; $dec = get_qty_dec($ln_itm-&gt;stock_id);<br />&nbsp; &nbsp; qty_cell($ln_itm-&gt;quantity, false, $dec);<br />&nbsp; &nbsp; label_cell($ln_itm-&gt;units);<br />&nbsp; &nbsp; qty_cell($ln_itm-&gt;qty_done, false, $dec);</p><p>&nbsp; &nbsp; if(isset($_POST[&#039;clear_quantity&#039;])) {<br />&nbsp; &nbsp; &nbsp; &nbsp; $ln_itm-&gt;qty_dispatched = 0;<br />&nbsp; &nbsp; }<br />&nbsp; &nbsp; $_POST[&#039;Line&#039;.$line]=$ln_itm-&gt;qty_dispatched; /// clear post so value displayed in the fiel is the &#039;new&#039; quantity<br />&nbsp; &nbsp; small_qty_cells(null, &#039;Line&#039;.$line, qty_format($ln_itm-&gt;qty_dispatched, $ln_itm-&gt;stock_id, $dec), null, null, $dec);</p><p>&nbsp; &nbsp; $display_discount_percent = percent_format($ln_itm-&gt;discount_percent*100) . &quot;%&quot;;</p><p>&nbsp; &nbsp; $line_total = ($ln_itm-&gt;qty_dispatched * $ln_itm-&gt;price * (1 - $ln_itm-&gt;discount_percent));</p><p>&nbsp; &nbsp; amount_cell($ln_itm-&gt;price);<br />&nbsp; &nbsp; label_cell($ln_itm-&gt;tax_type_name);<br />&nbsp; &nbsp; label_cell($display_discount_percent, &quot;nowrap align=right&quot;);<br />&nbsp; &nbsp; amount_cell($line_total);</p><p>&nbsp; &nbsp; end_row();<br />}</p><p>$_POST[&#039;ChargeFreightCost&#039;] =&nbsp; get_post(&#039;ChargeFreightCost&#039;,<br />&nbsp; &nbsp; price_format($_SESSION[&#039;Items&#039;]-&gt;freight_cost));</p><p>$colspan = 9;</p><p>start_row();<br />label_cell(_(&quot;Shipping Cost&quot;), &quot;colspan=$colspan align=right&quot;);<br />small_amount_cells(null, &#039;ChargeFreightCost&#039;, $_SESSION[&#039;Items&#039;]-&gt;freight_cost);<br />end_row();</p><p>$inv_items_total = $_SESSION[&#039;Items&#039;]-&gt;get_items_total_dispatch();</p><p>$display_sub_total = price_format($inv_items_total + input_num(&#039;ChargeFreightCost&#039;));</p><p>label_row(_(&quot;Sub-total&quot;), $display_sub_total, &quot;colspan=$colspan align=right&quot;,&quot;align=right&quot;);</p><p>$taxes = $_SESSION[&#039;Items&#039;]-&gt;get_taxes(input_num(&#039;ChargeFreightCost&#039;));<br />$tax_total = display_edit_tax_items($taxes, $colspan, $_SESSION[&#039;Items&#039;]-&gt;tax_included);</p><p>$display_total = price_format(($inv_items_total + input_num(&#039;ChargeFreightCost&#039;) + $tax_total));</p><p>label_row(_(&quot;Amount Total&quot;), $display_total, &quot;colspan=$colspan align=right&quot;,&quot;align=right&quot;);</p><p>end_table(1);</p><p>if ($has_marked) {<br />&nbsp; &nbsp; display_note(_(&quot;Marked items have insufficient quantities in stock as on day of delivery.&quot;), 0, 1, &quot;class=&#039;stockmankofg&#039;&quot;);<br />}<br />start_table(TABLESTYLE2);</p><p>policy_list_row(_(&quot;Action For Balance&quot;), &quot;bo_policy&quot;, null);</p><p>textarea_row(_(&quot;Memo&quot;), &#039;Comments&#039;, null, 50, 4);</p><p>end_table(1);<br />div_end();<br />submit_center_first(&#039;Update&#039;, _(&quot;Update&quot;),<br />&nbsp; &nbsp; _(&#039;Refresh document page&#039;), true);<br />if(isset($_POST[&#039;clear_quantity&#039;])) {<br />&nbsp; &nbsp; submit(&#039;reset_quantity&#039;, _(&#039;Reset quantity&#039;), true, _(&#039;Refresh document page&#039;));<br />}<br />else&nbsp; {<br />&nbsp; &nbsp; submit(&#039;clear_quantity&#039;, _(&#039;Clear quantity&#039;), true, _(&#039;Refresh document page&#039;));<br />}<br />submit_center_last(&#039;process_delivery&#039;, _(&quot;Process Dispatch&quot;),<br />&nbsp; &nbsp; _(&#039;Check entered data and save document&#039;), &#039;default&#039;);</p><p>end_form();</p><br /><p>end_page();</p></blockquote></div><p>changes are commented by //faisal</p>]]></description>
			<author><![CDATA[null@example.com (boxygen)]]></author>
			<pubDate>Thu, 15 Feb 2018 07:06:05 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=30819#p30819</guid>
		</item>
		<item>
			<title><![CDATA[Re: Delivery against Sales Orders at Different Branches of a Customer]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=30817#p30817</link>
			<description><![CDATA[<p>What if we make the customer branch field changeable in delivery against sales order page. Will that work?</p>]]></description>
			<author><![CDATA[null@example.com (boxygen)]]></author>
			<pubDate>Thu, 15 Feb 2018 06:11:06 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=30817#p30817</guid>
		</item>
		<item>
			<title><![CDATA[Re: Delivery against Sales Orders at Different Branches of a Customer]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=30796#p30796</link>
			<description><![CDATA[<p>Split the Sales Order across 2 different branches as separate ones and then effect the deliveries accordingly.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Sun, 11 Feb 2018 07:51:12 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=30796#p30796</guid>
		</item>
		<item>
			<title><![CDATA[Re: Delivery against Sales Orders at Different Branches of a Customer]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=30795#p30795</link>
			<description><![CDATA[<p>I think edit the Order details in the Sales Order Inquiry is the only way</p>]]></description>
			<author><![CDATA[null@example.com (notrinos)]]></author>
			<pubDate>Sun, 11 Feb 2018 07:19:09 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=30795#p30795</guid>
		</item>
		<item>
			<title><![CDATA[Re: Delivery against Sales Orders at Different Branches of a Customer]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=30794#p30794</link>
			<description><![CDATA[<p>A sales order is specific to a Customer Branch in FA as of now.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Sun, 11 Feb 2018 07:13:59 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=30794#p30794</guid>
		</item>
		<item>
			<title><![CDATA[Delivery against Sales Orders at Different Branches of a Customer]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=30792#p30792</link>
			<description><![CDATA[<p>I need to enable multiple deliveries against one sales order at different branches of a customer.</p><p>Currently we can&#039;t change the Branch on the customer_delivery.php page</p><p>Any idea?</p>]]></description>
			<author><![CDATA[null@example.com (boxygen)]]></author>
			<pubDate>Sun, 11 Feb 2018 07:08:32 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=30792#p30792</guid>
		</item>
	</channel>
</rss>
