cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Planned quantity is lower than issued quantity

0 Kudos
185

In B1 10, FP2105HF1 I'm trying to updat an existing workorder through the ServiceLayer.

We already issues 18 pieces of one component and the planned qty is 18. When I update the WO through the servicelayer to lower the planned qty to 9 I receive this error:

Planned quantity is lower than issued quantity [ProductionOrderLines.PlannedQuantity][line: 3]

But I don't want to change the issues qty of line 3, it can stay like that. I'm also keeping the plannenqty on line level at 18. How can I change the plannedqty on the header to 9?

 

This is my Json:

{
"AbsoluteEntry": 3094,
"DocumentNumber": 241723094,
"Series": 27,
"ItemNo": "PARC -13",
"ProductionOrderStatus": "boposReleased",
"ProductionOrderType": "bopotStandard",
"PlannedQuantity": 9,
"JournalRemarks": "Production Order - PARC -13",
"ProductDescription": "PARC13",
"Priority": 100,
"ProductionOrderLines": [
{
"DocumentAbsoluteEntry": 3094,
"LineNumber": 0,
"ItemNo": "W-PARC -13",
"BaseQuantity": 1.5,
"PlannedQuantity": 18,
"IssuedQuantity": 0,
"ProductionOrderIssueType": "im_Backflush",
"Warehouse": "04",
"VisualOrder": 0,
"ItemType": "pit_Item",
"AdditionalQuantity": 0,
"StartDate": "2024-07-03",
"EndDate": "2024-07-23",
"RequiredDays": 0
},
{
"DocumentAbsoluteEntry": 3094,
"LineNumber": 1,
"ItemNo": "UF 0054 40/10 PANA",
"BaseQuantity": 0.05,
"PlannedQuantity": 0.6,
"IssuedQuantity": 0,
"ProductionOrderIssueType": "im_Manual",
"Warehouse": "MAT PANA",
"VisualOrder": 1,
"ItemType": "pit_Item",
"AdditionalQuantity": 0,
"StartDate": "2024-07-03",
"EndDate": "2024-07-23",
"RequiredDays": 0
},
{
"DocumentAbsoluteEntry": 3094,
"LineNumber": 2,
"ItemNo": "C-PARC -13",
"BaseQuantity": 1.5,
"PlannedQuantity": 18,
"IssuedQuantity": 18,
"ProductionOrderIssueType": "im_Manual",
"Warehouse": "03",
"VisualOrder": 2,
"ItemType": "pit_Item",
"AdditionalQuantity": 0,
"StartDate": "2024-07-03",
"EndDate": "2024-07-23",
"RequiredDays": 0
},
{
"DocumentAbsoluteEntry": 3094,
"LineNumber": 3,
"ItemNo": "D-250F-UF-0054",
"BaseQuantity": 1.5,
"PlannedQuantity": 18,
"IssuedQuantity": 0,
"ProductionOrderIssueType": "im_Backflush",
"Warehouse": "03",
"VisualOrder": 3,
"ItemType": "pit_Item",
"AdditionalQuantity": 0,
"StartDate": "2024-07-03",
"EndDate": "2024-07-23",
"RequiredDays": 0
},
{
"DocumentAbsoluteEntry": 3094,
"LineNumber": 4,
"ItemNo": "E-250-UF-0054",
"BaseQuantity": 1.5,
"PlannedQuantity": 18,
"IssuedQuantity": 0,
"ProductionOrderIssueType": "im_Backflush",
"Warehouse": "03",
"VisualOrder": 4,
"ItemType": "pit_Item",
"AdditionalQuantity": 0,
"StartDate": "2024-07-03",
"EndDate": "2024-07-23",
"RequiredDays": 0
}
]
}

Accepted Solutions (0)

Answers (0)