feat(discount): apply rule-based discounts on the session payment step
PaymentStep now loads /session/{uuid}/discount-suggestions and lets the
operator apply a suggested rule (PATCH discount_rule_uuid) or remove it,
alongside the existing manual discount. Adds an amount summary (before /
discount + source rule label / final payable). Verified end-to-end.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -27,6 +27,7 @@ export interface SessionCardData {
|
||||
discount_type?: 'percent' | 'fixed' | null;
|
||||
discount_value?: number;
|
||||
discount_rials?: number;
|
||||
applied_discount_rule_label?: string | null;
|
||||
paid_total_rials?: number;
|
||||
paid_at?: number | null;
|
||||
payments?: SessionPaymentEntry[];
|
||||
|
||||
Reference in New Issue
Block a user