addons-cm/pos_payment_method_cashdro_rounding
GitHub Copilot 57bf688169
[REF] pos_payment_method_cashdro_rounding: hook the amount, not the url builder
`_cashdro_payment_url()` is shared by the payment and the reversal paths, so
patching it applied the rounding to the reversals too: giving back a paid
order sent the drawer the *order* remaining, rounded, instead of the amount
of the line, and reversing an order already covered by other payments sent 0.

It also collided with the modules that fix that same method, leaving the
outcome to the asset load order.

Both go away by hooking `_cashdro_amount()`, the extension point
`pos_payment_method_cashdro_flow_fix` provides, which is only reached on a
payment. `shouldRound`/`getDefaultAmountDueToPayIn` came with the 18.0 tax
totals rework, so fall back instead of breaking the payment with a TypeError
the operator would read as one more connection error.

Adds the README_DEV.md the repo conventions ask for.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-31 17:43:38 +02:00
..
static/src/js [REF] pos_payment_method_cashdro_rounding: hook the amount, not the url builder 2026-08-31 17:43:38 +02:00
__init__.py [ADD] pos_payment_method_cashdro_rounding: migration to 18.0 2026-08-11 13:30:49 +02:00
__manifest__.py [REF] pos_payment_method_cashdro_rounding: hook the amount, not the url builder 2026-08-31 17:43:38 +02:00
README_DEV.md [REF] pos_payment_method_cashdro_rounding: hook the amount, not the url builder 2026-08-31 17:43:38 +02:00