@posx/core 5.5.187 → 5.5.191

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
@@ -1322,6 +1322,13 @@ declare module '@posx/core/services/invoice.service' {
1322
1322
  * @param comboLineUid The combo's line uid
1323
1323
  */
1324
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;
1325
1332
  }
1326
1333
  export class LineOperationService extends InvoiceBaseService implements ILineOperationService {
1327
1334
  addItemToLine(invoice: IInvoice, customer: ICustomer, appConfig: IAppConfig, item: IItem, modifiers?: IInvoiceCoreLine[], lineOptions?: LineOptions, createNewLine?: boolean, comboLineUid?: string): IInvoiceLine;
@@ -1350,6 +1357,7 @@ declare module '@posx/core/services/invoice.service' {
1350
1357
  compareLines(target: IInvoiceLine, source: IInvoiceLine): boolean;
1351
1358
  addComboItemToLine(invoice: IInvoice, customer: ICustomer, appConfig: IAppConfig, item: IItem, comboLineUid: string, comboGroupUid: string, modifiers?: IInvoiceCoreLine[], options?: LineOptions): IInvoiceLine;
1352
1359
  removeAllComboItems(invoice: IInvoice, comboLineUid: string): IInvoiceLine[];
1360
+ duplicateComboLines(invoice: IInvoice, comboLine: IInvoiceLine): IInvoice;
1353
1361
  }
1354
1362
  /**
1355
1363
  * Interface for invoice operation service that extends line operation service
@@ -2672,7 +2680,8 @@ declare module '@posx/core/types/invoice.type' {
2672
2680
  }
2673
2681
  export enum OrderFlow {
2674
2682
  PayToOrder = "pay_to_order",
2675
- OrderFirstAndPayLater = "order_first_and_pay_later"
2683
+ OrderFirstAndPayLater = "order_first_and_pay_later",
2684
+ OnSelection = "on_selection"
2676
2685
  }
2677
2686
  export enum TaxMethod {
2678
2687
  Inclusive = "inclusive",