AI OnAI Off
I believe getTotal is calculated by:
Total = subTotal + handlingTotal + ShippingSubTotal - OrderDiscountTotal - ShippingDiscountTotal
Lets say you have 3 orders of $200 and shipping discount of $20.
200+200+200 = $600 subtotal
200+ 200 + 200 - 20 - 20 - 20 = 540 total?
So ShippingDiscountTotal is messing up with the calculations?
using the IOrderSearchService we run reports for specific time periods and during some of those time periods we have sales and if the cart total is above 200 the customer gets free shipping.
We've noticed sometimes that the Total Revenue is sometimes less than the sub total. Does anyone know how that's possible?
code snippet below
Thank you
Commerce 13.32.6.0