Describe your bug or feature request.
/admin/commerce/orders/***/payments caches the order entity. So, if you edit an order and add an item, then go to the payments tab, the balance field is wrong.
If a bug, provide steps to reproduce it from a clean install.
See above. The payment tab views caches based on payment entity. But, in the simple case I mentioned above, payments don't change, but order changed.
and discussed happened on Slack https://drupal.slack.com/archives/C1TLCCF9B/p1669116645354739
Proposed solution
Remove the caching on Payment Tab view.
Comments
Comment #2
skyredwangTested: After removing the views cache, the balance shows correct amount whenever you add or remove items.
Comment #4
travis-bradbury commentedI suggest that rather than disabling caching on the view, cache metadata for the order should be attached to the payment total summary. I'm making a guess that this is where the issue is.
The balance is in the commerce_payment_total_summary views area. It could add the order's cache metadata to the render array there.
Comment #5
kiwad commentedI had something similar.
Ended up patching manual gateway
Comment #8
tbkot commentedComment #10
jsacksick commented@tbkot: Looks good thank you! Committed.