Page MenuHome

Order refund amounts must be stored, not calculated properties
Closed, ResolvedPublic

Description

Currently, Order has no columns that store any data about refunds, that data has to be computed based on order's transactions, which makes the following problematic/slow/near impossible:

  • filtering for orders with refunds;
  • aggregating orders refunds (which is necessary for running reports, such as tax reports);
  • having consistent refund amounts in the future (relying on consistent rounding arithmetic in Python is destined to backfire).

Order should get extra columns to store refunded amounts (the actual sum of Transaction.amount_refunded and the refunded tax, if applicable).

Revisions and Commits

Event Timeline

Anna Sirota (railla) triaged this task as High priority.Jun 24 2021, 5:58 PM
Anna Sirota (railla) created this task.
Anna Sirota (railla) updated the task description. (Show Details)
Anna Sirota (railla) moved this task from Restricted Project Column to Restricted Project Column on the Restricted Project board.
Anna Sirota (railla) closed this task as Resolved.Jun 29 2021, 4:28 PM