Joshua Godfrey
08/31/2023, 10:29 PMCustomer Refund
record with the correct account
value set. Any idea what I’m doing wrong?
// creating a refund record
let refundRecord = record.create({
type: record.Type.CUSTOMER_REFUND,
isDynamic: true
});
// setting the values on the refund record
refundRecord.setValue({
fieldId: SCRIPTIDS.customerFieldId,
value: refundData.customerId,
ignoreFieldChange: true
});
// todo make account on refund = #116 (Undeposited Funds - System Generated)
refundRecord.setValue({
fieldId: 'account',
value: 116, // this account isn't setting correctly when the record is saved.
ignoreFieldChange: true
});
battk
08/31/2023, 10:32 PMbattk
08/31/2023, 10:32 PMbattk
08/31/2023, 10:32 PMJoshua Godfrey
08/31/2023, 10:37 PMJoshua Godfrey
08/31/2023, 10:38 PMJoshua Godfrey
08/31/2023, 10:38 PMbattk
08/31/2023, 10:40 PMJoshua Godfrey
08/31/2023, 10:40 PMbattk
08/31/2023, 10:43 PMJoshua Godfrey
08/31/2023, 11:13 PMJoshua Godfrey
08/31/2023, 11:20 PMJoshua Godfrey
08/31/2023, 11:21 PM