Bug [0000061] Delivery Modifitication (standard cost change)
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Fri, 26 Sep 2008 00:28:31 +0000 (00:28 +0000)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Fri, 26 Sep 2008 00:28:31 +0000 (00:28 +0000)
CHANGELOG.txt
sales/includes/db/sales_delivery_db.inc

index e80884b8050546538772b92e188d2d48149f1043..9d77d554200ada26dbcccb5fb61f367934b114d3 100644 (file)
@@ -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
index 7c24cb12a8adb359e85d126b787f3f004b68c9ce..c592373fa642f90078d4b296c175bf5752cfa3d3 100644 (file)
@@ -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,