@posx/core 5.3.71 → 5.3.72

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
@@ -1406,6 +1406,12 @@ declare module '@posx/core/services/invoice.service' {
1406
1406
  * @returns The updated invoice with the removed charge
1407
1407
  */
1408
1408
  removeInvoiceCharge(invoice: IInvoice, chargeUid: string): IInvoice;
1409
+ /**
1410
+ * Slices an invoice into multiple invoices where each invoice has a single line with quantity of 1
1411
+ * @param invoice - The invoice to slice
1412
+ * @returns An array of sliced invoices, one for each item quantity
1413
+ */
1414
+ sliceInvoice(invoice: IInvoice): IInvoice[];
1409
1415
  }
1410
1416
  export class InvoiceOperationService extends LineOperationService implements IInvoiceOperationService {
1411
1417
  createInvoice(invoice: IInvoice, sectionItem: ISectionItem, employee?: IEmployee): Promise<CreateInvoiceOptions>;
@@ -1452,6 +1458,12 @@ declare module '@posx/core/services/invoice.service' {
1452
1458
  * @returns The updated invoice with the removed charge
1453
1459
  */
1454
1460
  removeInvoiceCharge(invoice: IInvoice, chargeUid: string): IInvoice;
1461
+ /**
1462
+ * Slices an invoice into multiple invoices where each invoice has a single line with quantity of 1
1463
+ * @param invoice - The invoice to slice
1464
+ * @returns An array of sliced invoices, one for each item quantity
1465
+ */
1466
+ sliceInvoice(invoice: IInvoice): IInvoice[];
1455
1467
  }
1456
1468
  export type IInvoiceService = IInvoiceOperationService;
1457
1469
  export class InvoiceService extends InvoiceOperationService implements IInvoiceService {
@@ -2496,6 +2508,8 @@ declare module '@posx/core/types/invoice.type' {
2496
2508
  duplicated_from_uid: string;
2497
2509
  /** Any modifiers applied to the line item. */
2498
2510
  modifiers: IInvoiceCoreLine[];
2511
+ /** Meta data for the line item */
2512
+ meta: Record<string, any>;
2499
2513
  }
2500
2514
  export interface IInvoice extends IAppCoreModel {
2501
2515
  /** Invoice reference number which is used for look-up */
@@ -2671,6 +2685,7 @@ declare module '@posx/core/types/invoice.type' {
2671
2685
  modifiers: any[];
2672
2686
  duplicated_from_uid: string;
2673
2687
  sent: number;
2688
+ meta: {};
2674
2689
  constructor();
2675
2690
  }
2676
2691
  export class Invoice extends AppCoreModel implements IInvoice {