@posx/core 5.5.299 → 5.5.301
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 +11 -4
- package/build/index.js +1 -1
- package/package.json +1 -1
- package/package.publish.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -1452,9 +1452,10 @@ declare module '@posx/core/services/invoice.service' {
|
|
|
1452
1452
|
* @param invoice - The invoice to decrease the item quantity in.
|
|
1453
1453
|
* @param line - The invoice line to decrease the item quantity in.
|
|
1454
1454
|
* @param quantity - The quantity of the item to decrease.
|
|
1455
|
+
* @param skipDeletedLines - Whether to skip the deleted lines, default is false.
|
|
1455
1456
|
* @returns The updated invoice.
|
|
1456
1457
|
*/
|
|
1457
|
-
minusLineQuantity(invoice: IInvoice, line: IInvoiceLine, quantity: number): IInvoice;
|
|
1458
|
+
minusLineQuantity(invoice: IInvoice, line: IInvoiceLine, quantity: number, skipDeletedLines?: boolean): IInvoice;
|
|
1458
1459
|
/**
|
|
1459
1460
|
* Increases the quantity of an item in an invoice line.
|
|
1460
1461
|
* @param invoice - The invoice to increase the item quantity in.
|
|
@@ -1560,8 +1561,10 @@ declare module '@posx/core/services/invoice.service' {
|
|
|
1560
1561
|
* And use minusLineQuantity to remove main combo.
|
|
1561
1562
|
* @param invoice the invoice
|
|
1562
1563
|
* @param comboLineUid The combo's line uid
|
|
1564
|
+
* @param skipDeletedLines - Whether to skip the deleted lines, default is false.
|
|
1565
|
+
* @returns The deleted lines.
|
|
1563
1566
|
*/
|
|
1564
|
-
removeAllComboItems(Invoice: IInvoice, comboLineUid: string): IInvoiceLine[];
|
|
1567
|
+
removeAllComboItems(Invoice: IInvoice, comboLineUid: string, skipDeletedLines?: boolean): IInvoiceLine[];
|
|
1565
1568
|
/**
|
|
1566
1569
|
* Duplicates a combo line and all its associated combo items from an invoice
|
|
1567
1570
|
* @param invoice - The invoice containing the combo to duplicate
|
|
@@ -1578,7 +1581,7 @@ declare module '@posx/core/services/invoice.service' {
|
|
|
1578
1581
|
addModifier(modifiers: IInvoiceCoreLine[], modifier: IInvoiceCoreLine): IInvoiceCoreLine[];
|
|
1579
1582
|
changeLinePrice(line: IInvoiceLine, price: number): IInvoiceLine;
|
|
1580
1583
|
changeLineDiscount(line: IInvoiceLine, discountType: CalcType, amountOrPercent: number): IInvoiceLine;
|
|
1581
|
-
minusLineQuantity(invoice: IInvoice, line: IInvoiceLine, quantity: number): IInvoice;
|
|
1584
|
+
minusLineQuantity(invoice: IInvoice, line: IInvoiceLine, quantity: number, skipDeletedLines?: boolean): IInvoice;
|
|
1582
1585
|
addLineQuantity(invoice: IInvoice, line: IInvoiceLine, quantity: number): IInvoice;
|
|
1583
1586
|
minusModifierQuantity(modifiers: IInvoiceCoreLine[], modifier: IInvoiceCoreLine, quantity?: number): IInvoiceCoreLine[];
|
|
1584
1587
|
changeModifierQuantity(modifiers: IInvoiceCoreLine[], modifier: IInvoiceCoreLine, quantity?: number): IInvoiceCoreLine[];
|
|
@@ -1596,7 +1599,7 @@ declare module '@posx/core/services/invoice.service' {
|
|
|
1596
1599
|
*/
|
|
1597
1600
|
compareLines(target: IInvoiceLine, source: IInvoiceLine): boolean;
|
|
1598
1601
|
addComboItemToLine(invoice: IInvoice, customer: ICustomer, appConfig: IAppConfig, item: IItem, comboLineUid: string, comboGroupUid: string, modifiers?: IInvoiceCoreLine[], options?: LineOptions): IInvoiceLine;
|
|
1599
|
-
removeAllComboItems(invoice: IInvoice, comboLineUid: string): IInvoiceLine[];
|
|
1602
|
+
removeAllComboItems(invoice: IInvoice, comboLineUid: string, skipDeletedLines?: boolean): IInvoiceLine[];
|
|
1600
1603
|
duplicateComboLines(invoice: IInvoice, comboLine: IInvoiceLine): IInvoice;
|
|
1601
1604
|
}
|
|
1602
1605
|
/**
|
|
@@ -2573,20 +2576,24 @@ declare module '@posx/core/types/config.type' {
|
|
|
2573
2576
|
login_call_to_action_text: string;
|
|
2574
2577
|
menu_banner_image_url: string;
|
|
2575
2578
|
paynow_method: PaynowMethod;
|
|
2579
|
+
disable_pay_at_counter: boolean;
|
|
2576
2580
|
dynamic_order_qr: TDynamicOrderQR;
|
|
2577
2581
|
default_language: string;
|
|
2578
2582
|
category_selector_mode: 'photo_mode' | 'dropdown_mode';
|
|
2579
2583
|
max_dining_time: number;
|
|
2584
|
+
disable_logo_for_item_photo_fallback: boolean;
|
|
2580
2585
|
}
|
|
2581
2586
|
export class OnlineOrderConfig implements IOnlineOrderConfig {
|
|
2582
2587
|
enable_membership: boolean;
|
|
2583
2588
|
login_call_to_action_text: string;
|
|
2584
2589
|
menu_banner_image_url: string;
|
|
2585
2590
|
paynow_method: PaynowMethod.WyoPaynow;
|
|
2591
|
+
disable_pay_at_counter: boolean;
|
|
2586
2592
|
default_language: string;
|
|
2587
2593
|
category_selector_mode: 'photo_mode' | 'dropdown_mode';
|
|
2588
2594
|
dynamic_order_qr: TDynamicOrderQR;
|
|
2589
2595
|
max_dining_time: number;
|
|
2596
|
+
disable_logo_for_item_photo_fallback: boolean;
|
|
2590
2597
|
constructor();
|
|
2591
2598
|
}
|
|
2592
2599
|
export interface IGeneralConfig {
|