Project

General

Profile

Actions

Development #7647

open

Feature #7166: Voucher (M14)

Build voucher balance & partial redemption handling

Added by Kyle Chong 3 months ago.

Status:
New
Assignee:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Complete Date:

Description

Refer to:

  • docs/planning/modules/M14_Voucher.md
  • docs/planning/FPOS

Implement voucher value consumption rules.

Scope:

  • Support full redemption.
  • Support partial redemption where permitted.
  • Calculate redemption amount.
  • Calculate remaining voucher balance.
  • Prevent redemption above available balance.
  • Prevent redemption above transaction payable amount unless business rules explicitly allow it.
  • Preserve remaining balance for future redemption where supported.
  • Handle fixed-value single-use vouchers according to rule.
  • Keep redemption calculation independent from UI.

Example:

Voucher Balance RM100
Sale Payable RM60
→ Redeem RM60
→ Remaining Voucher Balance RM40

where partial redemption is permitted.

Done when: Voucher redemption amount and remaining balance follow the configured voucher rules correctly.

No data to display

Actions

Also available in: Atom PDF