A Deposco Order Optimization Batch Name Script is called when an order is being + optimized for shipping within Deposco. It is responsible for determining the order's + Batch Name - in other words, an indication of what day the order should be shipped, + and whether or not the order is a line haul.
+ +Input
+The input to this type of script is an object named input
, with the following fields:
warehouseId
The id of the warehouse that the order is shipping from. See the Warehouse table for mappings.shipToZipCode
The zip code that the order is shipping to.estimatedNoOfCartons
The estimated number of cartons that the order will ship in.Output
+The script is responsible only for outputting a single value - a string
which will be set as the order's
+ Batch Name in Deposco.
Example
+
+ if(today.weekday == 1)
+ (
+ return "TUE-Line-Haul"
+ )
+
+
+