From: Joe Hunt Date: Fri, 26 Sep 2008 00:28:31 +0000 (+0000) Subject: Bug [0000061] Delivery Modifitication (standard cost change) X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=f245747f83669524ac5de4541bfdd32ac1dc96e4;p=textcart.git Bug [0000061] Delivery Modifitication (standard cost change) --- diff --git a/CHANGELOG.txt b/CHANGELOG.txt index e80884b..9d77d55 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -31,6 +31,8 @@ $ /gl/gl_budget.php $ /admin/db/maintenance_db.inc /install/index.php /install/save.php +# Bug [0000061] Delivery Modifitication (standard cost change) +$ /sales/includes/db/sales_delivery_db.inc ------------------------------- Release 2.0.2 -------------------------------------------- 23-Sep-2008 Joe Hunt diff --git a/sales/includes/db/sales_delivery_db.inc b/sales/includes/db/sales_delivery_db.inc index 7c24cb1..c592373 100644 --- a/sales/includes/db/sales_delivery_db.inc +++ b/sales/includes/db/sales_delivery_db.inc @@ -50,6 +50,9 @@ function write_sales_delivery(&$delivery,$bo_policy) $line_tax = get_full_price_for_item($delivery_line->stock_id, $delivery_line->price, 0, $delivery->tax_included, $delivery->tax_group_array) - $line_taxfree_price; + if ($trans_no != 0) // Inserted 2008-09-25 Joe Hunt + $delivery_line->standard_cost = get_standard_cost($delivery_line->stock_id); + /* add delivery details for all lines */ write_customer_trans_detail_item(13, $delivery_no, $delivery_line->stock_id, $delivery_line->item_description, $delivery_line->qty_dispatched,