protected decimal CalculateDiscount( VolumeDiscount discount, int groupedQuantity, int actualQuantity, decimal groupedValue, decimal actualValue )
Parameters
- discount
- The volume discount entity
- groupedQuantity
- The total quantity used to determine discount tier
- actualQuantity
- The quantity of the item being discounted
- groupedValue
- The total value used to determine discount tier
- actualValue
- The value of the item being discounted
Return Value
The value of the discount for the given criteria