Gail Kasnett
08/05/2020, 9:25 AMvar discountItem = record.create({
type: record.Type.DISCOUNT_ITEM,
isDynamic: true
})
log.debug('created discount item, need to set details')
discountItem.setText({ fieldId: 'account',text:'1200 Accounts Receivable' })
discountItem.setValue({ fieldId: 'itemid',value: '1801'})// value: 'Home Depot Discount' })
discountItem.setText({ fieldId: 'rate', text: '-2.44%' })
discountItem.save()
(setting the account does not work here either, tried with setting the value and both the name and id as well)battk
08/05/2020, 9:40 AMbattk
08/05/2020, 9:40 AMbattk
08/05/2020, 9:40 AMbattk
08/05/2020, 9:40 AM