@posx/core 5.5.171 → 5.5.172
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 +6 -5
- package/build/index.js +1 -1
- package/package.json +1 -1
- package/package.publish.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -1027,7 +1027,7 @@ declare module '@posx/core/services/invoice.service' {
|
|
|
1027
1027
|
import { IPrinter, PrinterType } from '@posx/core/types/printer.type';
|
|
1028
1028
|
import { IEmployee } from '@posx/core/types/employee.type';
|
|
1029
1029
|
import { QueryBuilder, QueryEtcParams } from '@posx/core/utils/autoquery.utils';
|
|
1030
|
-
import {
|
|
1030
|
+
import { ICouponItemized } from '@posx/core/types/wyo.coupon.type';
|
|
1031
1031
|
export interface IInvoiceBaseService extends IAppRemoteService<IInvoice> {
|
|
1032
1032
|
calculate(invoice: IInvoice, appConfig: IAppConfig, disableRounding?: boolean): IInvoice;
|
|
1033
1033
|
calculateLines(invoice: IInvoice): void;
|
|
@@ -1437,11 +1437,11 @@ declare module '@posx/core/services/invoice.service' {
|
|
|
1437
1437
|
/**
|
|
1438
1438
|
* Adds a coupon to an invoice
|
|
1439
1439
|
* @param invoice - The invoice to add the coupon to
|
|
1440
|
-
* @param
|
|
1440
|
+
* @param itemized - The coupon to add to the invoice
|
|
1441
1441
|
* @param calcFlow - The calculation flow to use for the coupon
|
|
1442
1442
|
* @returns The updated invoice with the added coupon
|
|
1443
1443
|
*/
|
|
1444
|
-
addCouponToInvoice(invoice: IInvoice,
|
|
1444
|
+
addCouponToInvoice(invoice: IInvoice, itemized: ICouponItemized, calcFlow?: CalcFlow): IInvoice;
|
|
1445
1445
|
/**
|
|
1446
1446
|
* Removes a discount from an invoice
|
|
1447
1447
|
* @param invoice - The invoice to remove the discount from
|
|
@@ -1565,7 +1565,7 @@ declare module '@posx/core/services/invoice.service' {
|
|
|
1565
1565
|
duplicateInvoice(invoice: IInvoice, employee?: IEmployee): Promise<IInvoice>;
|
|
1566
1566
|
reprintReceipt(invoice: IInvoice): Promise<boolean>;
|
|
1567
1567
|
addInvoiceDiscount(invoice: IInvoice, discountType: CalcType, amountOrPercent: number, calcFlow?: CalcFlow, name?: string, nameTranslations?: Record<string, string>): IInvoice;
|
|
1568
|
-
addCouponToInvoice(invoice: IInvoice,
|
|
1568
|
+
addCouponToInvoice(invoice: IInvoice, itemized: ICouponItemized, calcFlow?: CalcFlow): IInvoice;
|
|
1569
1569
|
removeInvoiceDiscount(invoice: IInvoice, discountUid: string): IInvoice;
|
|
1570
1570
|
overwriteNoteToInvoice(invoice: IInvoice, note: string): IInvoice;
|
|
1571
1571
|
addSalesPersonToInvoice(invoice: IInvoice, salesUserUid: string): IInvoice;
|
|
@@ -2649,7 +2649,8 @@ declare module '@posx/core/types/invoice.type' {
|
|
|
2649
2649
|
OnHold = "on_hold",
|
|
2650
2650
|
Paying = "paying",
|
|
2651
2651
|
Paid = "paid",
|
|
2652
|
-
Void = "void"
|
|
2652
|
+
Void = "void",
|
|
2653
|
+
PayAtCounter = "pay_at_counter"
|
|
2653
2654
|
}
|
|
2654
2655
|
export enum InvoiceAction {
|
|
2655
2656
|
Calibration = "calibration",
|