Summary: | A customer requirement is to give a 1cents discount on a unit price of $2.50. We can achieve this by using a loyalty discount and providing a discount by total value. Example 1: - Product Diesel, Unit Price : $2.50, Customer Loyal Discount is 1cents per liter.
- We can use loyalty discount by total based on the formula: (Discount Amount / Unit Price ) x 100. See figure 1 below.
Figure 1: Test Plan and Example of Loyalty % to achieve discount by quantity.
Product | Qty | UnitPrice | Total | DiscountbyQty | DiscountedUnitPrice | LineTotal | LoyaltyDiscount% | LoyaltyDiscountTotal | Variance |
D0001 - Diesel | 1 | 2.61 | 2.61 | 0.01 | 2.60 | 2.60 | 0.3831 | 2.60 | 0.000 |
D0001 - Diesel | 56.879 | 2.61 | 148.45419 | 0.01 | 2.60 | 147.89 | 0.3831 | 147.89 | 0.000 |
D0001 - Diesel | 1000.876 | 2.61 | 2612.2864 | 0.01 | 2.60 | 2602.28 | 0.3831 | 2602.28 | -0.001 |
D0001 - Diesel | 5000 | 2.61 | 13050 | 0.01 | 2.60 | 13000.00 | 0.3831 | 13000.01 | -0.005 |
Change Required: - In Menu Point of Sale>>Loyalty Maintenance, increase the discount to show 4 decimal places.
- Increase loyalty discount calculation to use 4 decimal places.
|