on 11-23-2017 7:46 PM
Hi,
I just want to update the quantity of a salesorder item within absl:
why does this not update the quantity:
salesOrder = SalesOrder.Retrieve(salesorderid);
foreach (var sOrderItemin salesOrder.Item)
{
var menge:Quantity;
var mengeInitial:Quantity;
mengeInitial.content = 0.01;
menge.content = item.InHouseExpenses.content;
var newQuantity = salesOrderItem.FirstRequestedItemScheduleLine.Quantity;
menge.unitCode = newQuantity.unitCode;
mengeInitial.unitCode = newQuantity.unitCode;
newQuantity.content = newQuantity.content+ menge.content;
salesOrder.SubmitForApproval();
}
}
Thanks GuysErhan,
Try writing directly instead of using a variable --- I have issues with that sometimes. Try:
'salesOrderItem.FirstRequestedItemScheduleLine.Quantity.content = newQuantity.content + menge.content;'
Lewis
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
110 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.