shareneus 1.4.13 → 1.4.15
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.
|
@@ -212,7 +212,9 @@ class InvPrintService {
|
|
|
212
212
|
}
|
|
213
213
|
else {
|
|
214
214
|
Labor.DiscPerc = Labor.Perc;
|
|
215
|
-
|
|
215
|
+
if (!tr_utils_1.TrUtils.IsZero(Labor.UnPr)) {
|
|
216
|
+
Labor.DiscPerc = (0, aggregation_1.division)((0, aggregation_1.multiply)(100, Labor.Disc), Labor.UnPr);
|
|
217
|
+
}
|
|
216
218
|
}
|
|
217
219
|
Labor.CGSTAmt = tr_utils_1.TrUtils.FixPriceValue(Labor.CGST);
|
|
218
220
|
Labor.SGSTAmt = tr_utils_1.TrUtils.FixPriceValue(Labor.SGST);
|
|
@@ -258,7 +260,9 @@ class InvPrintService {
|
|
|
258
260
|
}
|
|
259
261
|
else {
|
|
260
262
|
Item.DiscPerc = Item.Perc;
|
|
261
|
-
|
|
263
|
+
if (!tr_utils_1.TrUtils.IsZero(Item.UnPr)) {
|
|
264
|
+
Item.DiscPerc = (0, aggregation_1.division)((0, aggregation_1.multiply)(100, Item.Disc), Item.UnPr);
|
|
265
|
+
}
|
|
262
266
|
}
|
|
263
267
|
Item.CGSTPerc = shared_print_service_1.PrintSharedService.GetCGSTValueBasedOnTaxCode(Item.TCode, TaxCodes);
|
|
264
268
|
Item.SGSTPerc = shared_print_service_1.PrintSharedService.GetSGSTValueBasedOnTaxCode(Item.TCode, TaxCodes);
|
|
@@ -17,9 +17,9 @@ class PosReceiptPrintService {
|
|
|
17
17
|
title: 'CounterSale',
|
|
18
18
|
},
|
|
19
19
|
background: function (currentPage, pageSize) {
|
|
20
|
-
if (size !== 'full') {
|
|
21
|
-
|
|
22
|
-
}
|
|
20
|
+
// if (size !== 'full') {
|
|
21
|
+
// pageSize.height = pageSize.height - 435.945;
|
|
22
|
+
// }
|
|
23
23
|
return shared_pdf_service_1.SharedPDFService.GetWatermarkImage(InvoicePDFData.Image, pageSize, InvoicePDFData.Entity.Wmark);
|
|
24
24
|
},
|
|
25
25
|
header: function (currentPage, pageCount, pageSize) {
|