X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=manufacturing%2Fincludes%2Fmanufacturing_ui.inc;h=812590edd1a9f6a51884f7e5c1921e7cbd5a3867;hb=da8f34412bcb80d147eee4f9cdd5f43117189bd8;hp=ad27d03a864099c26833ac1adb1fffe4f02d5a21;hpb=2b68593d0729223bc7bc9d9307e3d9672267ff12;p=fa-stable.git diff --git a/manufacturing/includes/manufacturing_ui.inc b/manufacturing/includes/manufacturing_ui.inc index ad27d03a..812590ed 100644 --- a/manufacturing/includes/manufacturing_ui.inc +++ b/manufacturing/includes/manufacturing_ui.inc @@ -61,6 +61,7 @@ function display_bom($item_check) $item = get_item($item_check); if ($item['labour_cost'] != 0) { + $total_cost += $item['labour_cost']; alt_table_row_color($k); label_cells(_("Standard Labour Cost"), number_format2($item['labour_cost'],user_price_dec()), "colspan=6 align=left", "class=odd_row nowrap align=right"); @@ -68,6 +69,7 @@ function display_bom($item_check) } if ($item['overhead_cost'] != 0) { + $total_cost += $item['overhead_cost']; alt_table_row_color($k); label_cells(_("Standard Overhead Cost"), number_format2($item['overhead_cost'],user_price_dec()), "colspan=6 align=left", "nowrap align=right"); @@ -261,7 +263,7 @@ function display_wo_payments($woid) label_cell($wo_cost_types[$myrow['cost_type']]); $date = sql2date($myrow["tran_date"]); label_cell($date); - amount_cell(-($myrow['amount'])); + amount_cell($myrow['amount']); end_row(); }