@posx/core 5.5.630 → 5.5.631

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
@@ -375,75 +375,6 @@ type IAppCore = Omit<IAppCoreModel, "id_in_server" | "_timestamp">;
375
375
  type IAppBase = Omit<IAppBaseModel, "id_in_server" | "_timestamp">;
376
376
  type IAppExtra = Omit<IAppExtraModel, "id_in_server" | "_timestamp">;
377
377
  //#endregion
378
- //#region src/types/shift.type.d.ts
379
- declare enum ShiftStatus {
380
- Open = "opened",
381
- // example value
382
- Closed = "closed",
383
- }
384
- interface IShift extends IAppCoreModel {
385
- /** user uid */
386
- user_uid: string;
387
- /** shift started at */
388
- started_at: Date;
389
- /** shift closed at */
390
- ended_at: Date;
391
- /** amount declared by user */
392
- declared_amount: number;
393
- /** amount recorded by */
394
- drawer_amount: number;
395
- /** Operation Status */
396
- status: ShiftStatus;
397
- /** first invoice number */
398
- first_invoice_number: number;
399
- }
400
- declare class Shift extends AppCoreModel implements IShift {
401
- user_uid: string;
402
- started_at: Date;
403
- ended_at: Date;
404
- declared_amount: number;
405
- drawer_amount: number;
406
- first_invoice_number: number;
407
- status: ShiftStatus;
408
- uid: string;
409
- constructor();
410
- }
411
- declare enum TillType {
412
- OpenDeposit = "open_deposit",
413
- // example value
414
- CashDeposit = "cash_deposit",
415
- // example value
416
- CashIn = "cash_in",
417
- // example value
418
- CashOut = "cash_out",
419
- // example value
420
- CashInvoice = "cash_invoice",
421
- }
422
- interface ITill extends AppCoreModel {
423
- /** user uid */
424
- user_uid: string;
425
- /** operation history id */
426
- shift_uid: string;
427
- /** invoice uid */
428
- invoice_uid: string;
429
- /** Till Type */
430
- type: TillType;
431
- /** Amount */
432
- amount: number;
433
- /** Note */
434
- note: string;
435
- }
436
- declare class Till extends AppCoreModel implements ITill {
437
- user_uid: string;
438
- shift_uid: string;
439
- invoice_uid: string;
440
- type: TillType;
441
- amount: number;
442
- note: string;
443
- uid: string;
444
- constructor();
445
- }
446
- //#endregion
447
378
  //#region ../../node_modules/.pnpm/dexie@4.3.0/node_modules/dexie/dist/dexie.d.ts
448
379
  /*
449
380
  * Dexie.js - a minimalistic wrapper for IndexedDB
@@ -1630,19 +1561,305 @@ interface IAppRemoteService<T extends IAppCoreModel> extends IAppCoreService<T>
1630
1561
  */
1631
1562
  hardDeleteOne(model: T): Promise<T>;
1632
1563
  }
