Description: Charge based on shipping cartons (Num Units 1) or pallets (Num Units 2)
Script:(third line split to fit better)
User Input:
Explanation: If NumUnits2 has a value greater than zero, it's value is used for the NumUnits value on the charge (that is multiplied by the charge amount). The charge set in the script for NumUnits2 is then used for the ChargePerUnit on the charge. If NumUnits 2 doesn't have a positive value, NumUnits1 is checked, and if it is positive, it is used for NumUnits on the charge, and the charge set for NumUnits 1 in the script is the charge per unit.