@posx/core 5.5.170 → 5.5.172
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 +12 -5
- package/build/index.js +1 -1
- package/package.json +1 -1
- package/package.publish.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -1027,7 +1027,7 @@ declare module '@posx/core/services/invoice.service' {
|
|
|
1027
1027
|
import { IPrinter, PrinterType } from '@posx/core/types/printer.type';
|
|
1028
1028
|
import { IEmployee } from '@posx/core/types/employee.type';
|
|
1029
1029
|
import { QueryBuilder, QueryEtcParams } from '@posx/core/utils/autoquery.utils';
|
|
1030
|
-
import {
|
|
1030
|
+
import { ICouponItemized } from '@posx/core/types/wyo.coupon.type';
|
|
1031
1031
|
export interface IInvoiceBaseService extends IAppRemoteService<IInvoice> {
|
|
1032
1032
|
calculate(invoice: IInvoice, appConfig: IAppConfig, disableRounding?: boolean): IInvoice;
|
|
1033
1033
|
calculateLines(invoice: IInvoice): void;
|
|
@@ -1437,11 +1437,11 @@ declare module '@posx/core/services/invoice.service' {
|
|
|
1437
1437
|
/**
|
|
1438
1438
|
* Adds a coupon to an invoice
|
|
1439
1439
|
* @param invoice - The invoice to add the coupon to
|
|
1440
|
-
* @param
|
|
1440
|
+
* @param itemized - The coupon to add to the invoice
|
|
1441
1441
|
* @param calcFlow - The calculation flow to use for the coupon
|
|
1442
1442
|
* @returns The updated invoice with the added coupon
|
|
1443
1443
|
*/
|
|
1444
|
-
addCouponToInvoice(invoice: IInvoice,
|
|
1444
|
+
addCouponToInvoice(invoice: IInvoice, itemized: ICouponItemized, calcFlow?: CalcFlow): IInvoice;
|
|
1445
1445
|
/**
|
|
1446
1446
|
* Removes a discount from an invoice
|
|
1447
1447
|
* @param invoice - The invoice to remove the discount from
|
|
@@ -1565,7 +1565,7 @@ declare module '@posx/core/services/invoice.service' {
|
|
|
1565
1565
|
duplicateInvoice(invoice: IInvoice, employee?: IEmployee): Promise<IInvoice>;
|
|
1566
1566
|
reprintReceipt(invoice: IInvoice): Promise<boolean>;
|
|
1567
1567
|
addInvoiceDiscount(invoice: IInvoice, discountType: CalcType, amountOrPercent: number, calcFlow?: CalcFlow, name?: string, nameTranslations?: Record<string, string>): IInvoice;
|
|
1568
|
-
addCouponToInvoice(invoice: IInvoice,
|
|
1568
|
+
addCouponToInvoice(invoice: IInvoice, itemized: ICouponItemized, calcFlow?: CalcFlow): IInvoice;
|
|
1569
1569
|
removeInvoiceDiscount(invoice: IInvoice, discountUid: string): IInvoice;
|
|
1570
1570
|
overwriteNoteToInvoice(invoice: IInvoice, note: string): IInvoice;
|
|
1571
1571
|
addSalesPersonToInvoice(invoice: IInvoice, salesUserUid: string): IInvoice;
|
|
@@ -2649,7 +2649,8 @@ declare module '@posx/core/types/invoice.type' {
|
|
|
2649
2649
|
OnHold = "on_hold",
|
|
2650
2650
|
Paying = "paying",
|
|
2651
2651
|
Paid = "paid",
|
|
2652
|
-
Void = "void"
|
|
2652
|
+
Void = "void",
|
|
2653
|
+
PayAtCounter = "pay_at_counter"
|
|
2653
2654
|
}
|
|
2654
2655
|
export enum InvoiceAction {
|
|
2655
2656
|
Calibration = "calibration",
|
|
@@ -4260,6 +4261,8 @@ declare module '@posx/core/types/product.type' {
|
|
|
4260
4261
|
combo_item: ICoreItem;
|
|
4261
4262
|
/** Price of the item in combo */
|
|
4262
4263
|
price: number;
|
|
4264
|
+
/** Meta data */
|
|
4265
|
+
meta: Record<string, unknown>;
|
|
4263
4266
|
}
|
|
4264
4267
|
/**
|
|
4265
4268
|
* Interface for combo component groups (e.g., "Main Course", "Side", "Drink")
|
|
@@ -4277,12 +4280,15 @@ declare module '@posx/core/types/product.type' {
|
|
|
4277
4280
|
max_order: number;
|
|
4278
4281
|
/** Available items in this group */
|
|
4279
4282
|
combo_items: IComboGroupItem[];
|
|
4283
|
+
/** Meta data */
|
|
4284
|
+
meta: Record<string, unknown>;
|
|
4280
4285
|
}
|
|
4281
4286
|
export class ComboGroupItem implements IComboGroupItem {
|
|
4282
4287
|
item_uid: string;
|
|
4283
4288
|
combo_item: CoreItem;
|
|
4284
4289
|
price: number;
|
|
4285
4290
|
sequence: number;
|
|
4291
|
+
meta: Record<string, unknown>;
|
|
4286
4292
|
constructor();
|
|
4287
4293
|
}
|
|
4288
4294
|
export class ComboGroup implements IComboGroup {
|
|
@@ -4293,6 +4299,7 @@ declare module '@posx/core/types/product.type' {
|
|
|
4293
4299
|
max_order: number;
|
|
4294
4300
|
combo_items: IComboGroupItem[];
|
|
4295
4301
|
sequence: number;
|
|
4302
|
+
meta: Record<string, unknown>;
|
|
4296
4303
|
constructor();
|
|
4297
4304
|
}
|
|
4298
4305
|
|