Benjamin Cookson
07/18/2023, 3:48 PMbattk
07/18/2023, 4:03 PMBenjamin Cookson
07/18/2023, 4:04 PMBenjamin Cookson
07/18/2023, 4:06 PMbattk
07/18/2023, 4:08 PMbattk
07/18/2023, 4:08 PMbattk
07/18/2023, 4:08 PMbattk
07/18/2023, 4:09 PMBenjamin Cookson
07/18/2023, 4:09 PMvar cashSale = record.create({
type: record.Type.CASH_SALE,
isDynamic: true
});
if(requestBody.useCreditCard){
cashSale.setValue({
fieldId: "creditcard",
value: SCOConstants.paymentMethod
});
}
battk
07/18/2023, 4:10 PMbattk
07/18/2023, 4:10 PMbattk
07/18/2023, 4:10 PMBenjamin Cookson
07/18/2023, 4:11 PMvar cashSale = record.create({
type: record.Type.CASH_SALE,
isDynamic: true
});
cashSale.setValue({
fieldId: "entity",
value: requestBody.customerId
});
cashSale.setValue({
fieldId: "location",
value: SCOConstants.LOCATIONS.BYUSTORE
});
cashSale.setValue({
fieldId: "shipmethod",
value: SCOConstants.SHIP_METHODS.PICK_UP_IN_STORE
});
if(requestBody.useCreditCard){
cashSale.setValue({
fieldId: "creditcard",
value: SCOConstants.paymentMethod
});
}
battk
07/18/2023, 4:12 PMBenjamin Cookson
07/18/2023, 4:13 PMbattk
07/18/2023, 4:13 PMbattk
07/18/2023, 4:14 PMbattk
07/18/2023, 4:14 PMBenjamin Cookson
07/18/2023, 4:16 PM