{"section":"known-issues","requestedLocale":"en","requestedSlug":"scenarios-involving-goodwill-following-an-order-modification","locale":"en","slug":"scenarios-involving-goodwill-following-an-order-modification","path":"docs/en/known-issues/Order Management/scenarios-involving-goodwill-following-an-order-modification.md","branch":"main","content":"## Summary\n\nWe have identified an issue within the Goodwill scenario—specifically in cases involving \"order modifications\"—where refund amounts are aggregated by summing *all* `refundPayment` receipts associated with the order, without distinguishing between those resulting from an \"Order Modification\" and those from a standalone refund.\nThe problem lies in the fact that the `orderValueProportionalToTransaction` is already calculated based on the post-modification value (i.e., the value *after* the change), which already incorporates the discount applied during the order modification. Consequently, the refund receipt generated by the order modification is subtracted a second time—resulting in double-counting.\n\nThis behavior prevents accounts from submitting an input/goodwill invoice, triggering the following error:\n\n400 BAD_REQUEST\n\"Unable to use the restitution Refund more than 0.0\"\n\n## Simulation\n\nIt is indeed possible to simulate this by creating an order with a total value of $100.00, containing two items—A and B—where Item A costs $70.00 and Item B costs $30.00. Remove Item A via Order Modification, and then attempt to process a refund using Goodwill.\n\n## Workaround\n\nWe do not have WA at the moment."}