1633
- declare class AppRemoteService<T extends IAppCoreModel> extends AppCoreService<T> implements IAppRemoteService<T> {
1634
- protected readonly http: AxiosInstance;
1635
- readonly moduleName: string;
1636
- protected readonly methodName: string;
1637
- protected readonly options: IServiceOptions;
1638
- addOne(item: T): Promise<T>;
1639
- updateOne(id: number, item: Partial<T>): Promise<T>;
1640
- updateMany(items: T[]): Promise<T[]>;
1641
- deleteOne(model: T): Promise<T>;
1642
- hardDeleteOne(model: T): Promise<T>;
1564
+ declare class AppRemoteService<T extends IAppCoreModel> extends AppCoreService<T> implements IAppRemoteService<T> {
1565
+ protected readonly http: AxiosInstance;
1566
+ readonly moduleName: string;
1567
+ protected readonly methodName: string;
1568
+ protected readonly options: IServiceOptions;
1569
+ addOne(item: T): Promise<T>;
1570
+ updateOne(id: number, item: Partial<T>): Promise<T>;
1571
+ updateMany(items: T[]): Promise<T[]>;
1572
+ deleteOne(model: T): Promise<T>;
1573
+ hardDeleteOne(model: T): Promise<T>;
1574
+ }
1575
+ interface IAppModelSequence {
1576
+ sequence: number;
1577
+ }
1578
+ //#endregion
1579
+ //#region src/types/payment.type.d.ts
1580
+ /**
1581
+ * Payment Entity Interface
1582
+ */
1583
+ interface IPayment extends IAppCoreModel {
1584
+ /** Invoice ID */
1585
+ invoice_uid: string;
1586
+ /** Tender Amount
1587
+ * tender amount can be greater than invoice amount
1588
+ * So the payment amount is tender_amount - change_amount
1589
+ */
1590
+ tender_amount: number;
1591
+ /** Change Amount */
1592
+ change_amount: number;
1593
+ /** Payment Method ID */
1594
+ payment_method_uid: string;
1595
+ /** Payment Method Code */
1596
+ payment_method_code: string;
1597
+ /** Selected Payment Method */
1598
+ payment_method_name: string;
1599
+ /** Selected Payment Method */
1600
+ payment_method: IPaymentMethod;
1601
+ /** Payment Method History when payment method is changed */
1602
+ payment_method_history?: IPaymentMethodHistory;
1603
+ }
1604
+ declare class Payment extends AppCoreModel implements IPayment {
1605
+ invoice_uid: string;
1606
+ tender_amount: number;
1607
+ change_amount: number;
1608
+ payment_method_uid: string;
1609
+ payment_method_code: string;
1610
+ payment_method_name: string;
1611
+ payment_method: IPaymentMethod;
1612
+ payment_method_history: IPaymentMethodHistory;
1613
+ uid: string;
1614
+ updated_at: Date;
1615
+ constructor();
1616
+ }
1617
+ /**
1618
+ * Payment Method Entity Interface
1619
+ */
1620
+ interface IPaymentMethod extends IAppBaseModel, IAppModelSequence {
1621
+ /** Payment Currency ID */
1622
+ payment_currency_id: number;
1623
+ /** Currency Code */
1624
+ currency_code: string;
1625
+ /** Payment Method Code */
1626
+ currency_symbol: string;
1627
+ /** Payment Method Code */
1628
+ payment_method_code: string;
1629
+ /** Payment Name */
1630
+ name: string;
1631
+ /** Code Name */
1632
+ codename: string;
1633
+ /** Name Abbreviation */
1634
+ name_abbrev: string;
1635
+ /** Enable Drawer */
1636
+ enable_drawer: boolean;
1637
+ /** Enable Receipt */
1638
+ enable_receipt: boolean;
1639
+ /** Image URL */
1640
+ image_url: string;
1641
+ /** Custom Image URL */
1642
+ custom_image_url: string;
1643
+ /** Is Cash */
1644
+ is_cash: boolean;
1645
+ /** Is Integrated */
1646
+ is_integrated: boolean;
1647
+ /** Is Disabled */
1648
+ is_disabled: boolean;
1649
+ /** Type */
1650
+ type: number;
1651
+ /** API ID */
1652
+ api_id: string;
1653
+ /** API Key */
1654
+ api_key: string;
1655
+ /** Is Sales Exclusive */
1656
+ is_sales_exclusive: boolean;
1657
+ /** Requires invoice.minus_credit > 0 for validation */
1658
+ enable_credit_validation: boolean;
1659
+ /** Requires invoice.customer_id > 0 for validation */
1660
+ enable_customer_validation: boolean;
1661
+ /** Allow cancellation during payment process */
1662
+ is_cancellable: boolean;
1663
+ /** Only allow this payment method when order balance is zero */
1664
+ require_zero_balance: boolean;
1665
+ /** Allow entering custom amount during payment (e.g., voucher face value) */
1666
+ allow_custom_amount?: boolean;
1667
+ }
1668
+ interface IPaymentMethodHistory extends IPaymentMethod {
1669
+ changed_at: Date;
1670
+ changed_by: string;
1671
+ }
1672
+ declare class PaymentMethod extends AppBaseModel implements IPaymentMethod {
1673
+ sequence: number;
1674
+ payment_currency_id: number;
1675
+ currency_code: string;
1676
+ currency_symbol: string;
1677
+ payment_method_code: string;
1678
+ name: string;
1679
+ codename: string;
1680
+ name_abbrev: string;
1681
+ enable_drawer: boolean;
1682
+ enable_receipt: boolean;
1683
+ image_url: string;
1684
+ custom_image_url: string;
1685
+ is_cash: boolean;
1686
+ is_integrated: boolean;
1687
+ is_disabled: boolean;
1688
+ type: number;
1689
+ api_id: string;
1690
+ api_key: string;
1691
+ is_sales_exclusive: boolean;
1692
+ enable_credit_validation: boolean;
1693
+ enable_customer_validation: boolean;
1694
+ is_cancellable: boolean;
1695
+ require_zero_balance: boolean;
1696
+ allow_custom_amount: boolean;
1697
+ uid: string;
1698
+ constructor();
1699
+ }
1700
+ declare class PaymentMethodHistory extends PaymentMethod {
1701
+ changed_at: Date;
1702
+ changed_by: string;
1703
+ constructor();
1704
+ }
1705
+ interface IStandardPaymentMethod {
1706
+ /** Access Token */
1707
+ access_token: string | null;
1708
+ /** Base64 encoded image */
1709
+ image_base64: string | null;
1710
+ /** Error message */
1711
+ error: string | null;
1712
+ /** Currency code */
1713
+ currency_code: string | null;
1714
+ /** Payment method code */
1715
+ payment_method_code: string;
1716
+ /** Codename of the payment method */
1717
+ codename: string | null;
1718
+ /** Abbreviated name */
1719
+ name_abbrev: string | null;
1720
+ /** Full name */
1721
+ name: string;
1722
+ /** Flag to enable drawer */
1723
+ enable_drawer: boolean;
1724
+ /** Flag to enable receipt */
1725
+ enable_receipt: boolean;
1726
+ /** Image URL */
1727
+ image_url: string;
1728
+ /** Flag for cash payment */
1729
+ is_cash: boolean;
1730
+ /** Flag for integrated payment */
1731
+ is_integrated: boolean;
1732
+ /** Flag to disable the payment method */
1733
+ is_disabled: boolean;
1734
+ /** Type of payment method */
1735
+ type: number;
1736
+ /** API ID */
1737
+ api_id: string | null;
1738
+ /** API Key */
1739
+ api_key: string | null;
1740
+ /** Timestamp of creation */
1741
+ timestamp_create: number;
1742
+ /** Timestamp of last update */
1743
+ timestamp_update: number;
1744
+ toPaymentMethod(): PaymentMethod;
1745
+ }
1746
+ declare class StandardPaymentMethod implements IStandardPaymentMethod {
1747
+ access_token: any;
1748
+ image_base64: any;
1749
+ error: any;
1750
+ currency_code: any;
1751
+ payment_method_code: string;
1752
+ codename: any;
1753
+ name_abbrev: any;
1754
+ name: string;
1755
+ enable_drawer: boolean;
1756
+ enable_receipt: boolean;
1757
+ image_url: string;
1758
+ is_cash: boolean;
1759
+ is_integrated: boolean;
1760
+ is_disabled: boolean;
1761
+ type: number;
1762
+ api_id: any;
1763
+ api_key: any;
1764
+ timestamp_create: number;
1765
+ timestamp_update: number;
1766
+ toPaymentMethod(): PaymentMethod;
1767
+ constructor(init?: Partial<IPaymentMethod>);
1768
+ }
1769
+ type IChangePaymentMethodOption = {
1770
+ source_payment: IPayment;
1771
+ target_payment_method: IPaymentMethod;
1772
+ };
1773
+ /**
1774
+ * Payment sync status enum
1775
+ */
1776
+ declare enum PaymentStatus {
1777
+ STARTED = "payment_started",
1778
+ COMPLETED = "payment_completed",
1779
+ FAILED = "payment_failed",
1780
+ CANCELLED = "payment_cancelled",
1781
+ }
1782
+ //#endregion
1783
+ //#region src/types/shift.type.d.ts
1784
+ declare enum ShiftStatus {
1785
+ Open = "opened",
1786
+ // example value
1787
+ Closed = "closed",
1788
+ }
1789
+ interface IShift extends IAppCoreModel {
1790
+ /** user uid */
1791
+ user_uid: string;
1792
+ /** shift started at */
1793
+ started_at: Date;
1794
+ /** shift closed at */
1795
+ ended_at: Date;
1796
+ /** amount declared by user */
1797
+ declared_amount: number;
1798
+ /** amount recorded by */
1799
+ drawer_amount: number;
1800
+ /** Operation Status */
1801
+ status: ShiftStatus;
1802
+ /** first invoice number */
1803
+ first_invoice_number: number;
1804
+ }
1805
+ declare class Shift extends AppCoreModel implements IShift {
1806
+ user_uid: string;
1807
+ started_at: Date;
1808
+ ended_at: Date;
1809
+ declared_amount: number;
1810
+ drawer_amount: number;
1811
+ first_invoice_number: number;
1812
+ status: ShiftStatus;
1813
+ uid: string;
1814
+ constructor();
1815
+ }
1816
+ declare enum TillType {
1817
+ OpenDeposit = "open_deposit",
1818
+ // example value
1819
+ CashDeposit = "cash_deposit",
1820
+ // example value
1821
+ CashIn = "cash_in",
1822
+ // example value
1823
+ CashOut = "cash_out",
1824
+ // example value
1825
+ CashInvoice = "cash_invoice",
1826
+ }
1827
+ /** Shift fund flow record: drawer cash = Σ Till where is_cash (legacy records without this field default to cash) */
1828
+ interface ITill extends AppCoreModel {
1829
+ /** user uid */
1830
+ user_uid: string;
1831
+ /** operation history id */
1832
+ shift_uid: string;
1833
+ /** invoice uid */
1834
+ invoice_uid: string;
1835
+ /** Till Type */
1836
+ type: TillType;
1837
+ /** Amount */
1838
+ amount: number;
1839
+ /** Note */
1840
+ note: string;
1841
+ /** Payment Method UID */
1842
+ payment_method_uid?: string;
1843
+ /** Payment Method Code */
1844
+ payment_method_code?: string;
1845
+ /** Payment Method Name */
1846
+ payment_method_name?: string;
1847
+ /** Payment Method Snapshot */
1848
+ payment_method?: IPaymentMethod;
1643
1849
  }
1644
- interface IAppModelSequence {
1645
- sequence: number;
1850
+ declare class Till extends AppCoreModel implements ITill {
1851
+ user_uid: string;
1852
+ shift_uid: string;
1853
+ invoice_uid: string;
1854
+ type: TillType;
1855
+ amount: number;
1856
+ note: string;
1857
+ uid: string;
1858
+ payment_method_uid?: string;
1859
+ payment_method_code?: string;
1860
+ payment_method_name?: string;
1861
+ payment_method?: IPaymentMethod;
1862
+ constructor();
1646
1863
  }
1647
1864
  //#endregion
1648
1865
  //#region src/types/section.type.d.ts
@@ -2554,210 +2771,6 @@ declare class PrintCommand implements IPrintCommand {
2554
2771
  items: IPrintCommandLine[];
2555
2772
  }
2556
2773
  //#endregion
2557
- //#region src/types/payment.type.d.ts
2558
- /**
2559
- * Payment Entity Interface
2560
- */
2561
- interface IPayment extends IAppCoreModel {
2562
- /** Invoice ID */
2563
- invoice_uid: string;
2564
- /** Tender Amount
2565
- * tender amount can be greater than invoice amount
2566
- * So the payment amount is tender_amount - change_amount
2567
- */
2568
- tender_amount: number;
2569
- /** Change Amount */
2570
- change_amount: number;
2571
- /** Payment Method ID */
2572
- payment_method_uid: string;
2573
- /** Payment Method Code */
2574
- payment_method_code: string;
2575
- /** Selected Payment Method */
2576
- payment_method_name: string;
2577
- /** Selected Payment Method */
2578
- payment_method: IPaymentMethod;
2579
- /** Payment Method History when payment method is changed */
2580
- payment_method_history?: IPaymentMethodHistory;
2581
- }
2582
- declare class Payment extends AppCoreModel implements IPayment {
2583
- invoice_uid: string;
2584
- tender_amount: number;
2585
- change_amount: number;
2586
- payment_method_uid: string;
2587
- payment_method_code: string;
2588
- payment_method_name: string;
2589
- payment_method: IPaymentMethod;
2590
- payment_method_history: IPaymentMethodHistory;
2591
- uid: string;
2592
- updated_at: Date;
2593
- constructor();
2594
- }
2595
- /**
2596
- * Payment Method Entity Interface
2597
- */
2598
- interface IPaymentMethod extends IAppBaseModel, IAppModelSequence {
2599
- /** Payment Currency ID */
2600
- payment_currency_id: number;
2601
- /** Currency Code */
2602
- currency_code: string;
2603
- /** Payment Method Code */
2604
- currency_symbol: string;
2605
- /** Payment Method Code */
2606
- payment_method_code: string;
2607
- /** Payment Name */
2608
- name: string;
2609
- /** Code Name */
2610
- codename: string;
2611
- /** Name Abbreviation */
2612
- name_abbrev: string;
2613
- /** Enable Drawer */
2614
- enable_drawer: boolean;
2615
- /** Enable Receipt */
2616
- enable_receipt: boolean;
2617
- /** Image URL */
2618
- image_url: string;
2619
- /** Custom Image URL */
2620
- custom_image_url: string;
2621
- /** Is Cash */
2622
- is_cash: boolean;
2623
- /** Is Integrated */
2624
- is_integrated: boolean;
2625
- /** Is Disabled */
2626
- is_disabled: boolean;
2627
- /** Type */
2628
- type: number;
2629
- /** API ID */
2630
- api_id: string;
2631
- /** API Key */
2632
- api_key: string;
2633
- /** Is Sales Exclusive */
2634
- is_sales_exclusive: boolean;
2635
- /** Requires invoice.minus_credit > 0 for validation */
2636
- enable_credit_validation: boolean;
2637
- /** Requires invoice.customer_id > 0 for validation */
2638
- enable_customer_validation: boolean;
2639
- /** Allow cancellation during payment process */
2640
- is_cancellable: boolean;
2641
- /** Only allow this payment method when order balance is zero */
2642
- require_zero_balance: boolean;
2643
- /** Allow entering custom amount during payment (e.g., voucher face value) */
2644
- allow_custom_amount?: boolean;
2645
- }
2646
- interface IPaymentMethodHistory extends IPaymentMethod {
2647
- changed_at: Date;
2648
- changed_by: string;
2649
- }
2650
- declare class PaymentMethod extends AppBaseModel implements IPaymentMethod {
2651
- sequence: number;
2652
- payment_currency_id: number;
2653
- currency_code: string;
2654
- currency_symbol: string;
2655
- payment_method_code: string;
2656
- name: string;
2657
- codename: string;
2658
- name_abbrev: string;
2659
- enable_drawer: boolean;
2660
- enable_receipt: boolean;
2661
- image_url: string;
2662
- custom_image_url: string;
2663
- is_cash: boolean;
2664
- is_integrated: boolean;
2665
- is_disabled: boolean;
2666
- type: number;
2667
- api_id: string;
2668
- api_key: string;
2669
- is_sales_exclusive: boolean;
2670
- enable_credit_validation: boolean;
2671
- enable_customer_validation: boolean;
2672
- is_cancellable: boolean;
2673
- require_zero_balance: boolean;
2674
- allow_custom_amount: boolean;
2675
- uid: string;
2676
- constructor();
2677
- }
2678
- declare class PaymentMethodHistory extends PaymentMethod {
2679
- changed_at: Date;
2680
- changed_by: string;
2681
- constructor();
2682
- }
2683
- interface IStandardPaymentMethod {
2684
- /** Access Token */
2685
- access_token: string | null;
2686
- /** Base64 encoded image */
2687
- image_base64: string | null;
2688
- /** Error message */
2689
- error: string | null;
2690
- /** Currency code */
2691
- currency_code: string | null;
2692
- /** Payment method code */
2693
- payment_method_code: string;
2694
- /** Codename of the payment method */
2695
- codename: string | null;
2696
- /** Abbreviated name */
2697
- name_abbrev: string | null;
2698
- /** Full name */
2699
- name: string;
2700
- /** Flag to enable drawer */
2701
- enable_drawer: boolean;
2702
- /** Flag to enable receipt */
2703
- enable_receipt: boolean;
2704
- /** Image URL */
2705
- image_url: string;
2706
- /** Flag for cash payment */
2707
- is_cash: boolean;
2708
- /** Flag for integrated payment */
2709
- is_integrated: boolean;
2710
- /** Flag to disable the payment method */
2711
- is_disabled: boolean;
2712
- /** Type of payment method */
2713
- type: number;
2714
- /** API ID */
2715
- api_id: string | null;
2716
- /** API Key */
2717
- api_key: string | null;
2718
- /** Timestamp of creation */
2719
- timestamp_create: number;
2720
- /** Timestamp of last update */
2721
- timestamp_update: number;
2722
- toPaymentMethod(): PaymentMethod;
2723
- }
2724
- declare class StandardPaymentMethod implements IStandardPaymentMethod {
2725
- access_token: any;
2726
- image_base64: any;
2727
- error: any;
2728
- currency_code: any;
2729
- payment_method_code: string;
2730
- codename: any;
2731
- name_abbrev: any;
2732
- name: string;
2733
- enable_drawer: boolean;
2734
- enable_receipt: boolean;
2735
- image_url: string;
2736
- is_cash: boolean;
2737
- is_integrated: boolean;
2738
- is_disabled: boolean;
2739
- type: number;
2740
- api_id: any;
2741
- api_key: any;
2742
- timestamp_create: number;
2743
- timestamp_update: number;
2744
- toPaymentMethod(): PaymentMethod;
2745
- constructor(init?: Partial<IPaymentMethod>);
2746
- }
2747
- type IChangePaymentMethodOption = {
2748
- source_payment: IPayment;
2749
- target_payment_method: IPaymentMethod;
2750
- };
2751
- /**
2752
- * Payment sync status enum
2753
- */
2754
- declare enum PaymentStatus {
2755
- STARTED = "payment_started",
2756
- COMPLETED = "payment_completed",
2757
- FAILED = "payment_failed",
2758
- CANCELLED = "payment_cancelled",
2759
- }
2760
- //#endregion
2761
2774
  //#region src/types/condition.type.d.ts
2762
2775
  declare enum Condition {
2763
2776
  None = "",
@@ -4283,6 +4296,7 @@ type IReportData = {
4283
4296
  humanized_end_datetime: string;
4284
4297
  sales_summary: ISalesSummary;
4285
4298
  drawer_summary: IDrawerSummary;
4299
+ non_cash_till_summary: INonCashTillSummary;
4286
4300
  payments_summary: IPaymentSummary[];
4287
4301
  loyalty_program_summary: ILoyaltyProgramSummary;
4288
4302
  item_sales_summary: TItemSalesSummary[];
@@ -4305,6 +4319,7 @@ declare class ReportData implements IReportData {
4305
4319
  humanized_printed_datetime: string;
4306
4320
  sales_summary: SalesSummary;
4307
4321
  drawer_summary: DrawerSummary;
4322
+ non_cash_till_summary: NonCashTillSummary;
4308
4323
  payments_summary: PaymentSummary[];
4309
4324
  loyalty_program_summary: LoyaltyProgramSummary;
4310
4325
  item_sales_summary: ItemSalesSummary[];
@@ -4394,6 +4409,22 @@ declare class DrawerSummary implements IDrawerSummary {
4394
4409
  pay_out_total: number;
4395
4410
  pay_out_count: number;
4396
4411
  }
4412
+ type INonCashTillSummary = {
4413
+ pay_in_total: number;
4414
+ pay_in_count: number;
4415
+ pay_out_total: number;
4416
+ pay_out_count: number;
4417
+ pay_in_by_method: IPaymentSummary[];
4418
+ pay_out_by_method: IPaymentSummary[];
4419
+ };
4420
+ declare class NonCashTillSummary implements INonCashTillSummary {
4421
+ pay_in_total: number;
4422
+ pay_in_count: number;
4423
+ pay_out_total: number;
4424
+ pay_out_count: number;
4425
+ pay_in_by_method: IPaymentSummary[];
4426
+ pay_out_by_method: IPaymentSummary[];
4427
+ }
4397
4428
  type IPaymentSummary = {
4398
4429
  code: string;
4399
4430
  name: string;
@@ -5284,8 +5315,8 @@ declare class ProductService extends AppRemoteService<IItem> implements IProduct
5284
5315
  interface IShiftService extends IAppRemoteService<IShift> {
5285
5316
  closeShift(declareAmount: number, userUid: string): Promise<IShift>;
5286
5317
  openShift(openAmount: number, userUid: string, note?: string): Promise<IShift>;
5287
- cashIn(amount: number, note: string): Promise<ITill>;
5288
- cashOut(amount: number, note: string): Promise<ITill>;
5318
+ cashIn(amount: number, note: string, paymentMethod?: IPaymentMethod): Promise<ITill>;
5319
+ cashOut(amount: number, note: string, paymentMethod?: IPaymentMethod): Promise<ITill>;
5289
5320
  }
5290
5321
  declare class ShiftService extends AppRemoteService<IShift> implements IShiftService {
5291
5322
  readonly http: AxiosInstance;
@@ -5295,8 +5326,8 @@ declare class ShiftService extends AppRemoteService<IShift> implements IShiftSer
5295
5326
  readonly methodName: string;
5296
5327
  private tillService;
5297
5328
  constructor(http: AxiosInstance, db: Dexie, options: IServiceOptions, moduleName?: string, methodName?: string);
5298
- cashIn(amount: number, note: string): Promise<ITill>;
5299
- cashOut(amount: number, note: string): Promise<ITill>;
5329
+ cashIn(amount: number, note: string, paymentMethod?: IPaymentMethod): Promise<ITill>;
5330
+ cashOut(amount: number, note: string, paymentMethod?: IPaymentMethod): Promise<ITill>;
5300
5331
  closeShift(declareAmount: number, userUid: string): Promise<IShift>;
5301
5332
  openShift(openAmount: number, userUid: string, note?: string): Promise<IShift>;
5302
5333
  }
@@ -6559,5 +6590,5 @@ interface ValidationResult {
6559
6590
  }
6560
6591
  declare function validateSTTemplate(jsonStr: string): ValidationResult;
6561
6592
  //#endregion
6562
- export { Address, AlipayMethod, AppBaseModel, AppConfig, AppCoreModel, AppCoreService, AppExtraModel, AppLocalService, AppMiscService, AppRemoteService, AppReport, AppReportService, Applying, Appointment, AppointmentService, AppointmentServiceLine, AppointmentSource, AppointmentStatus, AssetItem, AssetTags, AssetType, Between, Cache, CalcFlow, CalcType, CancelInvoiceOptions, CardPaymentCode, CashDrawerConfig, Category, CategoryButtonShape, CategorySalesSummary, CategoryService, CategoryType, Charge, ChargeConfig, CheckInvoiceOptions, Codepages, ComboGroup, ComboGroupItem, Condition, Config, ConfigService, CoreCategory, CoreItem, Coupon, CouponItemized, CouponUsage, CreateInvoiceOptions, CrmConfig, CurrencyConfig, CustomResponse, Customer, CustomerDisplaySystemConfig, DayOfWeek, DeployChannel, Device, DeviceEtc, DeviceType, DirectPayInvoiceOptions, DiscountType, DrawerSummary, ElectronSocket, Employee, EmployeeRole, EmployeeRoleService, EmployeeService, ErrorMsgs, EscPosCompatibility, EscPosPrinter, EventPrintConfig, FileUploadRequest, GTOConfig, GeneralConfig, GetManyResult, Holiday, IAddress, IAppBase, IAppBaseModel, IAppConfig, IAppCore, IAppCoreModel, IAppCoreService, IAppExtra, IAppExtraModel, IAppLocalService, IAppMiscService, IAppModelSequence, IAppRemoteService, IAppReport, IAppReportService, IApplying, IAppointment, IAppointmentService, IAppointmentServiceLine, ICache, ICashDrawerConfig, ICategory, ICategoryService, IChangePaymentMethodOption, ICharge, IChargeConfig, IComboGroup, IComboGroupItem, IConfig, IConfigService, ICoreCategory, ICoreItem, ICoupon, ICouponItemized, ICouponUsage, ICredit, ICrmConfig, ICurrencyConfig, ICustomer, ICustomerDisplaySystemConfig, IDevice, IDiscount, IDiscountSummaryEntry, IDrawerSummary, IEmployee, IEmployeeRole, IEmployeeRoleService, IEmployeeService, IEscPosPrinter, IEtc, IEventPrintConfig, IExportRow, IFileUploadRequest, IFileUploadResponse, IFontSize, IGeneralConfig, IGtoConfig, IInventoryConfig, IInvoice, IInvoiceActivity, IInvoiceBaseService, IInvoiceCharge, IInvoiceCoreLine, IInvoiceDiscount, IInvoiceLine, IInvoiceOperationService, IInvoiceService, IItem, IItemService, IKdsConfig, IKioskSystemConfig, IKitchenConfig, ILabelConfig, ILineOperationService, ILoyaltyProgram, ILoyaltyProgramSummary, IMarketing, IMenu, IMenuService, IMerchant, IMerchantAsset, INode, INodePrinter, INote, INoteEntity, INoteGroup, INoteGroupEntity, INoteGroupService, INoteService, IOnlineOrderConfig, IOrderConfig, IOrderDisplay, IOrderDisplayService, IOrderDisplaySystemConfig, IOrderTypeSummary, IPaxConfig, IPayment, IPaymentConfig, IPaymentMethod, IPaymentMethodHistory, IPaymentMethodService, IPaymentService, IPaymentSummary, IPoint, IPrice, IPrintBarcode, IPrintCommand, IPrintCommandLine, IPrintImage, IPrintJob, IPrintJobService, IPrintQrcode, IPrintTable, IPrintTableRowItem, IPrintTemplate, IPrintTemplateCore, IPrintTemplateService, IPrintText, IPrinter, IPrinterService, IProductBase, IProductConfig, IProductService, IPushData, IReceiptConfig, IRenderPrintTemplateOptions, IReport, IReportCategory, IReportConfig, IReportData, IReportRequest, IRoundingConfig, ISalesSummary, ISalesperson, ISection, ISectionItem, ISectionItemService, ISectionService, IServiceOptions, IShift, IShiftService, IStandardPaymentMethod, IStockLog, IStockLogService, IStorage, ISubcategory, ISubcategoryService, ISystemConfig, ITaxConfig, ITemplateData, ITill, ITillConfig, ITillService, IUser, IUserConfig, IVisibility, In, Include, InventoryConfig, Invoice, InvoiceAction, InvoiceActivity, InvoiceBaseService, InvoiceCharge, InvoiceCoreLine, InvoiceDiscount, InvoiceLine, InvoiceOperationService, InvoiceService, InvoiceStatus, InvoiceType, Item, ItemSalesSummary, ItemService, KdsConfig, KioskSystemConfig, KitchenConfig, LabelConfig, LineOperationService, LineOptions, LoyaltyProgram, LoyaltyProgramSummary, MarketingConfig, Menu, MenuService, Merchant, MessageType, ModelPrefix, ModelType, ModifierSalesSummary, Node, NodePrinter, Not, Note, NoteEntity, NoteGroup, NoteGroupEntity, OnlineOrderConfig, OpenHours, OrderConfig, OrderDisplay, OrderDisplayService, OrderDisplayStatus, OrderDisplaySystemConfig, OrderFlow, PaxConfig, PayInvoiceOptions, Payment, PaymentConfig, PaymentMethod, PaymentMethodHistory, PaymentMethodService, PaymentService, PaymentStatus, PaymentSummary, PaynowMethod, Price, PrintAlign, PrintBarcode, PrintCommand, PrintImage, PrintJob, PrintJobService, PrintJobStatus, PrintQrcode, PrintSize, PrintStyle, PrintTemplate, PrintTemplateCore, PrintTemplateService, PrintType, Printer, PrinterConnections, PrinterProtocols, PrinterService, PrinterStatus, PrinterType, ProductBase, ProductConfig, ProductPartialAssets, ProductPartialConfig, ProductService, ProductType, PushData, Raw, Receipt, RenderPrintTemplateOptions, Report, ReportCategory, ReportConfig, ReportData, ReportType, RoundingConfig, SalesSummary, Schedule, Section, SectionItem, SectionItemService, SectionItemStatus, SectionService, ServiceFactory, ServiceMode, ServiceOptions, Shift, ShiftService, ShiftStatus, SpecialDay, StandardPaymentMethod, StockChange, StockLog, StockLogEntityType, StockLogRefType, StockLogService, StockLogType, Storage, StorageService, Subcategory, SwitchInvoiceOptions, System, SystemConfig, SystemError, TCategorySalesSummary, TDynamicOrderQR, TItemCoreSalesSummary, TItemSalesSummary, TModifierSalesSummary, TStockChange, TStockChangeItem, TStorageService, TaxConfig, TaxMethod, TemplateData, Till, TillConfig, TillService, TillType, UomType, UpdateGeneralConfigOptions, UpdateInvoiceOptions, User, UserConfig, type ValidationError, type ValidationResult, Visibility, VoidInvoiceOptions, WechatPayMethod, WeeklyHours, createCSVExport, createCSVExportWithHash, dbSchemas, filterByParams, getCategoryButtonShape, humanizedData, importFromCSV, normalizedDate, transformer, validateSTTemplate };
6593
+ export { Address, AlipayMethod, AppBaseModel, AppConfig, AppCoreModel, AppCoreService, AppExtraModel, AppLocalService, AppMiscService, AppRemoteService, AppReport, AppReportService, Applying, Appointment, AppointmentService, AppointmentServiceLine, AppointmentSource, AppointmentStatus, AssetItem, AssetTags, AssetType, Between, Cache, CalcFlow, CalcType, CancelInvoiceOptions, CardPaymentCode, CashDrawerConfig, Category, CategoryButtonShape, CategorySalesSummary, CategoryService, CategoryType, Charge, ChargeConfig, CheckInvoiceOptions, Codepages, ComboGroup, ComboGroupItem, Condition, Config, ConfigService, CoreCategory, CoreItem, Coupon, CouponItemized, CouponUsage, CreateInvoiceOptions, CrmConfig, CurrencyConfig, CustomResponse, Customer, CustomerDisplaySystemConfig, DayOfWeek, DeployChannel, Device, DeviceEtc, DeviceType, DirectPayInvoiceOptions, DiscountType, DrawerSummary, ElectronSocket, Employee, EmployeeRole, EmployeeRoleService, EmployeeService, ErrorMsgs, EscPosCompatibility, EscPosPrinter, EventPrintConfig, FileUploadRequest, GTOConfig, GeneralConfig, GetManyResult, Holiday, IAddress, IAppBase, IAppBaseModel, IAppConfig, IAppCore, IAppCoreModel, IAppCoreService, IAppExtra, IAppExtraModel, IAppLocalService, IAppMiscService, IAppModelSequence, IAppRemoteService, IAppReport, IAppReportService, IApplying, IAppointment, IAppointmentService, IAppointmentServiceLine, ICache, ICashDrawerConfig, ICategory, ICategoryService, IChangePaymentMethodOption, ICharge, IChargeConfig, IComboGroup, IComboGroupItem, IConfig, IConfigService, ICoreCategory, ICoreItem, ICoupon, ICouponItemized, ICouponUsage, ICredit, ICrmConfig, ICurrencyConfig, ICustomer, ICustomerDisplaySystemConfig, IDevice, IDiscount, IDiscountSummaryEntry, IDrawerSummary, IEmployee, IEmployeeRole, IEmployeeRoleService, IEmployeeService, IEscPosPrinter, IEtc, IEventPrintConfig, IExportRow, IFileUploadRequest, IFileUploadResponse, IFontSize, IGeneralConfig, IGtoConfig, IInventoryConfig, IInvoice, IInvoiceActivity, IInvoiceBaseService, IInvoiceCharge, IInvoiceCoreLine, IInvoiceDiscount, IInvoiceLine, IInvoiceOperationService, IInvoiceService, IItem, IItemService, IKdsConfig, IKioskSystemConfig, IKitchenConfig, ILabelConfig, ILineOperationService, ILoyaltyProgram, ILoyaltyProgramSummary, IMarketing, IMenu, IMenuService, IMerchant, IMerchantAsset, INode, INodePrinter, INonCashTillSummary, INote, INoteEntity, INoteGroup, INoteGroupEntity, INoteGroupService, INoteService, IOnlineOrderConfig, IOrderConfig, IOrderDisplay, IOrderDisplayService, IOrderDisplaySystemConfig, IOrderTypeSummary, IPaxConfig, IPayment, IPaymentConfig, IPaymentMethod, IPaymentMethodHistory, IPaymentMethodService, IPaymentService, IPaymentSummary, IPoint, IPrice, IPrintBarcode, IPrintCommand, IPrintCommandLine, IPrintImage, IPrintJob, IPrintJobService, IPrintQrcode, IPrintTable, IPrintTableRowItem, IPrintTemplate, IPrintTemplateCore, IPrintTemplateService, IPrintText, IPrinter, IPrinterService, IProductBase, IProductConfig, IProductService, IPushData, IReceiptConfig, IRenderPrintTemplateOptions, IReport, IReportCategory, IReportConfig, IReportData, IReportRequest, IRoundingConfig, ISalesSummary, ISalesperson, ISection, ISectionItem, ISectionItemService, ISectionService, IServiceOptions, IShift, IShiftService, IStandardPaymentMethod, IStockLog, IStockLogService, IStorage, ISubcategory, ISubcategoryService, ISystemConfig, ITaxConfig, ITemplateData, ITill, ITillConfig, ITillService, IUser, IUserConfig, IVisibility, In, Include, InventoryConfig, Invoice, InvoiceAction, InvoiceActivity, InvoiceBaseService, InvoiceCharge, InvoiceCoreLine, InvoiceDiscount, InvoiceLine, InvoiceOperationService, InvoiceService, InvoiceStatus, InvoiceType, Item, ItemSalesSummary, ItemService, KdsConfig, KioskSystemConfig, KitchenConfig, LabelConfig, LineOperationService, LineOptions, LoyaltyProgram, LoyaltyProgramSummary, MarketingConfig, Menu, MenuService, Merchant, MessageType, ModelPrefix, ModelType, ModifierSalesSummary, Node, NodePrinter, NonCashTillSummary, Not, Note, NoteEntity, NoteGroup, NoteGroupEntity, OnlineOrderConfig, OpenHours, OrderConfig, OrderDisplay, OrderDisplayService, OrderDisplayStatus, OrderDisplaySystemConfig, OrderFlow, PaxConfig, PayInvoiceOptions, Payment, PaymentConfig, PaymentMethod, PaymentMethodHistory, PaymentMethodService, PaymentService, PaymentStatus, PaymentSummary, PaynowMethod, Price, PrintAlign, PrintBarcode, PrintCommand, PrintImage, PrintJob, PrintJobService, PrintJobStatus, PrintQrcode, PrintSize, PrintStyle, PrintTemplate, PrintTemplateCore, PrintTemplateService, PrintType, Printer, PrinterConnections, PrinterProtocols, PrinterService, PrinterStatus, PrinterType, ProductBase, ProductConfig, ProductPartialAssets, ProductPartialConfig, ProductService, ProductType, PushData, Raw, Receipt, RenderPrintTemplateOptions, Report, ReportCategory, ReportConfig, ReportData, ReportType, RoundingConfig, SalesSummary, Schedule, Section, SectionItem, SectionItemService, SectionItemStatus, SectionService, ServiceFactory, ServiceMode, ServiceOptions, Shift, ShiftService, ShiftStatus, SpecialDay, StandardPaymentMethod, StockChange, StockLog, StockLogEntityType, StockLogRefType, StockLogService, StockLogType, Storage, StorageService, Subcategory, SwitchInvoiceOptions, System, SystemConfig, SystemError, TCategorySalesSummary, TDynamicOrderQR, TItemCoreSalesSummary, TItemSalesSummary, TModifierSalesSummary, TStockChange, TStockChangeItem, TStorageService, TaxConfig, TaxMethod, TemplateData, Till, TillConfig, TillService, TillType, UomType, UpdateGeneralConfigOptions, UpdateInvoiceOptions, User, UserConfig, type ValidationError, type ValidationResult, Visibility, VoidInvoiceOptions, WechatPayMethod, WeeklyHours, createCSVExport, createCSVExportWithHash, dbSchemas, filterByParams, getCategoryButtonShape, humanizedData, importFromCSV, normalizedDate, transformer, validateSTTemplate };
6563
6594
  //# sourceMappingURL=index.d.ts.map