Check minimal and maximal issues for a BoM Position or all BoM Position from a work order position
With checking issues from past too
Use this function, if you want to check the Min/Max material before you receipt the Assemlby (outside of backflush process)
WorkorderBom/CheckMinMaxBom(DocEntry,LineNumber,BoM-LineNumber2,IssueQuantityString,BaseQuantity,CheckMinQuantity)
Parameter |
Description |
DocEntry |
Work order number |
LineNumber |
Work order position |
BoM-LineNumber |
Bill of Material Position |
IssueQuantityString |
Quantities for current issue process "pos_id:quantity,pos_id:quantity" |
BaseQuantity |
Receipt - Quantity (only as information) 0=complete planned quantity If > 0, the system calculate needed material in % to planned quantity In past you made a receipt from 2 Pcs Now you want to make a second receipt from 3 Pcs In this case define 5 Pcs
If you don't work with part receipt, use 0 as quantity |
CheckMnQuantity |
Define, if you want to check Min. quantity too "CheckMinQuantity":false disable this function |
return
status = ok -> all ok, question, blocked
if status not ok then the system return follow informations (values are only examples)
{
"Status": "question",
"DocEntry": "4030",
"LineNumber": "10",
"LineNumber3": "10",
"PositionText": "10",
"ItemCode": "RM",
"MinQuantityAllowed": "3.000000",
"MaxQuantityAllowed": "3.000000",
"BookingQuantity": "5.200000",
"ShortText": "Maximum overrun",
"LongText": ""Entered posting quantity for item RM is bigger than allowed quantity!\nAllowed quantity: 3.0000\nCharge-off quantity: 5.2000\nalready posted: 0.00000\nCharge-off and proceed?""
}