@posx/core 5.5.169 → 5.5.171

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 CHANGED
@@ -1184,7 +1184,7 @@ declare module '@posx/core/services/invoice.service' {
1184
1184
  * @param options - Additional options for the line.
1185
1185
  * @returns The updated invoice.
1186
1186
  */
1187
- addItemToLine(invoice: IInvoice, customer: ICustomer, appConfig: IAppConfig, item: IItem, modifiers?: IInvoiceCoreLine[], options?: LineOptions, createNewLine?: boolean): IInvoiceLine;
1187
+ addItemToLine(invoice: IInvoice, customer: ICustomer, appConfig: IAppConfig, item: IItem, modifiers?: IInvoiceCoreLine[], options?: LineOptions, createNewLine?: boolean, comboLineUid?: string): IInvoiceLine;
1188
1188
  /**
1189
1189
  * Duplicates an invoice line
1190
1190
  * @param invoice - The invoice to duplicate the line in.
@@ -1315,7 +1315,7 @@ declare module '@posx/core/services/invoice.service' {
1315
1315
  removeAllComboItems(Invoice: IInvoice, comboLineUid: string): IInvoiceLine[];
1316
1316
  }
1317
1317
  export class LineOperationService extends InvoiceBaseService implements ILineOperationService {
1318
- addItemToLine(invoice: IInvoice, customer: ICustomer, appConfig: IAppConfig, item: IItem, modifiers?: IInvoiceCoreLine[], lineOptions?: LineOptions, createNewLine?: boolean): IInvoiceLine;
1318
+ addItemToLine(invoice: IInvoice, customer: ICustomer, appConfig: IAppConfig, item: IItem, modifiers?: IInvoiceCoreLine[], lineOptions?: LineOptions, createNewLine?: boolean, comboLineUid?: string): IInvoiceLine;
1319
1319
  duplicateLine(invoice: IInvoice, line: IInvoiceLine): IInvoice;
1320
1320
  calibrateDuplicates(invoice: IInvoice): IInvoice;
1321
1321
  toInvoiceCoreLine(modifier: ICoreItem, quantity?: number): IInvoiceCoreLine;
@@ -1329,7 +1329,7 @@ declare module '@posx/core/services/invoice.service' {
1329
1329
  addModifierQuantity(modifiers: IInvoiceCoreLine[], modifier: IInvoiceCoreLine, quantity?: number): IInvoiceCoreLine[];
1330
1330
  changeModifierPrice(modifier: IInvoiceCoreLine, price: number): IInvoiceCoreLine;
1331
1331
  overwriteNoteToLine(line: IInvoiceLine, note: string): IInvoiceLine;
1332
- findOrCreateLine(invoice: IInvoice, item: IItem, quantity: number, price?: number, modifiers?: IInvoiceCoreLine[], remark?: string, createNewLine?: boolean): IInvoiceLine;
1332
+ findOrCreateLine(invoice: IInvoice, item: IItem, quantity: number, price?: number, modifiers?: IInvoiceCoreLine[], remark?: string, createNewLine?: boolean, comboLineUid?: string): IInvoiceLine;
1333
1333
  private createInvoiceLine;
1334
1334
  protected compareModifiers(target: IInvoiceCoreLine[], source: IInvoiceCoreLine[]): boolean;
1335
1335
  /**
@@ -4260,6 +4260,8 @@ declare module '@posx/core/types/product.type' {
4260
4260
  combo_item: ICoreItem;
4261
4261
  /** Price of the item in combo */
4262
4262
  price: number;
4263
+ /** Meta data */
4264
+ meta: Record<string, unknown>;
4263
4265
  }
4264
4266
  /**
4265
4267
  * Interface for combo component groups (e.g., "Main Course", "Side", "Drink")
@@ -4277,12 +4279,15 @@ declare module '@posx/core/types/product.type' {
4277
4279
  max_order: number;
4278
4280
  /** Available items in this group */
4279
4281
  combo_items: IComboGroupItem[];
4282
+ /** Meta data */
4283
+ meta: Record<string, unknown>;
4280
4284
  }
4281
4285
  export class ComboGroupItem implements IComboGroupItem {
4282
4286
  item_uid: string;
4283
4287
  combo_item: CoreItem;
4284
4288
  price: number;
4285
4289
  sequence: number;
4290
+ meta: Record<string, unknown>;
4286
4291
  constructor();
4287
4292
  }
4288
4293
  export class ComboGroup implements IComboGroup {
@@ -4293,6 +4298,7 @@ declare module '@posx/core/types/product.type' {
4293
4298
  max_order: number;
4294
4299
  combo_items: IComboGroupItem[];
4295
4300
  sequence: number;
4301
+ meta: Record<string, unknown>;
4296
4302
  constructor();
4297
4303
  }
4298
4304