shareneus 1.1.4 → 1.1.6
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.
|
@@ -244,6 +244,14 @@ class InvPrintService {
|
|
|
244
244
|
Item.CGSTAmt = tr_utils_1.TrUtils.FixPriceValue(Item.CGST);
|
|
245
245
|
Item.SGSTAmt = tr_utils_1.TrUtils.FixPriceValue(Item.SGST);
|
|
246
246
|
Item.IGSTAmt = tr_utils_1.TrUtils.FixPriceValue(Item.IGST);
|
|
247
|
+
Item.TaxName = this.getTaxName(Item.TCode, TaxCodes);
|
|
248
|
+
if (!tr_utils_1.TrUtils.IsEmpty(Item.Perc)) {
|
|
249
|
+
Item.DiscPerc = Item.Perc;
|
|
250
|
+
}
|
|
251
|
+
else {
|
|
252
|
+
Item.DiscPerc = Item.Perc;
|
|
253
|
+
Item.DiscPerc = (0, aggregation_1.division)((0, aggregation_1.multiply)(100, Item.Disc), Item.UnPr);
|
|
254
|
+
}
|
|
247
255
|
Item.CGSTPerc = shared_print_service_1.PrintSharedService.GetCGSTValueBasedOnTaxCode(Item.TCode, TaxCodes);
|
|
248
256
|
Item.SGSTPerc = shared_print_service_1.PrintSharedService.GetSGSTValueBasedOnTaxCode(Item.TCode, TaxCodes);
|
|
249
257
|
Item.IGSTPerc = shared_print_service_1.PrintSharedService.GetIGSTValueBasedOnTaxCode(Item.TCode, TaxCodes);
|
|
@@ -262,6 +270,12 @@ class InvPrintService {
|
|
|
262
270
|
});
|
|
263
271
|
return Items;
|
|
264
272
|
}
|
|
273
|
+
static getTaxName(TCode, TaxCodes) {
|
|
274
|
+
let Index = TaxCodes.findIndex((TaxCode) => {
|
|
275
|
+
return Number(TCode) === TaxCode._id;
|
|
276
|
+
});
|
|
277
|
+
return (Index !== -1) ? TaxCodes[Index].Name : '';
|
|
278
|
+
}
|
|
265
279
|
static ReverseItemsForInvoicePrint(argInvoiceData) {
|
|
266
280
|
argInvoiceData.Ops = argInvoiceData.Ops;
|
|
267
281
|
argInvoiceData.Items = argInvoiceData.Items;
|
|
@@ -335,9 +335,10 @@ class InvoiceLandscapePdfService {
|
|
|
335
335
|
{ text: '', Field: 'Desc', lineHeight: 0.5 },
|
|
336
336
|
{ text: '', Field: 'Batch', lineHeight: 0.5 },
|
|
337
337
|
{ text: 'Expiry', Field: 'ExDate', lineHeight: 0.5 },
|
|
338
|
-
{ text: '', Field: 'QtyAndUoM', lineHeight: 0.5 },
|
|
338
|
+
{ text: '', Field: 'QtyAndUoM', lineHeight: 0.5 },
|
|
339
339
|
{ text: '', Field: 'OfQty', lineHeight: 0.5 },
|
|
340
340
|
{ text: '', Field: 'MRP', lineHeight: 0.5 },
|
|
341
|
+
{ text: '', Field: 'UnPr', lineHeight: 0.5 },
|
|
341
342
|
{ text: 'Line Total', Field: 'LineTotal', lineHeight: 0.5 }
|
|
342
343
|
]];
|
|
343
344
|
if (permission) {
|