I\'m trying to modify a shipment inventory code to apply the discount on a product in percentage and not as a value. Now if my totalAmount is 1200$ and the discount value is