order_quantities

Retrieves the quantity of an SKU on an order.

Example

1
{{ '123' | order_quantities: '2021-01-01', '2021-01-31', 'sales', 'inbound', 123 }} => 10

Input

Type Parameter Description Required
string skuId The ID of the SKU. Comes before the | sign. Required
string fromDate The start date to check, defaults to ‘’  
string toDate The end date to check, defaults to ‘’  
string orderType The type of the order, defaults to ‘’  
string orderSection The section of the order, defaults to ‘’  
int partnerLocationId The ID of the partner location, defaults to null  

Output

Type Description
int The quantity of the SKU on the order