Description: Rate x the number of unique pallets received
Script:
User Input:
Explanation: If there are no RecieveItems on this Transaction, we're done. If there are some, we check each ReceiveItem for MovableUnits, if they have one, we add it's ID to an array, then set the chargePerUnit to the charge you specify when you select the script, and the NumUnits to the length of the array with the MUIds in it. We do this every time we check a receiveItem, which seems kinda silly, but works the same as doing it all after checking the whole Receiving.