Logan Ickert
05/01/2023, 8:46 PM//select the current line to change the quantity
currentRecord.selectLine({
sublistId: "item",
line: i
});
//set the value of quantity in the bill to be the difference between delivered and billed in the
currentRecord.setCurrentSublistValue({
sublistId: "item",
fieldId: "quantity",
value: difference
});
currentRecord.commitLine({
sublistId: 'item'
});
}
battk
05/01/2023, 9:00 PMLogan Ickert
05/01/2023, 9:01 PMbattk
05/01/2023, 9:03 PMLogan Ickert
05/01/2023, 9:44 PMcurrentRecord.setCurrentSublistValue({
sublistId: "item",
fieldId: "quantity",
value: difference,
forceSyncSourcing: true
});
&
currentRecord.setCurrentSublistValue({
sublistId: "item",
fieldId: "quantity",
value: difference,
forceSyncSourcing: false
});
Logan Ickert
05/01/2023, 9:45 PMbattk
05/01/2023, 11:36 PMbattk
05/01/2023, 11:37 PM