Jan 24, 2024 06:42 AM - edited Jan 24, 2024 07:07 AM
Hello,
I have the following problem of not beeing able to merge Orders in our internal pipeline.
We are getting Orders from our Hubs for Equipment, which need to be packed and shipped in batches.
The Script should be able to merge same items ordered for the same Hub multiple times or split if different items ordered.
I created the following 2 cases to make the request visible.
Case 1: different items
Input Table "Input Rider Gear Orders"
View "Pending"
Order 1
Column: "Order Number" Value: "17884"
Column: "Hub Code" Value: "nl_til_west"
Column: "Full Name (from Master Data combinations)" Value: "Winterset - Male - M"
Column "Quantity Pick" Value: "1"
Order 2
Column: "Order Number" Value: "17984"
Column: "Hub Code" Value: "nl_til_west"
Column: "Full Name (from Master Data combinations)" Value: "Winterset - Male - L"
Column "Quantity Pick" Value: "1"
Output Table "Rider Gear Output Test"
Column: "Hub Code" Value: "nl_til_west"
Column: "Pick 1" Value: "Winterset - Male - M"
Column: "Order ID 1" Value: "17884"
Column: "Quantity Pick 1" Value: "1"
Column: "Pick 2" Value: "Winterset - Male - L"
Column: "Quantity Pick 2" Value: "1"
Column: "Order ID 2" Value: "17984"
Example 2: Same items ordered
Order 1 Column: "Order Number" Value: "17884"
Column: "Hub Code" Value: "nl_til_west"
Column: "Full Name (from Master Data combinations)" Value: "Winterset - Male - M"
Column "Quantity Pick" Value: "1"
Order 2
Column: "Order Number" Value: "17984"
Column: "Hub Code" Value: "nl_til_west"
Column: "Full Name (from Master Data combinations)" Value: "Winterset - Male - M"
Column "Quantity Pick" Value: "1"
Output Table "Rider Gear Output Test"
Column: "Hub Code" Value: "nl_til_west"
Column: "Pick 1" Value: "Winterset - Male - M"
Column: "Order ID 1" Value: "17884, 17984"
Column: "Quantity Pick 1" Value: "2"
How can I make sure to achieve the stacking of orders in case of the same items?
Solved! Go to Solution.
Jan 24, 2024 06:43 AM - edited Jan 24, 2024 07:46 AM
This Script is now working for us. It was an issue with the format of the Quantity fields which needed to be configured as numbers.
Jan 24, 2024 06:43 AM - edited Jan 24, 2024 07:46 AM
This Script is now working for us. It was an issue with the format of the Quantity fields which needed to be configured as numbers.