@posx/core 5.3.70 → 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 {
@@ -1918,6 +1930,10 @@ declare module '@posx/core/types/config.type' {
1918
1930
  * An alternative name or shorthand for the company used for convenience.
1919
1931
  */
1920
1932
  company_name_alias: string;
1933
+ /**
1934
+ * The logo of the company
1935
+ */
1936
+ company_logo: string;
1921
1937
  /**
1922
1938
  * The official tax identification number for the company, used for legal and financial documentation.
1923
1939
  */
@@ -1976,6 +1992,8 @@ declare module '@posx/core/types/config.type' {
1976
1992
  company_name: string;
1977
1993
  /** Alias for the company name */
1978
1994
  company_name_alias: string;
1995
+ /** Logo of the company */
1996
+ company_logo: string;
1979
1997
  /** Tax registration number of the company */
1980
1998
  company_tax_reg_no: string;
1981
1999
  /** Postcode of the company */
@@ -2490,6 +2508,8 @@ declare module '@posx/core/types/invoice.type' {
2490
2508
  duplicated_from_uid: string;
2491
2509
  /** Any modifiers applied to the line item. */
2492
2510
  modifiers: IInvoiceCoreLine[];
2511
+ /** Meta data for the line item */
2512
+ meta: Record<string, any>;
2493
2513
  }
2494
2514
  export interface IInvoice extends IAppCoreModel {
2495
2515
  /** Invoice reference number which is used for look-up */
@@ -2665,6 +2685,7 @@ declare module '@posx/core/types/invoice.type' {
2665
2685
  modifiers: any[];
2666
2686
  duplicated_from_uid: string;
2667
2687
  sent: number;
2688
+ meta: {};
2668
2689
  constructor();
2669
2690
  }
2670
2691
  export class Invoice extends AppCoreModel implements IInvoice {