@posx/core 5.5.135 → 5.5.137

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.d.ts CHANGED
@@ -2683,11 +2683,12 @@ declare module '@posx/core/types/invoice.type' {
2683
2683
  action_at: Date;
2684
2684
  }
2685
2685
  export interface IDiscount {
2686
+ name?: string;
2687
+ name_translation?: Record<string, string>;
2686
2688
  uid: string;
2687
2689
  calc_type: CalcType;
2688
2690
  amount: number;
2689
2691
  percent: number;
2690
- percent_amount: number;
2691
2692
  }
2692
2693
  export interface ICharge {
2693
2694
  uid: string;
@@ -2704,8 +2705,6 @@ declare module '@posx/core/types/invoice.type' {
2704
2705
  trigger_condition: string;
2705
2706
  }
2706
2707
  export interface IInvoiceDiscount extends IDiscount {
2707
- /** the name can be the voucher or coupon name */
2708
- name?: string;
2709
2708
  /** Discount Type */
2710
2709
  type: DiscountType;
2711
2710
  /** Discount unique id */
@@ -2714,6 +2713,7 @@ declare module '@posx/core/types/invoice.type' {
2714
2713
  coupon_uid?: string;
2715
2714
  /** Calculation flow */
2716
2715
  calc_flow: CalcFlow;
2716
+ percent_amount: number;
2717
2717
  }
2718
2718
  export class InvoiceDiscount implements IInvoiceDiscount {
2719
2719
  calc_type: CalcType;