BLogic Systems

Discount Follow Price Level

Last updated on 
Target release 2023
Document owner Vu
Developer Nhàn(main), Tuấn(confirm logic)
QA Vu

Logic tính discount amount cho Price Level : tính discount amount theo đơn giá bằng các số liệu có sẵn trong Tab Advance Pricing -> Customer Price Levels : 9.5 - 8.55 = 0.95, 0.95 là discount amount theo Price level 1 được tính trên đơn giá (số lượng 1 item), nếu số lượng item trong ticket lớn hơn 1 thì cứ lấy discount amount theo đơn giá này nhân lên theo số lượng là ra

Đối với trường hợp Dual Price thì ta phải charge thêm Dual Price % cho 9.5 (Cash Price của item) và 8.55 (Price sau khi đã trừ discount theo level 1) : 9.5 + (9.5 x 10%) = 10.45 (Dual Price của Item) 8.55 + (8.55 x 10%) = 9.41 (Dual Price của item sau khi đã trừ Discount amount theo Price level 1) => Discount amount theo Price level 1 được tính theo Dual Price = 10.45 - 9.41 = 1.04