calculate total discount includes couponcode,gift card and score

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