if (!isset($labour) || ($labour == ""))
$labour = 0;
add_labour_cost($stock_id, $units_reqd, $date_, $labour);
-
+
$sql = "INSERT INTO ".TB_PREF."workorders (wo_ref, loc_code, units_reqd, units_issued, stock_id,
type, additional_costs, date_, released_date, required_by, released, closed)
VALUES (".db_escape($wo_ref).", ".db_escape($loc_code).", ".db_escape($units_reqd)
add_stock_move(ST_WORKORDER, $bom_item["component"], $woid,
$bom_item["loc_code"], $date_, $wo_ref, -$item_quantity, $UnitCost, $UnitCost);
}
-
+
// -------------------------------------------------------------------------
//Negative Stock Handling
$qoh = get_qoh_on_date($stock_id);
$bom_accounts = get_stock_gl_code($bom_item["component"]);
$bom_cost = $bom_item["ComponentCost"] * $units_reqd;
-
+
$memo = $bom_item["quantity"] ." * ".$bom_item["description"];
if ($advanced)
{
0, 0, $memo, -$total_cost);
}
-//--------------------------------------------------------------------------------------
-