calculate total discount includes couponcode,gift card and score

Hace 1 semana
Hello every one how can I calculate total discount that applied on an order, after the order placed?
Hace 1 semana
there is a column "OrderDiscount" at Order table
//Rashed
Hace 1 semana
And for the discount applied on products, you can check the DiscountAmountInclTax and DiscountAmountExclTax