@posx/core 5.5.192 → 5.5.193
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 +16 -5
- package/build/index.js +1 -1
- package/package.json +1 -1
- package/package.publish.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -1193,7 +1193,7 @@ declare module '@posx/core/services/invoice.service' {
|
|
|
1193
1193
|
* @param options - Additional options for the line.
|
|
1194
1194
|
* @returns The updated invoice.
|
|
1195
1195
|
*/
|
|
1196
|
-
addItemToLine(invoice: IInvoice, customer: ICustomer, appConfig: IAppConfig, item: IItem, modifiers?: IInvoiceCoreLine[],
|
|
1196
|
+
addItemToLine(invoice: IInvoice, customer: ICustomer, appConfig: IAppConfig, item: IItem, modifiers?: IInvoiceCoreLine[], lineOptions?: LineOptions, createNewLine?: boolean, comboLineUid?: string, comboGroupUid?: string): IInvoiceLine;
|
|
1197
1197
|
/**
|
|
1198
1198
|
* Duplicates an invoice line
|
|
1199
1199
|
* @param invoice - The invoice to duplicate the line in.
|
|
@@ -1331,7 +1331,7 @@ declare module '@posx/core/services/invoice.service' {
|
|
|
1331
1331
|
duplicateComboLines(invoice: IInvoice, comboLine: IInvoiceLine): IInvoice;
|
|
1332
1332
|
}
|
|
1333
1333
|
export class LineOperationService extends InvoiceBaseService implements ILineOperationService {
|
|
1334
|
-
addItemToLine(invoice: IInvoice, customer: ICustomer, appConfig: IAppConfig, item: IItem, modifiers?: IInvoiceCoreLine[], lineOptions?: LineOptions, createNewLine?: boolean, comboLineUid?: string): IInvoiceLine;
|
|
1334
|
+
addItemToLine(invoice: IInvoice, customer: ICustomer, appConfig: IAppConfig, item: IItem, modifiers?: IInvoiceCoreLine[], lineOptions?: LineOptions, createNewLine?: boolean, comboLineUid?: string, comboGroupUid?: string): IInvoiceLine;
|
|
1335
1335
|
duplicateLine(invoice: IInvoice, line: IInvoiceLine): IInvoice;
|
|
1336
1336
|
calibrateDuplicates(invoice: IInvoice): IInvoice;
|
|
1337
1337
|
toInvoiceCoreLine(modifier: ICoreItem, quantity?: number): IInvoiceCoreLine;
|
|
@@ -1345,7 +1345,7 @@ declare module '@posx/core/services/invoice.service' {
|
|
|
1345
1345
|
addModifierQuantity(modifiers: IInvoiceCoreLine[], modifier: IInvoiceCoreLine, quantity?: number): IInvoiceCoreLine[];
|
|
1346
1346
|
changeModifierPrice(modifier: IInvoiceCoreLine, price: number): IInvoiceCoreLine;
|
|
1347
1347
|
overwriteNoteToLine(line: IInvoiceLine, note: string): IInvoiceLine;
|
|
1348
|
-
findOrCreateLine(invoice: IInvoice, item: IItem, quantity: number, price?: number, modifiers?: IInvoiceCoreLine[], remark?: string, createNewLine?: boolean, comboLineUid?: string): IInvoiceLine;
|
|
1348
|
+
findOrCreateLine(invoice: IInvoice, item: IItem, quantity: number, price?: number, modifiers?: IInvoiceCoreLine[], remark?: string, createNewLine?: boolean, comboLineUid?: string, comboGroupUid?: string): IInvoiceLine;
|
|
1349
1349
|
private createInvoiceLine;
|
|
1350
1350
|
protected compareModifiers(target: IInvoiceCoreLine[], source: IInvoiceCoreLine[]): boolean;
|
|
1351
1351
|
/**
|
|
@@ -2204,10 +2204,15 @@ declare module '@posx/core/types/config.type' {
|
|
|
2204
2204
|
loyalty_program: LoyaltyProgram;
|
|
2205
2205
|
constructor();
|
|
2206
2206
|
}
|
|
2207
|
+
export enum PaynowMethod {
|
|
2208
|
+
FomoOnlinePaynow = "PNWO",
|
|
2209
|
+
WyoPaynow = "WPPN"
|
|
2210
|
+
}
|
|
2207
2211
|
export type TDynamicOrderQR = {
|
|
2208
2212
|
default_order_flow: OrderFlow;
|
|
2209
2213
|
select_order_flow: boolean;
|
|
2210
2214
|
select_menus: boolean;
|
|
2215
|
+
paynow_method: PaynowMethod;
|
|
2211
2216
|
};
|
|
2212
2217
|
export interface IOnlineOrderConfig {
|
|
2213
2218
|
enable_membership: boolean;
|
|
@@ -4249,12 +4254,18 @@ declare module '@posx/core/types/product.type' {
|
|
|
4249
4254
|
product_uid: string;
|
|
4250
4255
|
/** price of the item */
|
|
4251
4256
|
amount: number;
|
|
4257
|
+
/** name of the price */
|
|
4258
|
+
name: string;
|
|
4259
|
+
/** name translations */
|
|
4260
|
+
name_translations: Record<string, string>;
|
|
4252
4261
|
}
|
|
4253
4262
|
export class Price extends AppCoreModel implements IPrice {
|
|
4254
4263
|
lookup_keys: any[];
|
|
4255
4264
|
product_uid: string;
|
|
4256
4265
|
uid: string;
|
|
4257
4266
|
amount: number;
|
|
4267
|
+
name: string;
|
|
4268
|
+
name_translations: Record<string, string>;
|
|
4258
4269
|
constructor();
|
|
4259
4270
|
}
|
|
4260
4271
|
/**
|
|
@@ -4306,7 +4317,7 @@ declare module '@posx/core/types/product.type' {
|
|
|
4306
4317
|
/** Item unique id */
|
|
4307
4318
|
item_uid: string;
|
|
4308
4319
|
/** Combo item */
|
|
4309
|
-
combo_item:
|
|
4320
|
+
combo_item: IItem;
|
|
4310
4321
|
/** Price of the item in combo */
|
|
4311
4322
|
price: number;
|
|
4312
4323
|
/** Meta data */
|
|
@@ -4333,7 +4344,7 @@ declare module '@posx/core/types/product.type' {
|
|
|
4333
4344
|
}
|
|
4334
4345
|
export class ComboGroupItem implements IComboGroupItem {
|
|
4335
4346
|
item_uid: string;
|
|
4336
|
-
combo_item:
|
|
4347
|
+
combo_item: Item;
|
|
4337
4348
|
price: number;
|
|
4338
4349
|
sequence: number;
|
|
4339
4350
|
meta: Record<string, unknown>;
|