You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
With the new multi-invoice and multi-creditmemo features in v1.2.1, I was trying to determine how much fee was billed on a given invoice/creditmemo programatically. This led me to the order totals block in the admin where credit memo and invoice fees are computed dynamically. This makes it very difficult to determine the value invoiced/refunded on a frontend UI.
To Reproduce
Steps to reproduce the behavior:
Create an order with a custom fee
Invoice a part of the order
Credit the invoice from step 2.
Struggle to determine how to compute the cost returned on a frontend UI.
Expected behavior
I would like either:
Static values stored for creditmemos and invoices so that fee computation is a simple read
A isolated class for fee computation for a given Invoice object or CreditMemo object.