@posx/core 5.5.156 → 5.5.158
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 +10 -2
- package/build/index.js +1 -1
- package/package.json +1 -1
- package/package.publish.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -781,9 +781,10 @@ declare module '@posx/core/services/app.service' {
|
|
|
781
781
|
* @param {string} shift_uid - The shift UID.
|
|
782
782
|
* @param {string} user_uid - The user UID.
|
|
783
783
|
* @param {string} [note] - The note for the till.
|
|
784
|
+
* @param {string} [invoice_uid] - The invoice UID.
|
|
784
785
|
* @returns {Promise<ITill>} - A promise that resolves with the created till.
|
|
785
786
|
*/
|
|
786
|
-
createCashInvoiceTill(payments: IPayment[], shift_uid: string, user_uid: string, note?: string):
|
|
787
|
+
createCashInvoiceTill(payments: IPayment[], shift_uid: string, user_uid: string, note?: string, invoice_uid?: string): ITill;
|
|
787
788
|
}
|
|
788
789
|
export class TillService extends AppRemoteService<ITill> implements ITillService {
|
|
789
790
|
readonly http: AxiosInstance;
|
|
@@ -792,7 +793,7 @@ declare module '@posx/core/services/app.service' {
|
|
|
792
793
|
readonly moduleName: string;
|
|
793
794
|
readonly methodName: string;
|
|
794
795
|
constructor(http: AxiosInstance, db: Dexie, options: IServiceOptions, moduleName?: string, methodName?: string);
|
|
795
|
-
createCashInvoiceTill(payments: IPayment[], shift_uid: string, user_uid: string, note?: string):
|
|
796
|
+
createCashInvoiceTill(payments: IPayment[], shift_uid: string, user_uid: string, note?: string, invoice_uid?: string): ITill;
|
|
796
797
|
}
|
|
797
798
|
/**
|
|
798
799
|
* Represents a service for managing payment methods.
|
|
@@ -1479,6 +1480,12 @@ declare module '@posx/core/services/invoice.service' {
|
|
|
1479
1480
|
* @param addOnInvoice incremental invoice from signalr or online order
|
|
1480
1481
|
*/
|
|
1481
1482
|
appendInvoice(mainInvoice: IInvoice, addOnInvoice: IInvoice): IInvoice;
|
|
1483
|
+
/**
|
|
1484
|
+
* Merge sourceInvoice into targetInvoice
|
|
1485
|
+
* @param targetInvoice target invoice
|
|
1486
|
+
* @param sourceInvoice source invoice
|
|
1487
|
+
*/
|
|
1488
|
+
mergeInvoice(targetInvoice: IInvoice, sourceInvoice: IInvoice): Promise<IInvoice>;
|
|
1482
1489
|
/**
|
|
1483
1490
|
* Queries invoices using the QueryBuilder to construct filter parameters
|
|
1484
1491
|
* @param query QueryBuilder instance to build the query
|
|
@@ -1566,6 +1573,7 @@ declare module '@posx/core/services/invoice.service' {
|
|
|
1566
1573
|
addCustomerToInvoice(invoice: IInvoice, customer: ICustomer): IInvoice;
|
|
1567
1574
|
autoQuery(query: QueryBuilder<IInvoice & QueryEtcParams>): Promise<QueryResponse<IInvoice>>;
|
|
1568
1575
|
appendInvoice(mainInvoice: IInvoice, addOnInvoice: IInvoice): IInvoice;
|
|
1576
|
+
mergeInvoice(targetInvoice: IInvoice, sourceInvoice: IInvoice): Promise<IInvoice>;
|
|
1569
1577
|
getRefId(): Promise<string>;
|
|
1570
1578
|
changePayments(invoice: IInvoice, options: IChangePaymentMethodOption[]): Promise<IInvoice>;
|
|
1571
1579
|
private formatDate;
|