CheckMinMaxRouting

Check minimal and maximal issues for all BoM Position linked to a routing position

 

In the Configuration wizard it's possible to define the min/max value for Bill of materials position. With this function you can check if the count of issues are correct based on this rule.

if LineNumber2 is 0, then the system checks all positions.

 

WorkorderBom/CheckMinMaxRouting(DocEntry,LineNumber,Routing-LineNumber2,IssueQuantityString,BaseQuantity)

 

 

Parameter

Description

DocEntry

Work order number

LineNumber

Work order position

Routing-LineNumber

Routing Position

Define the routing position, for which you want to check BoM Positions

Use "0" for backflush processes

 

If Pos > 0, the system check all linked bill of material positions

If Pos = last position (or first position and backflush = first position)
and it's not a external routing position, the system check all Bom Positions with link to this routing position and all BoM without any link

If Pos = last position (or first position and backflush = first position)
and it's external routing position, the system check all Bom Positions with link to this routing position.

IssueQuantityString

Quantities for current issue process

"pos_id:quantity,pos_id:quantity"
Note: defined as string
Quantity with point as decimal place

BaseQuantity

Receipt - Quantity (only as information)

0=complete planned quantity

If > 0, the system calculate needed material in % to planned quantity

 

 

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?""

}