Hi, I need some help editing *created* {INV - item...
# suitescript
l
Hi, I need some help editing created {INV - items -> quantity/quantity rate} from SO using UE BeforLoad. the values appear to be updated but the calculated amount still holds the previous amount.
Copy code
rec.setSublistValue({
    sublistId: 'item',
    fieldId: 'quantity',
    value: (sublistFieldItemQuantity*totalAmountToBilledAmountRatio).toPrecision(3),
    line
});
rec.setSublistValue({
    sublistId: 'item',
    fieldId: 'custcol_quantity_rate',
    value: (sublistFieldItemQuantity*totalAmountToBilledAmountRatio).toPrecision(3),
    line
});
Will appreciate any help...
1
In the first line, I Inline edited it, and the amount was updated. The second line was update via UE beforload and the amount wasn't updated
UE is not dynamic mode , So just setting the value in amount via script and it's working
1