X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=inventory%2Fcost_update.php;h=b5ee125dd966fab6f3094b8360c60692e950d428;hb=0d2cbe658742c6d7ed2eb09dab0abc6ee4dd1f74;hp=7268d797ab9bde32bdceac23e5a98ada8594991a;hpb=6d65fde699a327a6fee0d8d46abf8d2b37e53947;p=fa-stable.git diff --git a/inventory/cost_update.php b/inventory/cost_update.php index 7268d797..b5ee125d 100644 --- a/inventory/cost_update.php +++ b/inventory/cost_update.php @@ -38,8 +38,8 @@ if (isset($_GET['stock_id'])) if (isset($_POST['UpdateData'])) { - $old_cost = input_num('OldMaterialCost') + input_num('OldLabourCost') - + input_num('OldOverheadCost'); + $old_cost = get_standard_cost($_POST['stock_id']); + $new_cost = input_num('material_cost') + input_num('labour_cost') + input_num('overhead_cost'); @@ -92,9 +92,6 @@ set_global_stock_item($_POST['stock_id']); $myrow = get_item($_POST['stock_id']); div_start('cost_table'); -hidden("OldMaterialCost", $myrow["material_cost"]); -hidden("OldLabourCost", $myrow["labour_cost"]); -hidden("OldOverheadCost", $myrow["overhead_cost"]); start_table(TABLESTYLE2); $dec1 = $dec2 = $dec3 = 0;