Currently refunds are quite limited and only take the total sum for a line item and divide it by the quantity to get the unit price. This creates discrepancies in for example VAT reports since there is no way to subtract a refund correctly. I think that I've found a relatively simple solution to this issue that also correctly reports product discounts and other price components. Please see patch for details.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ordermind created an issue. See original summary.

ordermind’s picture

Status: Active » Needs review
FileSize
1.76 KB

Here's the patch!