X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=inventory%2Fcost_update.php;h=b5ee125dd966fab6f3094b8360c60692e950d428;hb=aed0d601bf245cda4ae5867b8c2f54925658644d;hp=0d872191016480bb95fcc10cc2dad52d6c55aa7a;hpb=d69e655cbe282e2dbb261e207fcfacc5c3b8b246;p=fa-stable.git diff --git a/inventory/cost_update.php b/inventory/cost_update.php index 0d872191..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'); @@ -83,18 +83,15 @@ if (!isset($_POST['stock_id'])) $_POST['stock_id'] = get_global_stock_item(); echo "