HI everyone, wanted to ask here before submitting ...
# general
v
HI everyone, wanted to ask here before submitting a bug on GIthub because you might have some insights. Basically, after reimbursements of type Store Credit are issued for a given order, the order enters a "Credit Owed" state. I was able to track that down to the outstanding_balance method on the order model (https://github.com/solidusio/solidus/blob/master/core/app/models/spree/order.rb#L343). The following formula:
Copy code
total - reimbursement_total - payment_total
is wrong because when a store credit reimbursement happens, payment_total does not change but reimbursement_total gets modified, ended up returning an outstanding_balance equals to the amount of the SC reimbursement.
r
I suggest you to submit a PR in either case