Removed condition in calculation of COGS in sales_delivery_db.inc. Chaitanya.
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Thu, 14 Jul 2011 15:38:38 +0000 (17:38 +0200)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Thu, 14 Jul 2011 15:38:38 +0000 (17:38 +0200)
sales/includes/db/sales_delivery_db.inc

index 5c269406349b06a7aeadb09e9db755eb2035dc4f..b234e424fa73e65ed6e4aebd60edb1407e3b4a96 100644 (file)
@@ -67,7 +67,7 @@ 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
+               //if ($trans_no != 0) // Inserted 2008-09-25 Joe Hunt. This condition is removed after experience by Chaitanya
                        $delivery_line->standard_cost = get_standard_cost($delivery_line->stock_id);
 
                /* add delivery details for all lines */