@posx/core 5.5.59 → 5.5.61
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 +6 -6
- package/build/index.js +1 -1
- package/package.json +1 -1
- package/package.publish.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -1287,7 +1287,7 @@ declare module '@posx/core/services/invoice.service' {
|
|
|
1287
1287
|
addModifierQuantity(modifiers: IInvoiceCoreLine[], modifier: IInvoiceCoreLine, quantity?: number): IInvoiceCoreLine[];
|
|
1288
1288
|
changeModifierPrice(modifier: IInvoiceCoreLine, price: number): IInvoiceCoreLine;
|
|
1289
1289
|
overwriteNoteToLine(line: IInvoiceLine, note: string): IInvoiceLine;
|
|
1290
|
-
|
|
1290
|
+
findOrCreateLine(invoice: IInvoice, item: IItem, quantity: number, price?: number, modifiers?: IInvoiceCoreLine[], remark?: string): IInvoiceLine;
|
|
1291
1291
|
private createInvoiceLine;
|
|
1292
1292
|
protected compareModifiers(target: IInvoiceCoreLine[], source: IInvoiceCoreLine[]): boolean;
|
|
1293
1293
|
/**
|
|
@@ -1421,11 +1421,11 @@ declare module '@posx/core/services/invoice.service' {
|
|
|
1421
1421
|
*/
|
|
1422
1422
|
addSalesPersonToInvoice(invoice: IInvoice, salesUserUid: string): IInvoice;
|
|
1423
1423
|
/**
|
|
1424
|
-
* merge invoice from local db and invoice sent from signalr
|
|
1425
|
-
* @param
|
|
1426
|
-
* @param
|
|
1424
|
+
* merge invoice from local db and invoice sent from signalr or online order
|
|
1425
|
+
* @param mainInvoice main invoice from local db
|
|
1426
|
+
* @param addOnInvoice incremental invoice from signalr or online order
|
|
1427
1427
|
*/
|
|
1428
|
-
|
|
1428
|
+
appendInvoice(mainInvoice: IInvoice, addOnInvoice: IInvoice): IInvoice;
|
|
1429
1429
|
/**
|
|
1430
1430
|
* Queries invoices using the QueryBuilder to construct filter parameters
|
|
1431
1431
|
* @param query QueryBuilder instance to build the query
|
|
@@ -1511,7 +1511,7 @@ declare module '@posx/core/services/invoice.service' {
|
|
|
1511
1511
|
addPaxToInvoice(invoice: IInvoice, pax: number): IInvoice;
|
|
1512
1512
|
addCustomerToInvoice(invoice: IInvoice, customer: ICustomer): IInvoice;
|
|
1513
1513
|
autoQuery(query: QueryBuilder<IInvoice & QueryEtcParams>): Promise<QueryResponse<IInvoice>>;
|
|
1514
|
-
|
|
1514
|
+
appendInvoice(mainInvoice: IInvoice, addOnInvoice: IInvoice): IInvoice;
|
|
1515
1515
|
getRefId(): Promise<string>;
|
|
1516
1516
|
changePayments(invoice: IInvoice, options: IChangePaymentMethodOption[]): Promise<IInvoice>;
|
|
1517
1517
|
private formatDate;
|