shareneus 1.5.4 → 1.5.5
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.
|
@@ -57,7 +57,7 @@ class SaleReceiptPrintService {
|
|
|
57
57
|
InvoicePrintData.Sts = PaymentData.Sts;
|
|
58
58
|
}
|
|
59
59
|
InvoicePrintData.Consolidate = ConsolidateGST;
|
|
60
|
-
InvoicePrintData.ShowDiscountColumn =
|
|
60
|
+
InvoicePrintData.ShowDiscountColumn = true;
|
|
61
61
|
if (!ForInsurance && !ConsolidateGST) {
|
|
62
62
|
if (shared_print_service_1.PrintSharedService.CheckItemIndexWithDisc(InvoicePrintData) !== -1) {
|
|
63
63
|
InvoicePrintData.ShowDiscountColumn = (InvoicePrintData.Settings.DiscLvl === 'ITM' || InvoicePrintData.Settings.DiscLvl === 'RECITM') ? true : false;
|
|
@@ -1991,6 +1991,9 @@ class SharedPDFService {
|
|
|
1991
1991
|
if (!Consolidate) {
|
|
1992
1992
|
AccountFields.unshift({ name: 'SubTotal', value: tr_utils_1.TrUtils.FixPriceValue((0, math_operations_1.Add)(tr_utils_1.TrUtils.SetValueToZeroIfNull(Number(LaborAfterGST)), tr_utils_1.TrUtils.SetValueToZeroIfNull(Number(PartsAfterGST))), DecimalsNumber) });
|
|
1993
1993
|
}
|
|
1994
|
+
else {
|
|
1995
|
+
AccountFields.unshift({ name: 'SubTotal', value: tr_utils_1.TrUtils.FixPriceValue((0, math_operations_1.Add)(tr_utils_1.TrUtils.SetValueToZeroIfNull(Number(LaborAfterGST)), tr_utils_1.TrUtils.SetValueToZeroIfNull(Number(PartsAfterGST)), tr_utils_1.TrUtils.SetValueToZeroIfNull(Number(totalTax))), DecimalsNumber) });
|
|
1996
|
+
}
|
|
1994
1997
|
}
|
|
1995
1998
|
if (!tr_utils_1.TrUtils.IsEmpty(totalTax)) {
|
|
1996
1999
|
AccountFields.push({ name: 'Total Tax', value: totalTax });
|