@posx/core 5.5.139 → 5.5.152
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 +4 -2
- package/build/index.js +1 -1
- package/package.json +1 -1
- package/package.publish.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -1428,9 +1428,10 @@ declare module '@posx/core/services/invoice.service' {
|
|
|
1428
1428
|
* @param discountType - The type of discount to add
|
|
1429
1429
|
* @param amountOrPercent - The amount or percent of the discount
|
|
1430
1430
|
* @param calcFlow - The calculation flow to use for the discount
|
|
1431
|
+
* @param name - The name of the discount
|
|
1431
1432
|
* @returns The updated invoice with the added discount
|
|
1432
1433
|
*/
|
|
1433
|
-
addInvoiceDiscount(invoice: IInvoice, discountType: CalcType, amountOrPercent: number, calcFlow?: CalcFlow): IInvoice;
|
|
1434
|
+
addInvoiceDiscount(invoice: IInvoice, discountType: CalcType, amountOrPercent: number, calcFlow?: CalcFlow, name?: string): IInvoice;
|
|
1434
1435
|
/**
|
|
1435
1436
|
* Adds a coupon to an invoice
|
|
1436
1437
|
* @param invoice - The invoice to add the coupon to
|
|
@@ -1555,7 +1556,7 @@ declare module '@posx/core/services/invoice.service' {
|
|
|
1555
1556
|
voidInvoice(invoice: IInvoice, till?: ITill, reason?: string, employee?: IEmployee): Promise<VoidInvoiceOptions>;
|
|
1556
1557
|
duplicateInvoice(invoice: IInvoice, employee?: IEmployee): Promise<IInvoice>;
|
|
1557
1558
|
reprintReceipt(invoice: IInvoice): Promise<boolean>;
|
|
1558
|
-
addInvoiceDiscount(invoice: IInvoice, discountType: CalcType, amountOrPercent: number, calcFlow?: CalcFlow): IInvoice;
|
|
1559
|
+
addInvoiceDiscount(invoice: IInvoice, discountType: CalcType, amountOrPercent: number, calcFlow?: CalcFlow, name?: string, nameTranslations?: {}): IInvoice;
|
|
1559
1560
|
addCouponToInvoice(invoice: IInvoice, coupon: ICoupon, calcFlow?: CalcFlow): IInvoice;
|
|
1560
1561
|
removeInvoiceDiscount(invoice: IInvoice, discountUid: string): IInvoice;
|
|
1561
1562
|
overwriteNoteToInvoice(invoice: IInvoice, note: string): IInvoice;
|
|
@@ -2723,6 +2724,7 @@ declare module '@posx/core/types/invoice.type' {
|
|
|
2723
2724
|
type: DiscountType;
|
|
2724
2725
|
calc_flow: CalcFlow;
|
|
2725
2726
|
name: string;
|
|
2727
|
+
name_translation: {};
|
|
2726
2728
|
voucher_uid: string;
|
|
2727
2729
|
coupon_uid: string;
|
|
2728
2730
|
uid: string;
|