@posx/core 5.3.71 → 5.3.73
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 +17 -0
- package/build/index.js +1 -1
- package/package.json +1 -1
- package/package.publish.json +1 -1
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 {
|
|
@@ -3249,6 +3264,7 @@ declare module '@posx/core/types/printer.type' {
|
|
|
3249
3264
|
protocol: PrinterProtocols;
|
|
3250
3265
|
connection_type: PrinterConnections;
|
|
3251
3266
|
data: IPrintCommand;
|
|
3267
|
+
commands: string;
|
|
3252
3268
|
status: PrintJobStatus;
|
|
3253
3269
|
retries: number;
|
|
3254
3270
|
save_only: boolean;
|
|
@@ -3272,6 +3288,7 @@ declare module '@posx/core/types/printer.type' {
|
|
|
3272
3288
|
data: PrintCommand;
|
|
3273
3289
|
status: PrintJobStatus;
|
|
3274
3290
|
retries: number;
|
|
3291
|
+
commands: string;
|
|
3275
3292
|
uid: string;
|
|
3276
3293
|
save_only: boolean;
|
|
3277
3294
|
print_times: number;
|