This version of the
command is intended for calculation scales that are based on quantity. It
|base monetary value ||sum of net prices|
|lookup number ||sum of actual quantities|
|result multiplier ||1|
|weight of each |
|net price of each item|
Appropriate for discount and shipping scales. (The discount/charge is
determined from the quantity, and spread back to the OrderItems in proportion
to their "net prices".)
If the quantityUnit attribute of the CalculationScale is not empty, the
"lookup number" is the sum of followings.
The "actual quantities" of the OrderItems, converted to the QuantityUnit specified by the quantityUnit attribute of the
The mathematical weights are the "net prices" of the
But if the quantityUnit attribute of the CalculationScale is
empty, the "lookup number" is the sum of the quantities of the OrderItems.
The "base monetary value" is the sum of the "net prices" of the OrderItems.
The "result multiplier" is one.