X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=inventory%2Fcost_update.php;h=82dfb0db4eaf8d695088b3d1c175c39409f120d9;hb=412b79dc32855f813d03a8a6dd9debd45bb308f5;hp=ed6b494476ffc9bdbaded7d26e9a79b627403bd7;hpb=2e2996ab31611ad2a5fd742158576084e26e6b3f;p=fa-stable.git diff --git a/inventory/cost_update.php b/inventory/cost_update.php index ed6b4944..82dfb0db 100644 --- a/inventory/cost_update.php +++ b/inventory/cost_update.php @@ -65,6 +65,8 @@ if (isset($_POST['UpdateData'])) } } +if (isset($_POST['_stock_id_update'])) + $Ajax->activate('cost_table'); //----------------------------------------------------------------------------------------- start_form(false, true); @@ -87,7 +89,7 @@ $result = db_query($sql); check_db_error("The cost details for the item could not be retrieved", $sql); $myrow = db_fetch($result); - +div_start('cost_table'); hidden("OldMaterialCost", $myrow["material_cost"]); hidden("OldLabourCost", $myrow["labour_cost"]); hidden("OldOverheadCost", $myrow["overhead_cost"]); @@ -113,6 +115,7 @@ else } end_table(1); +div_end(); submit_center('UpdateData', _("Update")); end_form();