shareneus 1.4.34 → 1.4.35
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/dist/aggregation/aggregation.js +13 -13
- package/dist/excel-files/GSTR-RO-excel.service.js +3 -3
- package/dist/excel-files/GSTR1-excel.service.js +7 -7
- package/dist/excel-files/GSTR2-excel.service.js +6 -6
- package/dist/excel-files/analysis-excel.service.js +4 -4
- package/dist/excel-files/category-wise-item-excel.service.js +10 -10
- package/dist/excel-files/cust-balance-excel.service.js +5 -5
- package/dist/excel-files/cust-wise-sales-details.js +5 -5
- package/dist/excel-files/cust-wise-sales-summary-excel.service.js +5 -5
- package/dist/excel-files/expiring-drugs-excel.service.js +7 -7
- package/dist/excel-files/insurance-expire-excel.service.js +4 -4
- package/dist/excel-files/invoice-wise-excel.service.js +3 -3
- package/dist/excel-files/item-wise-doctor-sale-excel.service.js +7 -7
- package/dist/excel-files/item-wise-mout-details.js +4 -4
- package/dist/excel-files/item-wise-mout-summary.js +4 -4
- package/dist/excel-files/items-wise-sales-excel.service.js +10 -10
- package/dist/excel-files/manf-wise-sales-excel.service.js +4 -4
- package/dist/excel-files/next-service-date-excel.service.js +5 -5
- package/dist/excel-files/operator-wise-details.js +4 -4
- package/dist/excel-files/operator-wise-summary.js +4 -4
- package/dist/excel-files/payment-receive-excel.service.js +6 -6
- package/dist/excel-files/payments-made-excel.service.js +6 -6
- package/dist/excel-files/repair-orders-excel.service.js +10 -10
- package/dist/excel-files/sa-wise-labor-sales-excel.service.js +6 -6
- package/dist/excel-files/sa-wise-part-sales-excel.service.js +6 -6
- package/dist/excel-files/sale-summary-excel.service.js +3 -3
- package/dist/excel-files/sales-by-service-summary-excel.service.js +14 -14
- package/dist/excel-files/scheduled-drug-summary-excel.service.js +8 -8
- package/dist/excel-files/scheduled-drugs-excel.service.js +10 -10
- package/dist/excel-files/spares-issue-excel.service.js +14 -14
- package/dist/excel-files/stock-excel.service.js +3 -3
- package/dist/excel-files/tally-sales-import.service.js +3 -3
- package/dist/excel-files/ven-balance-excel.service.js +3 -3
- package/dist/index.js +9 -9
- package/dist/services/analysis-pdf.service.js +8 -8
- package/dist/services/appointment-total.service.js +37 -37
- package/dist/services/auto-sales-receipt-pdf.service.js +24 -24
- package/dist/services/category-wise-item-pdf.service.js +6 -6
- package/dist/services/checklist-pdf.js +3 -3
- package/dist/services/cn-print.service.js +33 -33
- package/dist/services/consultation-fee-receipt.service.js +16 -16
- package/dist/services/consultation-full-pdf.service.js +10 -10
- package/dist/services/consultation-letterhead-pdf.service.js +15 -15
- package/dist/services/consultation-pdf.service.js +15 -15
- package/dist/services/credit-note-pdf.service.js +16 -16
- package/dist/services/credit-note-totals.service.js +31 -31
- package/dist/services/cust-wise-sales-details-pdf.service.js +8 -8
- package/dist/services/cust-wise-sales-summary-pdf.service.js +7 -7
- package/dist/services/customer-balances-pdf.service.js +7 -7
- package/dist/services/dc-landscape-pdf.service.js +28 -28
- package/dist/services/dc-landscape-without-price-pdf.service.js +24 -24
- package/dist/services/dc-without-price-pdf.service.js +15 -15
- package/dist/services/debit-note-pdf.service.js +14 -14
- package/dist/services/debit-note-print.service.js +33 -33
- package/dist/services/debit-note-totals.service.js +28 -28
- package/dist/services/delivery-challan-pdf.service.js +16 -16
- package/dist/services/delivery-challan-print.service.js +26 -26
- package/dist/services/delivery-challan-totals.js +32 -32
- package/dist/services/equipment-design-pdf.service.js +10 -10
- package/dist/services/est.print-service.js +150 -150
- package/dist/services/expiring-drugs-pdf.service.js +6 -6
- package/dist/services/hc-inv-pdf.service.js +42 -42
- package/dist/services/insurance-expire-pdf.service.js +1 -1
- package/dist/services/inv-pdf.service.js +54 -54
- package/dist/services/inv-print.service.js +59 -59
- package/dist/services/invoice-landscape-pdf.service.js +29 -29
- package/dist/services/invoice-letterhead-pdf.service.js +54 -54
- package/dist/services/invoice-portrait-pdf.js +51 -51
- package/dist/services/invoice-total.service.js +78 -78
- package/dist/services/issue-parts-pdf.service.js +43 -43
- package/dist/services/item-bar-code-label-pdf.js +2 -2
- package/dist/services/item-price-for-pricelist.js +178 -0
- package/dist/services/item-wise-doctor-sale-pdf.service.js +3 -3
- package/dist/services/item-wise-mout-details-pdf.js +3 -3
- package/dist/services/item-wise-mout-summary-pdf.js +2 -2
- package/dist/services/item-wise-sales-pdf.service.js +6 -6
- package/dist/services/manf-wise-sales-pdf.service.js +5 -5
- package/dist/services/meeting-pdf.js +14 -14
- package/dist/services/mout-pdf.service.js +17 -17
- package/dist/services/next-service-date-pdf.service.js +1 -1
- package/dist/services/operator-wise-details-pdf.service.js +8 -8
- package/dist/services/operator-wise-summary-pdf.js +7 -7
- package/dist/services/pack-ship-pdf.service.js +3 -3
- package/dist/services/pack-ship-print.service.js +26 -26
- package/dist/services/payment-pdf.service.js +4 -4
- package/dist/services/payment-report-pdf.service.js +3 -3
- package/dist/services/po-totals.service.js +28 -28
- package/dist/services/pos-receipt-pdf.js +19 -19
- package/dist/services/purchase-order-pdf.service.js +40 -40
- package/dist/services/purchase-order-print.service.js +43 -43
- package/dist/services/purchase-order-totals.service.js +53 -53
- package/dist/services/receipt-print.service.js +5 -5
- package/dist/services/reorder-point-pdf.service.js +3 -3
- package/dist/services/repair-orders-pdf.service.js +3 -3
- package/dist/services/ro-pdf.service.js +80 -80
- package/dist/services/ro-print-service.js +87 -87
- package/dist/services/ro-totals.service.js +123 -123
- package/dist/services/sales-by-service-pdf.service.js +6 -6
- package/dist/services/sales-pdf.service.js +23 -23
- package/dist/services/sales-print.service.js +54 -54
- package/dist/services/sales-receipt-pdf.service.js +25 -25
- package/dist/services/sales-receipt-print.service.js +62 -62
- package/dist/services/sales-totals.service.js +33 -33
- package/dist/services/scheduled-drug-pdf.service.js +7 -7
- package/dist/services/scheduled-drug-summary-pdf.service.js +4 -4
- package/dist/services/separate-wo-print.service.js +9 -9
- package/dist/services/shared-inv-pdf.service.js +44 -44
- package/dist/services/shared-pdf.service.js +119 -119
- package/dist/services/shared-print.service.js +68 -68
- package/dist/services/task-pdf.service.js +10 -10
- package/dist/services/task-reports-pdf.service.js +9 -9
- package/dist/services/technician-pdf.service.js +10 -10
- package/dist/services/technician-print.service.js +9 -9
- package/dist/services/vendor-balances-pdf.service.js +6 -6
- package/dist/services/vendor-credit-note-pdf.service.js +27 -27
- package/dist/services/vendor-credit-note-print.service.js +29 -29
- package/dist/services/vendor-credit-note-totals.service.js +37 -37
- package/dist/services/vendor-debit-note-pdf.service.js +16 -16
- package/dist/services/vendor-debit-note-print.service.js +29 -29
- package/dist/services/vendor-debit-note-totals.service.js +30 -30
- package/dist/{utils → shared}/my-date.js +31 -31
- package/package.json +1 -1
- package/dist/services/pricelist-item-final-price.service.js +0 -177
- /package/dist/{utils/tr-utils.js → shared/utils.js} +0 -0
|
@@ -3,16 +3,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.PurchaseOrderPrintService = void 0;
|
|
4
4
|
const aggregation_1 = require("../aggregation/aggregation");
|
|
5
5
|
const code_enums_1 = require("../enums/code-enums");
|
|
6
|
-
const my_date_1 = require("../
|
|
7
|
-
const
|
|
6
|
+
const my_date_1 = require("../shared/my-date");
|
|
7
|
+
const utils_1 = require("../shared/utils");
|
|
8
8
|
const purchase_order_totals_service_1 = require("./purchase-order-totals.service");
|
|
9
9
|
const shared_print_service_1 = require("./shared-print.service");
|
|
10
10
|
class PurchaseOrderPrintService {
|
|
11
11
|
//Prepare Pdf Data For Purchase Order And Bill
|
|
12
12
|
static GetDataForPurchaseOrderPrint(argPurchaseOrderData, EntityData, image, VendorData, TaxCodes, IsFormPO) {
|
|
13
|
-
let PurchaseOrderData =
|
|
13
|
+
let PurchaseOrderData = utils_1.TrUtils.Stringify(argPurchaseOrderData);
|
|
14
14
|
let PurchaseOrderPDFData = {};
|
|
15
|
-
PurchaseOrderPDFData.Settings =
|
|
15
|
+
PurchaseOrderPDFData.Settings = utils_1.TrUtils.Stringify(argPurchaseOrderData.Settings);
|
|
16
16
|
PurchaseOrderPDFData.Adjust = argPurchaseOrderData.Adjust;
|
|
17
17
|
// let IsTaxable: boolean = (PurchaseOrderData.Tax === 3) ? true : false;
|
|
18
18
|
let IsTaxable = true;
|
|
@@ -23,12 +23,12 @@ class PurchaseOrderPrintService {
|
|
|
23
23
|
PurchaseOrderPDFData.HasTaxIncluded = false;
|
|
24
24
|
PurchaseOrderPDFData.HideDiscountColumn = false;
|
|
25
25
|
let SType;
|
|
26
|
-
if (!
|
|
26
|
+
if (!utils_1.TrUtils.IsNull(argPurchaseOrderData.SType)) {
|
|
27
27
|
SType = argPurchaseOrderData.SType;
|
|
28
28
|
}
|
|
29
29
|
// PurchaseOrderPDFData.HasNoTax = (PurchaseOrderData.Tax === 1) ? true : false;
|
|
30
30
|
PurchaseOrderPDFData.HasNoTax = false;
|
|
31
|
-
PurchaseOrderPDFData.ShowIGST = (
|
|
31
|
+
PurchaseOrderPDFData.ShowIGST = (utils_1.TrUtils.IsNull(SType) || (SType === 'Intra')) ? false : true;
|
|
32
32
|
if (IsFormPO) {
|
|
33
33
|
PurchaseOrderPDFData.Id = PurchaseOrderData.Code;
|
|
34
34
|
PurchaseOrderPDFData.CrDate = my_date_1.MyDate.ConvertUTCDateToReadable(PurchaseOrderData.CrDate);
|
|
@@ -39,9 +39,9 @@ class PurchaseOrderPrintService {
|
|
|
39
39
|
PurchaseOrderPDFData.CrDate = my_date_1.MyDate.ConvertUTCDateToReadable(PurchaseOrderData.CrDate);
|
|
40
40
|
PurchaseOrderPDFData.DeDate = my_date_1.MyDate.ConvertUTCDateToReadable(PurchaseOrderData.DeDate);
|
|
41
41
|
}
|
|
42
|
-
PurchaseOrderPDFData.Items =
|
|
43
|
-
PurchaseOrderPDFData.Ops =
|
|
44
|
-
if (!
|
|
42
|
+
PurchaseOrderPDFData.Items = utils_1.TrUtils.Stringify(PurchaseOrderData.Items);
|
|
43
|
+
PurchaseOrderPDFData.Ops = utils_1.TrUtils.Stringify(PurchaseOrderData.Ops);
|
|
44
|
+
if (!utils_1.TrUtils.IsNull(PurchaseOrderPDFData.Ops)) {
|
|
45
45
|
PurchaseOrderPDFData.Ops = this.GetLaborPrintInfo(PurchaseOrderPDFData.Ops, TaxCodes, 'AT');
|
|
46
46
|
}
|
|
47
47
|
// PurchaseOrderPDFData.Items = this.GetPartsDescription(PurchaseOrderPDFData.Items);
|
|
@@ -67,28 +67,28 @@ class PurchaseOrderPrintService {
|
|
|
67
67
|
PurchaseOrderPDFData.HeaderName = 'Bill';
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
-
PurchaseOrderPDFData.Vendor = this.GetVendorDataForPrint(
|
|
70
|
+
PurchaseOrderPDFData.Vendor = this.GetVendorDataForPrint(utils_1.TrUtils.Stringify(VendorData));
|
|
71
71
|
PurchaseOrderPDFData = this.FixPriceValuesForPrint(PurchaseOrderPDFData, TaxCodes);
|
|
72
72
|
return PurchaseOrderPDFData;
|
|
73
73
|
}
|
|
74
74
|
static GetLaborPrintInfo(LaborList, TaxCodes, LineTotal) {
|
|
75
75
|
LaborList.forEach((Labor) => {
|
|
76
76
|
Labor.HSN = Labor.SAC;
|
|
77
|
-
if (
|
|
77
|
+
if (utils_1.TrUtils.IsNull(Labor.Qty)) {
|
|
78
78
|
Labor.Qty = 1;
|
|
79
79
|
}
|
|
80
|
-
Labor.UnCo =
|
|
80
|
+
Labor.UnCo = utils_1.TrUtils.FixPriceValue(Labor.UnCo);
|
|
81
81
|
// Labor.TaxName = this.getTaxName(Labor.TCode, TaxCodes);
|
|
82
|
-
if (!
|
|
82
|
+
if (!utils_1.TrUtils.IsEmpty(Labor.Perc)) {
|
|
83
83
|
Labor.DiscPerc = Labor.Perc;
|
|
84
84
|
}
|
|
85
85
|
else {
|
|
86
86
|
Labor.DiscPerc = Labor.Perc;
|
|
87
87
|
Labor.DiscPerc = (0, aggregation_1.division)((0, aggregation_1.multiply)(100, Labor.Disc), Labor.UnCo);
|
|
88
88
|
}
|
|
89
|
-
Labor.CGSTAmt =
|
|
90
|
-
Labor.SGSTAmt =
|
|
91
|
-
Labor.IGSTAmt =
|
|
89
|
+
Labor.CGSTAmt = utils_1.TrUtils.FixPriceValue(Labor.CGST);
|
|
90
|
+
Labor.SGSTAmt = utils_1.TrUtils.FixPriceValue(Labor.SGST);
|
|
91
|
+
Labor.IGSTAmt = utils_1.TrUtils.FixPriceValue(Labor.IGST);
|
|
92
92
|
Labor.QtyAndUoM = Labor.Qty.toString();
|
|
93
93
|
Labor.CGSTPerc = shared_print_service_1.PrintSharedService.GetCGSTValueBasedOnTaxCode(Labor.TCode, TaxCodes);
|
|
94
94
|
Labor.SGSTPerc = shared_print_service_1.PrintSharedService.GetSGSTValueBasedOnTaxCode(Labor.TCode, TaxCodes);
|
|
@@ -103,11 +103,11 @@ class PurchaseOrderPrintService {
|
|
|
103
103
|
return LaborList;
|
|
104
104
|
}
|
|
105
105
|
static GetVendorDataForPrint(argVendorData) {
|
|
106
|
-
if (
|
|
106
|
+
if (utils_1.TrUtils.IsNull(argVendorData)) {
|
|
107
107
|
return null;
|
|
108
108
|
}
|
|
109
109
|
let VendorPDFData = {};
|
|
110
|
-
let VendorData =
|
|
110
|
+
let VendorData = utils_1.TrUtils.Stringify(argVendorData);
|
|
111
111
|
// VendorPDFData.VendorType = VendorData.Type;
|
|
112
112
|
// if (VendorData.Type === CustomerTypesEnum.Individual) {
|
|
113
113
|
VendorPDFData.Name = VendorData.Name;
|
|
@@ -121,9 +121,9 @@ class PurchaseOrderPrintService {
|
|
|
121
121
|
// ]
|
|
122
122
|
// }
|
|
123
123
|
VendorPDFData.Address = [];
|
|
124
|
-
if (!
|
|
124
|
+
if (!utils_1.TrUtils.IsNull(VendorData.Adrs)) {
|
|
125
125
|
VendorPDFData.Address.push(VendorData.Adrs.A1);
|
|
126
|
-
if (!
|
|
126
|
+
if (!utils_1.TrUtils.IsEmpty(VendorData.Adrs.A2)) {
|
|
127
127
|
VendorPDFData.Address.push(VendorData.Adrs.A2);
|
|
128
128
|
}
|
|
129
129
|
VendorPDFData.Address.push(VendorData.Adrs.Ct);
|
|
@@ -132,14 +132,14 @@ class PurchaseOrderPrintService {
|
|
|
132
132
|
}
|
|
133
133
|
static GetQtyWithUoM(Items) {
|
|
134
134
|
Items.forEach((Part) => {
|
|
135
|
-
if (
|
|
136
|
-
if (!
|
|
135
|
+
if (utils_1.TrUtils.IsNull(Part.Ind)) {
|
|
136
|
+
if (!utils_1.TrUtils.IsZero(Part.Qty) && !utils_1.TrUtils.CheckInvalidSelect(Part.UoM)) {
|
|
137
137
|
Part.QtyAndUoM = Part.Qty + ' ' + Part.UoM;
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
140
|
else {
|
|
141
|
-
if (
|
|
142
|
-
if (!
|
|
141
|
+
if (utils_1.TrUtils.IsNull(Part.OpCode)) {
|
|
142
|
+
if (!utils_1.TrUtils.IsZero(Part.Qty) && !utils_1.TrUtils.CheckInvalidSelect(Part.UoM)) {
|
|
143
143
|
Part.QtyAndUoM = Part.Qty + ' ' + Part.UoM;
|
|
144
144
|
}
|
|
145
145
|
}
|
|
@@ -148,38 +148,38 @@ class PurchaseOrderPrintService {
|
|
|
148
148
|
return Items;
|
|
149
149
|
}
|
|
150
150
|
static ConcatTotalsInfo(PurchaseOrderPDFData, DetailedTotalsInfo) {
|
|
151
|
-
PurchaseOrderPDFData =
|
|
151
|
+
PurchaseOrderPDFData = utils_1.TrUtils.ConcatObjects(PurchaseOrderPDFData, DetailedTotalsInfo);
|
|
152
152
|
return PurchaseOrderPDFData;
|
|
153
153
|
}
|
|
154
154
|
static FixPriceValuesForPrint(PrintData, TaxCodes) {
|
|
155
155
|
PrintData.ShowDetailedPartTaxInfo = false;
|
|
156
156
|
PrintData.Items.forEach((Part) => {
|
|
157
|
-
if (
|
|
157
|
+
if (utils_1.TrUtils.IsNull(Part.UnCo)) {
|
|
158
158
|
Part.UnCo = Part.UnPr;
|
|
159
159
|
}
|
|
160
|
-
Part.UnCo =
|
|
161
|
-
Part.DiscountedPrice =
|
|
162
|
-
Part.AfterTax =
|
|
163
|
-
Part.CGSTAmt =
|
|
164
|
-
Part.IGSTAmt =
|
|
165
|
-
Part.SGSTAmt =
|
|
166
|
-
if (!
|
|
160
|
+
Part.UnCo = utils_1.TrUtils.FixPriceValue(Part.UnCo);
|
|
161
|
+
Part.DiscountedPrice = utils_1.TrUtils.FixPriceValue(Part.DiscountedPrice);
|
|
162
|
+
Part.AfterTax = utils_1.TrUtils.FixPriceValue(Part.AfterTax);
|
|
163
|
+
Part.CGSTAmt = utils_1.TrUtils.FixPriceValue(Part.CGST);
|
|
164
|
+
Part.IGSTAmt = utils_1.TrUtils.FixPriceValue(Part.IGST);
|
|
165
|
+
Part.SGSTAmt = utils_1.TrUtils.FixPriceValue(Part.SGST);
|
|
166
|
+
if (!utils_1.TrUtils.CheckInvalidSelect(Part.TCode)) {
|
|
167
167
|
PrintData.ShowDetailedPartTaxInfo = true;
|
|
168
168
|
}
|
|
169
169
|
Part.CGSTPerc = shared_print_service_1.PrintSharedService.GetCGSTValueBasedOnTaxCode(Part.TCode, TaxCodes);
|
|
170
170
|
Part.SGSTPerc = shared_print_service_1.PrintSharedService.GetSGSTValueBasedOnTaxCode(Part.TCode, TaxCodes);
|
|
171
171
|
Part.IGSTPerc = shared_print_service_1.PrintSharedService.GetIGSTValueBasedOnTaxCode(Part.TCode, TaxCodes);
|
|
172
172
|
});
|
|
173
|
-
PrintData.PartsDiscTotal =
|
|
174
|
-
PrintData.PartsTotalAfterDisc =
|
|
175
|
-
PrintData.PartsTotalBeforeDisc =
|
|
176
|
-
PrintData.TaxTotal =
|
|
177
|
-
PrintData.PartCGST =
|
|
178
|
-
PrintData.PartIGST =
|
|
179
|
-
PrintData.PartSGST =
|
|
180
|
-
PrintData.PartAfterTax =
|
|
181
|
-
PrintData.TotalRoundedBy =
|
|
182
|
-
PrintData.RoundedTotal =
|
|
173
|
+
PrintData.PartsDiscTotal = utils_1.TrUtils.FixPriceValue(PrintData.PartsDiscTotal);
|
|
174
|
+
PrintData.PartsTotalAfterDisc = utils_1.TrUtils.FixPriceValue(PrintData.PartsTotalAfterDisc);
|
|
175
|
+
PrintData.PartsTotalBeforeDisc = utils_1.TrUtils.FixPriceValue(PrintData.PartsTotalBeforeDisc);
|
|
176
|
+
PrintData.TaxTotal = utils_1.TrUtils.FixPriceValue(PrintData.TaxTotal);
|
|
177
|
+
PrintData.PartCGST = utils_1.TrUtils.FixPriceValue(PrintData.PartCGST);
|
|
178
|
+
PrintData.PartIGST = utils_1.TrUtils.FixPriceValue(PrintData.PartIGST);
|
|
179
|
+
PrintData.PartSGST = utils_1.TrUtils.FixPriceValue(PrintData.PartSGST);
|
|
180
|
+
PrintData.PartAfterTax = utils_1.TrUtils.FixPriceValue(PrintData.PartAfterTax);
|
|
181
|
+
PrintData.TotalRoundedBy = utils_1.TrUtils.FixPriceValue(PrintData.TotalRoundedBy);
|
|
182
|
+
PrintData.RoundedTotal = utils_1.TrUtils.FixPriceValue(PrintData.RoundedTotal);
|
|
183
183
|
return PrintData;
|
|
184
184
|
}
|
|
185
185
|
}
|
|
@@ -3,14 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.PurchaseOrderTotalsService = void 0;
|
|
4
4
|
const aggregation_1 = require("../aggregation/aggregation");
|
|
5
5
|
const code_enums_1 = require("../enums/code-enums");
|
|
6
|
-
const
|
|
6
|
+
const utils_1 = require("../shared/utils");
|
|
7
7
|
class PurchaseOrderTotalsService {
|
|
8
8
|
static GetTotalsValue(opCodesList, argPartsList, IsTaxable, DetailedTotalsInfo, TaxCodes, Tax, ReturnPartsAlso, HasNoTax, GetSubTotal, Discount, DiscInPerc, Adjust) {
|
|
9
|
-
let PartsList =
|
|
9
|
+
let PartsList = utils_1.TrUtils.IsNull(argPartsList) ? [] : utils_1.TrUtils.Stringify(argPartsList);
|
|
10
10
|
// PartsList = this.ResetPartValuesIfInvalid(PartsList);
|
|
11
11
|
// PartsList = this.GetPartsDiscountPrice(PartsList);
|
|
12
12
|
// PartsList = this.GetPartsAfterDiscount(PartsList);
|
|
13
|
-
if (
|
|
13
|
+
if (utils_1.TrUtils.IsNull(opCodesList)) {
|
|
14
14
|
opCodesList = [];
|
|
15
15
|
}
|
|
16
16
|
opCodesList = this.CalculateLaborValues(opCodesList, IsTaxable);
|
|
@@ -37,7 +37,7 @@ class PurchaseOrderTotalsService {
|
|
|
37
37
|
opCodesList.forEach((Operation) => {
|
|
38
38
|
Operation = this.ResetLaborValueIfInvalid(Operation);
|
|
39
39
|
Operation.DiscountedPrice = (0, aggregation_1.addition)(Operation.Disc, Operation.RecDisc);
|
|
40
|
-
if (
|
|
40
|
+
if (utils_1.TrUtils.IsNull(Operation.Amt)) {
|
|
41
41
|
Operation.Amt = Operation.UnCo;
|
|
42
42
|
}
|
|
43
43
|
Operation.GSTAmt = (0, aggregation_1.addition)(Operation.SGST, Operation.CGST, Operation.IGST);
|
|
@@ -53,21 +53,21 @@ class PurchaseOrderTotalsService {
|
|
|
53
53
|
let Price = 0;
|
|
54
54
|
Price = (0, aggregation_1.multiply)(Operation.UnCo, Operation.Qty);
|
|
55
55
|
if (IsIndependentTax) {
|
|
56
|
-
Operation.LineTotal =
|
|
56
|
+
Operation.LineTotal = utils_1.TrUtils.FixedTo((0, aggregation_1.addition)((0, aggregation_1.subtraction)(Price, Operation.Disc), Operation.GSTAmt));
|
|
57
57
|
}
|
|
58
58
|
else {
|
|
59
|
-
Operation.LineTotal =
|
|
59
|
+
Operation.LineTotal = utils_1.TrUtils.FixedTo((0, aggregation_1.subtraction)(Price, Operation.Disc));
|
|
60
60
|
}
|
|
61
61
|
});
|
|
62
62
|
return opCodesList;
|
|
63
63
|
}
|
|
64
64
|
static ResetLaborValueIfInvalid(Operation) {
|
|
65
|
-
Operation.UnCo =
|
|
66
|
-
Operation.RecDisc =
|
|
67
|
-
Operation.Disc =
|
|
68
|
-
Operation.CGST =
|
|
69
|
-
Operation.SGST =
|
|
70
|
-
Operation.IGST =
|
|
65
|
+
Operation.UnCo = utils_1.TrUtils.SetValueToZeroIfNull(Operation.UnCo);
|
|
66
|
+
Operation.RecDisc = utils_1.TrUtils.SetValueToZeroIfNull(Operation.RecDisc);
|
|
67
|
+
Operation.Disc = utils_1.TrUtils.SetValueToZeroIfNull(Operation.Disc);
|
|
68
|
+
Operation.CGST = utils_1.TrUtils.SetValueToZeroIfNull(Operation.CGST);
|
|
69
|
+
Operation.SGST = utils_1.TrUtils.SetValueToZeroIfNull(Operation.SGST);
|
|
70
|
+
Operation.IGST = utils_1.TrUtils.SetValueToZeroIfNull(Operation.IGST);
|
|
71
71
|
return Operation;
|
|
72
72
|
}
|
|
73
73
|
static CheckPartStatusAndReturn(PartsList) {
|
|
@@ -78,14 +78,14 @@ class PurchaseOrderTotalsService {
|
|
|
78
78
|
}
|
|
79
79
|
static ResetPartValueIfInvalid(Part) {
|
|
80
80
|
// if (TrUtils.IsNull(Part.Ind)) {
|
|
81
|
-
if (
|
|
82
|
-
Part.UnCo =
|
|
81
|
+
if (utils_1.TrUtils.IsNull(Part.UnCo)) {
|
|
82
|
+
Part.UnCo = utils_1.TrUtils.SetValueToZeroIfNull(Part.UnPr);
|
|
83
83
|
}
|
|
84
|
-
Part.UnCo =
|
|
85
|
-
Part.Disc =
|
|
86
|
-
Part.SGST =
|
|
87
|
-
Part.IGST =
|
|
88
|
-
Part.CGST =
|
|
84
|
+
Part.UnCo = utils_1.TrUtils.SetValueToZeroIfNull(Part.UnCo);
|
|
85
|
+
Part.Disc = utils_1.TrUtils.SetValueToZeroIfNull(Part.Disc);
|
|
86
|
+
Part.SGST = utils_1.TrUtils.SetValueToZeroIfNull(Part.SGST);
|
|
87
|
+
Part.IGST = utils_1.TrUtils.SetValueToZeroIfNull(Part.IGST);
|
|
88
|
+
Part.CGST = utils_1.TrUtils.SetValueToZeroIfNull(Part.CGST);
|
|
89
89
|
// }
|
|
90
90
|
return Part;
|
|
91
91
|
}
|
|
@@ -93,7 +93,7 @@ class PurchaseOrderTotalsService {
|
|
|
93
93
|
// if (DiscInPerc) {
|
|
94
94
|
// return TrUtils.FixedTo(((Price * Qty) * Disc) / 100);
|
|
95
95
|
// } else {
|
|
96
|
-
return (0, aggregation_1.addition)(Disc,
|
|
96
|
+
return (0, aggregation_1.addition)(Disc, utils_1.TrUtils.SetValueToZeroIfNull(RecDisc));
|
|
97
97
|
// }
|
|
98
98
|
}
|
|
99
99
|
static GetPartsTaxAmount(Items, IsTaxable, TaxCodes) {
|
|
@@ -102,7 +102,7 @@ class PurchaseOrderTotalsService {
|
|
|
102
102
|
// Part.CGSTAmt = this.GetCGSTTaxAmount(Part.AfterDiscountPrice, IsTaxable, Part.TCode, TaxCodes);
|
|
103
103
|
// Part.IGSTAmt = this.GetIGSTTaxAmount(Part.AfterDiscountPrice, IsTaxable, Part.TCode, TaxCodes);
|
|
104
104
|
// Part.SGSTAmt = this.GetSGSTTaxAmount(Part.AfterDiscountPrice, IsTaxable, Part.TCode, TaxCodes);
|
|
105
|
-
if (
|
|
105
|
+
if (utils_1.TrUtils.IsNull(Part.Ind)) {
|
|
106
106
|
Part.DiscountedPrice = this.GetPartDiscountedPrice(Part.Disc, Part.RecDisc);
|
|
107
107
|
// Part.AfterDiscountPrice = Part.NetAmt;
|
|
108
108
|
Part.AfterDiscountPrice = (0, aggregation_1.subtraction)(Part.UnAmt, Part.Disc, Part.RecDisc);
|
|
@@ -113,7 +113,7 @@ class PurchaseOrderTotalsService {
|
|
|
113
113
|
if (IsTaxable) {
|
|
114
114
|
// if (!TrUtils(Part.Perc)) {
|
|
115
115
|
Price = (0, aggregation_1.multiply)(Part.UnCo, Part.Qty);
|
|
116
|
-
Part.LineTotal =
|
|
116
|
+
Part.LineTotal = utils_1.TrUtils.FixedTo((0, aggregation_1.addition)((0, aggregation_1.subtraction)(Price, Part.Disc), Part.GSTAmt));
|
|
117
117
|
// } else {
|
|
118
118
|
// Part.LineTotal = TrUtils.FixedTo((Part.UnPr - Part.Disc) + Part.GSTAmt);
|
|
119
119
|
// }
|
|
@@ -122,7 +122,7 @@ class PurchaseOrderTotalsService {
|
|
|
122
122
|
// let DiscPrice: any = 0;
|
|
123
123
|
// if (Part.Perc) {
|
|
124
124
|
Price = (0, aggregation_1.multiply)(Part.UnCo, Part.Qty);
|
|
125
|
-
Part.LineTotal =
|
|
125
|
+
Part.LineTotal = utils_1.TrUtils.FixedTo((0, aggregation_1.subtraction)(Price, Part.Disc));
|
|
126
126
|
// } else {
|
|
127
127
|
// Part.LineTotal = TrUtils.FixedTo((Part.UnPr - Part.Disc));
|
|
128
128
|
// }
|
|
@@ -132,10 +132,10 @@ class PurchaseOrderTotalsService {
|
|
|
132
132
|
return Items;
|
|
133
133
|
}
|
|
134
134
|
static GetGSTValueBasedOnTaxCode(TCode, argTaxCodes) {
|
|
135
|
-
if (
|
|
135
|
+
if (utils_1.TrUtils.IsNull(TCode)) {
|
|
136
136
|
return [0, 0, 0];
|
|
137
137
|
}
|
|
138
|
-
let TaxCodes =
|
|
138
|
+
let TaxCodes = utils_1.TrUtils.Stringify(argTaxCodes);
|
|
139
139
|
let TCodeIndex = TaxCodes.findIndex((TaxCode) => {
|
|
140
140
|
return TaxCode._id === Number(TCode);
|
|
141
141
|
});
|
|
@@ -159,15 +159,15 @@ class PurchaseOrderTotalsService {
|
|
|
159
159
|
static GetTotalsInfo(PartsList, LaborList, IsTaxable, TaxCodes, HasNoTax, GetSubTotal, Discount, DiscInPerc, Adjust) {
|
|
160
160
|
let finalTotalsData = {};
|
|
161
161
|
let PartsInfo = this.GetPartsTotalTaxAndAfterDiscount(PartsList);
|
|
162
|
-
let PartsTotalAfterDisc =
|
|
163
|
-
let PartsDiscTotal =
|
|
164
|
-
let PartsTaxTotal =
|
|
162
|
+
let PartsTotalAfterDisc = utils_1.TrUtils.SetValueToZeroIfNull(PartsInfo[0]);
|
|
163
|
+
let PartsDiscTotal = utils_1.TrUtils.SetValueToZeroIfNull(PartsInfo[1]);
|
|
164
|
+
let PartsTaxTotal = utils_1.TrUtils.SetValueToZeroIfNull(PartsInfo[2]);
|
|
165
165
|
let ServicesInfo = this.GetServiceTotalTaxAndAfterDiscount(LaborList);
|
|
166
|
-
let ServicesTotalAfterDisc =
|
|
167
|
-
let ServicesDiscTotal =
|
|
168
|
-
let ServicesTaxTotal =
|
|
166
|
+
let ServicesTotalAfterDisc = utils_1.TrUtils.SetValueToZeroIfNull(ServicesInfo[0]);
|
|
167
|
+
let ServicesDiscTotal = utils_1.TrUtils.SetValueToZeroIfNull(ServicesInfo[1]);
|
|
168
|
+
let ServicesTaxTotal = utils_1.TrUtils.SetValueToZeroIfNull(ServicesInfo[2]);
|
|
169
169
|
finalTotalsData.SubTotal = (0, aggregation_1.addition)(PartsTotalAfterDisc, PartsDiscTotal, ServicesTotalAfterDisc, ServicesDiscTotal);
|
|
170
|
-
finalTotalsData.Adj =
|
|
170
|
+
finalTotalsData.Adj = utils_1.TrUtils.FixPriceValue(Adjust);
|
|
171
171
|
// if (GetSubTotal) {
|
|
172
172
|
// finalTotalsData.SubTotal = this.GetTotalBasedOnTaxType(PartsTotalAfterDisc, PartsTaxTotal,
|
|
173
173
|
// IsTaxable);
|
|
@@ -218,32 +218,32 @@ class PurchaseOrderTotalsService {
|
|
|
218
218
|
else {
|
|
219
219
|
Total = (0, aggregation_1.addition)(PartsTotalAfterDisc, ServicesTotalAfterDisc);
|
|
220
220
|
}
|
|
221
|
-
let finalTotal = (0, aggregation_1.addition)(Total,
|
|
222
|
-
return
|
|
221
|
+
let finalTotal = (0, aggregation_1.addition)(Total, utils_1.TrUtils.SetValueToZeroIfNull(Adjust));
|
|
222
|
+
return utils_1.TrUtils.FixedTo(finalTotal);
|
|
223
223
|
}
|
|
224
224
|
static GetDetailedTotalsData(finalTotalsData, IsTaxable, PartsList, LaborList, TaxCodes, Tax, HasNoTax) {
|
|
225
225
|
let PartsInfo = this.GetPartsTotalTaxAndAfterDiscount(PartsList);
|
|
226
226
|
let ServicesInfo = this.GetServiceTotalTaxAndAfterDiscount(LaborList);
|
|
227
|
-
finalTotalsData.PartsDiscTotal =
|
|
228
|
-
finalTotalsData.PartsTotalAfterDisc =
|
|
227
|
+
finalTotalsData.PartsDiscTotal = utils_1.TrUtils.SetValueToZeroIfNull(PartsInfo[1]);
|
|
228
|
+
finalTotalsData.PartsTotalAfterDisc = utils_1.TrUtils.SetValueToZeroIfNull(PartsInfo[0]);
|
|
229
229
|
finalTotalsData.PartsTotalBeforeDisc = (0, aggregation_1.addition)(finalTotalsData.PartsTotalAfterDisc, finalTotalsData.PartsDiscTotal);
|
|
230
230
|
// finalTotalsData.TaxTotal = this.GetPartsTaxTotal(PartsList);
|
|
231
|
-
finalTotalsData.TaxTotal = (0, aggregation_1.addition)(
|
|
232
|
-
finalTotalsData.ServiceTotalAfterDisc =
|
|
233
|
-
finalTotalsData.ServiceDiscTotal =
|
|
234
|
-
finalTotalsData.ServiceTaxTotal =
|
|
231
|
+
finalTotalsData.TaxTotal = (0, aggregation_1.addition)(utils_1.TrUtils.SetValueToZeroIfNull(PartsInfo[2]), utils_1.TrUtils.SetValueToZeroIfNull(ServicesInfo[2]));
|
|
232
|
+
finalTotalsData.ServiceTotalAfterDisc = utils_1.TrUtils.SetValueToZeroIfNull(ServicesInfo[0]);
|
|
233
|
+
finalTotalsData.ServiceDiscTotal = utils_1.TrUtils.SetValueToZeroIfNull(ServicesInfo[1]);
|
|
234
|
+
finalTotalsData.ServiceTaxTotal = utils_1.TrUtils.SetValueToZeroIfNull(ServicesInfo[2]);
|
|
235
235
|
finalTotalsData.ServiceTotalBeforeDisc = (0, aggregation_1.addition)(finalTotalsData.ServiceTotalAfterDisc, finalTotalsData.ServiceDiscTotal);
|
|
236
236
|
let TaxAmt = this.GetPartGSTTaxTotal(PartsList);
|
|
237
237
|
// finalTotalsData.PartCGST = this.GetPartCGSTTaxTotal(PartsList);
|
|
238
238
|
// finalTotalsData.PartIGST = this.GetPartIGSTTaxTotal(PartsList);
|
|
239
239
|
// finalTotalsData.PartSGST = this.GetPartSGSTTaxTotal(PartsList);
|
|
240
|
-
finalTotalsData.PartCGST =
|
|
241
|
-
finalTotalsData.PartSGST =
|
|
242
|
-
finalTotalsData.PartIGST =
|
|
240
|
+
finalTotalsData.PartCGST = utils_1.TrUtils.SetValueToZeroIfNull(TaxAmt[0]);
|
|
241
|
+
finalTotalsData.PartSGST = utils_1.TrUtils.SetValueToZeroIfNull(TaxAmt[1]);
|
|
242
|
+
finalTotalsData.PartIGST = utils_1.TrUtils.SetValueToZeroIfNull(TaxAmt[2]);
|
|
243
243
|
let ServiceTaxAmt = this.GetServicesGSTTaxTotal(LaborList);
|
|
244
|
-
finalTotalsData.ServieCGST =
|
|
245
|
-
finalTotalsData.ServieSGST =
|
|
246
|
-
finalTotalsData.ServieIGST =
|
|
244
|
+
finalTotalsData.ServieCGST = utils_1.TrUtils.SetValueToZeroIfNull(TaxAmt[0]);
|
|
245
|
+
finalTotalsData.ServieSGST = utils_1.TrUtils.SetValueToZeroIfNull(TaxAmt[1]);
|
|
246
|
+
finalTotalsData.ServieIGST = utils_1.TrUtils.SetValueToZeroIfNull(TaxAmt[2]);
|
|
247
247
|
finalTotalsData.PartAfterTax = (0, aggregation_1.addition)(finalTotalsData.PartsTotalAfterDisc, finalTotalsData.TaxTotal);
|
|
248
248
|
finalTotalsData.ServiceAfterTax = (0, aggregation_1.addition)(finalTotalsData.ServiceTotalAfterDisc, finalTotalsData.ServiceTaxTotal);
|
|
249
249
|
finalTotalsData.IsTaxable = IsTaxable;
|
|
@@ -279,7 +279,7 @@ class PurchaseOrderTotalsService {
|
|
|
279
279
|
return [CGSTAmt, SGSTAmt, IGSTAmt];
|
|
280
280
|
}
|
|
281
281
|
static GetPartsTaxGroupingFor(PartsList, TaxCodes) {
|
|
282
|
-
return this.GetTaxGroupingForPartsByHSN(
|
|
282
|
+
return this.GetTaxGroupingForPartsByHSN(utils_1.TrUtils.Stringify(PartsList), TaxCodes);
|
|
283
283
|
}
|
|
284
284
|
static GetTaxGroupingForPartsByHSN(Items, TaxCodes) {
|
|
285
285
|
Items = this.GetCombinedTaxPercentage(Items, TaxCodes);
|
|
@@ -289,13 +289,13 @@ class PurchaseOrderTotalsService {
|
|
|
289
289
|
}
|
|
290
290
|
static GetCombinedTaxPercentage(Items, TaxCodes) {
|
|
291
291
|
Items.forEach((Part) => {
|
|
292
|
-
if (
|
|
292
|
+
if (utils_1.TrUtils.IsNull(Part.HSN)) {
|
|
293
293
|
Part.HSN = '';
|
|
294
294
|
}
|
|
295
295
|
let TaxInfo = this.GetGSTValueBasedOnTaxCode(Part.TCode, TaxCodes);
|
|
296
|
-
Part.CGSTAmt =
|
|
297
|
-
Part.SGSTAmt =
|
|
298
|
-
Part.IGSTAmt =
|
|
296
|
+
Part.CGSTAmt = utils_1.TrUtils.SetValueToZeroIfNull(TaxInfo[0]);
|
|
297
|
+
Part.SGSTAmt = utils_1.TrUtils.SetValueToZeroIfNull(TaxInfo[1]);
|
|
298
|
+
Part.IGSTAmt = utils_1.TrUtils.SetValueToZeroIfNull(TaxInfo[2]);
|
|
299
299
|
// Part.CGSTAmt = this.GetCGSTValueBasedOnTaxCode(Part.TCode, TaxCodes);
|
|
300
300
|
// Part.SGSTAmt = this.GetSGSTValueBasedOnTaxCode(Part.TCode, TaxCodes);
|
|
301
301
|
// Part.IGSTAmt = this.GetIGSTValueBasedOnTaxCode(Part.TCode, TaxCodes);
|
|
@@ -347,8 +347,8 @@ class PurchaseOrderTotalsService {
|
|
|
347
347
|
TaxAmount = (0, aggregation_1.addition)(TaxAmount, argMatchedGSTPart.SGST);
|
|
348
348
|
});
|
|
349
349
|
TaxInfo.HSN = HSN;
|
|
350
|
-
TaxInfo.TotalTaxableAmount =
|
|
351
|
-
TaxInfo.TotalTaxAmount =
|
|
350
|
+
TaxInfo.TotalTaxableAmount = utils_1.TrUtils.FixPriceValue(TaxOnAmount);
|
|
351
|
+
TaxInfo.TotalTaxAmount = utils_1.TrUtils.FixPriceValue(TaxAmount);
|
|
352
352
|
TaxInfo.PartsCount = MatchedPart.length;
|
|
353
353
|
// let CGST = this.GetCGSTValueBasedOnTaxCode(MatchedPart[0].TCode, TaxCodes);
|
|
354
354
|
// let SGST = this.GetSGSTValueBasedOnTaxCode(MatchedPart[0].TCode, TaxCodes);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ReceiptPrintService = void 0;
|
|
4
|
-
const my_date_1 = require("../
|
|
5
|
-
const
|
|
4
|
+
const my_date_1 = require("../shared/my-date");
|
|
5
|
+
const utils_1 = require("../shared/utils");
|
|
6
6
|
const shared_print_service_1 = require("./shared-print.service");
|
|
7
7
|
class ReceiptPrintService {
|
|
8
8
|
static GetReceiptPrint(argPaymentViewData, EntityData, image) {
|
|
9
|
-
let PaymentViewData =
|
|
9
|
+
let PaymentViewData = utils_1.TrUtils.Stringify(argPaymentViewData);
|
|
10
10
|
let ReceiptData = {};
|
|
11
11
|
ReceiptData.Entity = shared_print_service_1.PrintSharedService.GetFormattedEntityDataForPrint(EntityData, "Receipt", argPaymentViewData);
|
|
12
12
|
ReceiptData = shared_print_service_1.PrintSharedService.GetEntityHeaderStyles(ReceiptData, EntityData, image);
|
|
@@ -35,10 +35,10 @@ class ReceiptPrintService {
|
|
|
35
35
|
static GetRecordIds(PaymentViewData) {
|
|
36
36
|
let IdList = [];
|
|
37
37
|
var i = 0;
|
|
38
|
-
if (!
|
|
38
|
+
if (!utils_1.TrUtils.IsNull(PaymentViewData.Invs) && PaymentViewData.Invs.length !== 0) {
|
|
39
39
|
for (i = 0; i < PaymentViewData.Invs.length; i++) {
|
|
40
40
|
let Id = PaymentViewData.Invs[i].Code;
|
|
41
|
-
if (!
|
|
41
|
+
if (!utils_1.TrUtils.IsNull(PaymentViewData.Invs[i].RegNo)) {
|
|
42
42
|
Id = Id + '(' + PaymentViewData.Invs[i].RegNo + ')';
|
|
43
43
|
}
|
|
44
44
|
IdList.push(Id);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ReorderPointPDFService = void 0;
|
|
4
|
-
const my_date_1 = require("../
|
|
5
|
-
const
|
|
4
|
+
const my_date_1 = require("../shared/my-date");
|
|
5
|
+
const utils_1 = require("../shared/utils");
|
|
6
6
|
class ReorderPointPDFService {
|
|
7
7
|
static GetPrint(ReOrderPointData) {
|
|
8
8
|
// console.log('ReOrderPointData', ReOrderPointData);
|
|
@@ -122,7 +122,7 @@ class ReorderPointPDFService {
|
|
|
122
122
|
var _a;
|
|
123
123
|
let dataRow = [];
|
|
124
124
|
let VName;
|
|
125
|
-
if (
|
|
125
|
+
if (utils_1.TrUtils.IsNull(item === null || item === void 0 ? void 0 : item.Vendor) || utils_1.TrUtils.IsNull(item === null || item === void 0 ? void 0 : item.Vendor[0])) {
|
|
126
126
|
VName = '';
|
|
127
127
|
}
|
|
128
128
|
else {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.RepairOrdersReportsPDFService = void 0;
|
|
4
|
-
const my_date_1 = require("../
|
|
5
|
-
const
|
|
4
|
+
const my_date_1 = require("../shared/my-date");
|
|
5
|
+
const utils_1 = require("../shared/utils");
|
|
6
6
|
const shared_pdf_service_1 = require("./shared-pdf.service");
|
|
7
7
|
class RepairOrdersReportsPDFService {
|
|
8
8
|
static GetRepairOrdersReportstPrint(InvoicesData, CName, HeaerName, searchValue) {
|
|
@@ -126,7 +126,7 @@ class RepairOrdersReportsPDFService {
|
|
|
126
126
|
dataRow.push({ text: invoice.WOType.Name });
|
|
127
127
|
dataRow.push({ text: invoice.Name });
|
|
128
128
|
dataRow.push({ text: invoice.TeNa });
|
|
129
|
-
dataRow.push({ text:
|
|
129
|
+
dataRow.push({ text: utils_1.TrUtils.FixPriceValue(invoice.Total), alignment: 'right' });
|
|
130
130
|
// dataRow.push({ text: TrUtils.IsNull(invoice.Prod) ? '' : invoice.Prod?.Model + ' ' + invoice.Prod?.Var });
|
|
131
131
|
// }
|
|
132
132
|
// dataRow.push({ text: invoice.BFrom.Name, alignment: 'left', style: ['headerstyle'], });
|