Discussions
Here are some examples to get your creative juices flowing.
"Did I pay vendor John Doe last month?"
"Take me to my largest sales order for this month."
"What invoices haven't been paid yet?"
Insert a discount line
I'm trying to insert a discount line on a quotation via SuiteScript, but failing!
I've got it to populate the item, but I want to use a custom price and set the amount.
So far I have this:
currentRecord.insertLine({sublistId: 'item', line: i+1}); currentRecord.setCurrentSublistValue({sublistId: 'item', fieldId: 'item', value: '978'}) currentRecord.setCurrentSublistValue({sublistId: 'item', fieldId: 'price', value: '-1'}) currentRecord.setCurrentSublistValue({sublistId: 'item', fieldId: 'rate', value: '-10%'}) currentRecord.setCurrentSublistValue({sublistId: 'item', fieldId: 'taxcode', value: 'VAT:20%'}) currentRecord.commitLine({sublistId: 'item'})