Files
opensourcepos/tests/Models
jekkosandcoderabbitai[bot] fa0fa534c3 fix(sales): allow gift card credit for returns + surface errors (#4781)
* fix(sales): allow gift card credit for returns + surface errors

- Add incrementGiftcardValue() to Giftcard model for crediting cards
- In Sale::save_value(), use incrementGiftcardValue() for returns
  with negative gift card payments (credits the card)
- Add error_message rendering to register view so failed completions
  show the error instead of silently reloading

Fixes #4779

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2026-11-02 21:03:52 +01:00
..