- if ($advanced)
- {
- $memo = $date_.": ".$memo;
- update_wo_requirement_issued($woid, $bom_item['component'], $bom_item["quantity"] * $units_reqd);
- // insert a -ve stock move for each item
- $UnitCost = get_standard_cost($bom_item["component"]);
- add_stock_move(ST_MANURECEIVE, $bom_item["component"], $advanced,
- $bom_item["loc_code"], $date_, "", -$bom_item["quantity"] * $units_reqd, $UnitCost, 0, 1, $UnitCost);
- }
- //Compatibility for Service Items