In Clover Setup Application , if we check the setting of group similar Line Items from Orders tab, We have configured a discount rule such that the , if the same line item is present in the order with quantity 2 then we will apply 2 discounts with same Discount.discount.id.
"Let us assume we have line Item ABC in the order with qty.2 and we apply $5 to first product and $25 to second product but in Order Summary UI I am seeing Line Item ABC with qty 2 and applied discount $50 instead of $30 . Although in order subtotal $30 amount is getting reduced from order."
If we unchecked the setting from setup app, then two line items are getting displayed with the respective discount amounts.
By the clover behaviour it seems grouping of line items is done on the basis of item to which line item is associated. However if grouped line items have different discount with the same name then clover is taking the first discount object amount for the key and multiplying it with number of quantities and showing improper discount values on line items and proper in the order subtotal.