@posx/core 5.5.300 → 5.5.301
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 +5 -2
- package/build/index.js +1 -1
- package/package.json +1 -1
- package/package.publish.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -1452,9 +1452,10 @@ declare module '@posx/core/services/invoice.service' {
|
|
|
1452
1452
|
* @param invoice - The invoice to decrease the item quantity in.
|
|
1453
1453
|
* @param line - The invoice line to decrease the item quantity in.
|
|
1454
1454
|
* @param quantity - The quantity of the item to decrease.
|
|
1455
|
+
* @param skipDeletedLines - Whether to skip the deleted lines, default is false.
|
|
1455
1456
|
* @returns The updated invoice.
|
|
1456
1457
|
*/
|
|
1457
|
-
minusLineQuantity(invoice: IInvoice, line: IInvoiceLine, quantity: number): IInvoice;
|
|
1458
|
+
minusLineQuantity(invoice: IInvoice, line: IInvoiceLine, quantity: number, skipDeletedLines?: boolean): IInvoice;
|
|
1458
1459
|
/**
|
|
1459
1460
|
* Increases the quantity of an item in an invoice line.
|
|
1460
1461
|
* @param invoice - The invoice to increase the item quantity in.
|
|
@@ -1560,8 +1561,10 @@ declare module '@posx/core/services/invoice.service' {
|
|
|
1560
1561
|
* And use minusLineQuantity to remove main combo.
|
|
1561
1562
|
* @param invoice the invoice
|
|
1562
1563
|
* @param comboLineUid The combo's line uid
|
|
1564
|
+
* @param skipDeletedLines - Whether to skip the deleted lines, default is false.
|
|
1565
|
+
* @returns The deleted lines.
|
|
1563
1566
|
*/
|
|
1564
|
-
removeAllComboItems(Invoice: IInvoice, comboLineUid: string): IInvoiceLine[];
|
|
1567
|
+
removeAllComboItems(Invoice: IInvoice, comboLineUid: string, skipDeletedLines?: boolean): IInvoiceLine[];
|
|
1565
1568
|
/**
|
|
1566
1569
|
* Duplicates a combo line and all its associated combo items from an invoice
|
|
1567
1570
|
* @param invoice - The invoice containing the combo to duplicate
|