The sales order is saved, or an alert message appears: Prior to submitting the sales order, the customer record is updated.

Task: If the “Trade partner” field of the salesperson in the sales order record is checked and the currently selected customer’s “trade partner” is also checked, then the sales type will be “Builder Order.” If the checkbox is unchecked, we cannot select “builder order” in a sales order. During the testing of this task, a… Continue reading The sales order is saved, or an alert message appears: Prior to submitting the sales order, the customer record is updated.

Set Sales Order’s Supply Required by Date to current date according to account time zone via SuiteScript

var targetTime = new Date(); targetTime.setMinutes(targetTime.getMinutes() + targetTime.getTimezoneOffset()) let soRec = record.load({ type:’salesorder’, id:51451//internal is of sales order }); soRec.setSublistValue({ sublistId: ‘item’, fieldId: ‘requesteddate’, line: 0, value: targetTime }); soRec.save()

How to create Customer Deposit from Sales Order using script

Creating customer Deposit automatically whenever a sales order is created. Note: If we create a sales order in currency other than the primary currency of the customer, by default the script will take the primary currency of the customer as the currency in customer deposit. This will throw an error while running the script. That… Continue reading How to create Customer Deposit from Sales Order using script

Creating a new allocation strategy

Navigate to Setup-> Order Management-> Order Allocation Strategy-> New Give a name for allocation strategy. If user wants future inventory for allocation, check the Future Inventory box given below. For example, inventory that is on order, in transit and not yet received. On hand inventory is always considered for allocation. If user is considering future… Continue reading Creating a new allocation strategy

Characteristics of Create PO and Create WO sublist fields in sales order

Create PO Create PO is a sales order sublist field that create purchase order automatically when user selects Drop Ship/ Special Order from the sublist field. After approving the sales order, the document number hyperlinked to respective purchase order will display there. Create PO will automatically set value as Drop Ship, if Drop Ship Item checkbox… Continue reading Characteristics of Create PO and Create WO sublist fields in sales order