reza.seedin
05/15/2024, 9:35 AM10.25%
. We then manually invoice the line and the tax code reverts to 0.25%
(same tax code as SO .same address). The client has asked me to update the Invoice tax rate to match the SO line rate. This is to repair the data while we try to figure out why tax rate changed. I have tried to do a CSV import which didn't allow me to update it. Then I tried the Script (load and save) which gave me Internal Server Error. Question: Any idea how I can fix the invoice tax rate to match the SO rate (CSV or script wise) . P.S if I enter a SO line manually for the item it defaults to the tax rate that is shown on the invoice.battk
05/15/2024, 11:32 PMreza.seedin
05/15/2024, 11:39 PMTRANS_UNBALNCD'
battk
05/15/2024, 11:39 PMreza.seedin
05/15/2024, 11:40 PMbattk
05/15/2024, 11:40 PMreza.seedin
05/15/2024, 11:41 PMvar rec = nlapiLoadRecord(nlapiGetRecordType(), nlapiGetRecordId());
var taxRate = rec.getLineItemValue('item', 'taxrate1', 1);
console.log('taxRate', taxRate);
// set tax rate to 10.25
rec.setLineItemValue('item', 'taxrate1', 1, '10.25%');
nlapiSubmitRecord(rec);
reza.seedin
05/15/2024, 11:41 PMreza.seedin
05/15/2024, 11:41 PMtaxamountoverride
on the line level first?reza.seedin
05/15/2024, 11:42 PMbattk
05/15/2024, 11:43 PMbattk
05/15/2024, 11:43 PMreza.seedin
05/15/2024, 11:44 PMbattk
05/15/2024, 11:44 PMreza.seedin
05/15/2024, 11:44 PMPatrick A.
05/16/2024, 3:07 AMreza.seedin
05/16/2024, 3:10 AM