I'm struggling to figure out how magento do that,split the discount amount on each ordered item in case of shopping cart rule having fixed amount of discount on whole cart
For example In the cart I have 3 items and there is coupon code "test5" after applied this coupon will get the discount of $5.00. In admin on order details page magento distribute discount amount.
So I want to know the logic how magento distribute the discount amount on each ordered item.
Thanks in advance!