@posx/core 5.5.186 → 5.5.190

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
@@ -621,6 +621,14 @@ declare module '@posx/core/services/app.service' {
621
621
  modifierCategory: ICoreCategory;
622
622
  modifiers: ICoreItem[];
623
623
  }>;
624
+ /**
625
+ * Copy a modifier group (category) and its modifiers to multiple items
626
+ * @param sourceModifierCategory - The modifier category to copy
627
+ * @param sourceModifiers - Array of modifiers belonging to the category
628
+ * @param targetItems - Array of items to copy the modifier group to
629
+ * @returns Promise resolving to array of updated items
630
+ */
631
+ copyModifierGroupToItems(sourceModifierCategory: ICoreCategory, sourceModifiers: ICoreItem[], targetItems: IItem[]): Promise<IItem[]>;
624
632
  }
625
633
  export class ItemService extends AppRemoteService<IItem> implements IItemService {
626
634
  readonly http: AxiosInstance;
@@ -649,6 +657,7 @@ declare module '@posx/core/services/app.service' {
649
657
  modifierCategory: ICoreCategory;
650
658
  modifiers: ICoreItem[];
651
659
  }>;
660
+ copyModifierGroupToItems(sourceModifierCategory: ICoreCategory, sourceModifiers: ICoreItem[], targetItems: IItem[]): Promise<IItem[]>;
652
661
  }
653
662
  /**
654
663
  * Represents a service for managing categories.
@@ -1313,6 +1322,13 @@ declare module '@posx/core/services/invoice.service' {
1313
1322
  * @param comboLineUid The combo's line uid
1314
1323
  */
1315
1324
  removeAllComboItems(Invoice: IInvoice, comboLineUid: string): IInvoiceLine[];
1325
+ /**
1326
+ * Duplicates a combo line and all its associated combo items from an invoice
1327
+ * @param invoice - The invoice containing the combo to duplicate
1328
+ * @param comboLine - The main combo line to duplicate
1329
+ * @returns The updated invoice with duplicated combo and its items
1330
+ */
1331
+ duplicateComboLines(invoice: IInvoice, comboLine: IInvoiceLine): IInvoice;
1316
1332
  }
1317
1333
  export class LineOperationService extends InvoiceBaseService implements ILineOperationService {
1318
1334
  addItemToLine(invoice: IInvoice, customer: ICustomer, appConfig: IAppConfig, item: IItem, modifiers?: IInvoiceCoreLine[], lineOptions?: LineOptions, createNewLine?: boolean, comboLineUid?: string): IInvoiceLine;
@@ -1341,6 +1357,7 @@ declare module '@posx/core/services/invoice.service' {
1341
1357
  compareLines(target: IInvoiceLine, source: IInvoiceLine): boolean;
1342
1358
  addComboItemToLine(invoice: IInvoice, customer: ICustomer, appConfig: IAppConfig, item: IItem, comboLineUid: string, comboGroupUid: string, modifiers?: IInvoiceCoreLine[], options?: LineOptions): IInvoiceLine;
1343
1359
  removeAllComboItems(invoice: IInvoice, comboLineUid: string): IInvoiceLine[];
1360
+ duplicateComboLines(invoice: IInvoice, comboLine: IInvoiceLine): IInvoice;
1344
1361
  }
1345
1362
  /**
1346
1363
  * Interface for invoice operation service that extends line operation service
@@ -2663,7 +2680,8 @@ declare module '@posx/core/types/invoice.type' {
2663
2680
  }
2664
2681
  export enum OrderFlow {
2665
2682
  PayToOrder = "pay_to_order",
2666
- OrderFirstAndPayLater = "order_first_and_pay_later"
2683
+ OrderFirstAndPayLater = "order_first_and_pay_later",
2684
+ OnSelection = "on_selection"
2667
2685
  }
2668
2686
  export enum TaxMethod {
2669
2687
  Inclusive = "inclusive",