projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed fixed assets stright line depreciation.
[fa-stable.git]
/
inventory
/
cost_update.php
diff --git
a/inventory/cost_update.php
b/inventory/cost_update.php
index 6fa3a01947ed023df115ff5af047f5dde2f1e66b..35347000c7eaa2b570a5aeec9328cc566bd58dd3 100644
(file)
--- a/
inventory/cost_update.php
+++ b/
inventory/cost_update.php
@@
-52,8
+52,7
@@
if (isset($_GET['stock_id']))
$should_update = false;
if (isset($_POST['UpdateData']))
{
$should_update = false;
if (isset($_POST['UpdateData']))
{
-
- $old_cost = get_standard_cost($_POST['stock_id']);
+ $old_cost = get_unit_cost($_POST['stock_id']);
$new_cost = input_num('material_cost') + input_num('labour_cost')
+ input_num('overhead_cost');
$new_cost = input_num('material_cost') + input_num('labour_cost')
+ input_num('overhead_cost');
@@
-131,7
+130,7
@@
$_POST['material_cost'] = price_decimal_format($myrow["material_cost"], $dec1);
$_POST['labour_cost'] = price_decimal_format($myrow["labour_cost"], $dec2);
$_POST['overhead_cost'] = price_decimal_format($myrow["overhead_cost"], $dec3);
$_POST['labour_cost'] = price_decimal_format($myrow["labour_cost"], $dec2);
$_POST['overhead_cost'] = price_decimal_format($myrow["overhead_cost"], $dec3);
-amount_row(_("
Standard Material Cost Per Uni
t"), "material_cost", null, "class='tableheader2'", null, $dec1);
+amount_row(_("
Unit cos
t"), "material_cost", null, "class='tableheader2'", null, $dec1);
if ($myrow["mb_flag"]=='M')
{
if ($myrow["mb_flag"]=='M')
{