$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");
}
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");
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();
}
{
global $wo_types_array;
- $myrow = get_work_order($woid);
+ $myrow = get_work_order($woid, true);
- if (strlen($myrow[0]) == 0)
+ if ($myrow == false)
{
display_note(_("The work order number sent is not valid."));
exit;
{
global $wo_types_array;
- $myrow = get_work_order($woid);
+ $myrow = get_work_order($woid, true);
- if (strlen($myrow[0]) == 0)
+ if ($myrow === false)
{
display_note(_("The work order number sent is not valid."));
exit;