shareneus 1.4.31 → 1.4.33

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.
@@ -412,10 +412,10 @@ class DebitNotePdfService {
412
412
  else {
413
413
  if (ShowIGST) {
414
414
  if (ShowDiscountColumn) {
415
- return [15, 215, 40, 25, 40, 17, 35, 17, 35, 50];
415
+ return [20, "*", 60, 17, 35, 17, 35, 60];
416
416
  }
417
417
  else {
418
- return [15, 270, 40, 25, 40, 20, 40, 54];
418
+ return [20, '*', 40, 25, 40, 60];
419
419
  }
420
420
  }
421
421
  else {
@@ -38,6 +38,9 @@ class DebitNotePrintService {
38
38
  InvoicePrintData.PrintInfo = this.PrepareFormatForInvoicePrint(InvoicePrintData, code_enums_1.ROTypeEnum.Invoice, argInvoiceData.Sts);
39
39
  InvoicePrintData = this.GetFormattedProductDataForPrint(argInvoiceData, InvoicePrintData);
40
40
  InvoicePrintData = this.GetBillNameForInvoicePrint(argInvoiceData, InvoicePrintData, IsCustBillTo);
41
+ if (tr_utils_1.TrUtils.IsNull(argInvoiceData.Payments)) {
42
+ argInvoiceData.Payments = [];
43
+ }
41
44
  let PaymentData = this.GetPaymentsTotal(argInvoiceData.Payments, InvoicePrintData.Total, argInvoiceData.Sts);
42
45
  InvoicePrintData.Due = PaymentData.Due;
43
46
  InvoicePrintData.Paid = PaymentData.Paid;
@@ -33,6 +33,9 @@ class VendorDebitNoteTotalsService {
33
33
  static ResetLaborItemValues(ItemsList, IsIndependentTax) {
34
34
  ItemsList.forEach((Item) => {
35
35
  Item = this.ResetLaborItemValueIfInvalid(Item);
36
+ if (tr_utils_1.TrUtils.IsZero(Item.Qty)) {
37
+ Item.Qty = 1;
38
+ }
36
39
  Item.DiscountedPrice = (0, aggregation_1.addition)(Item.Disc, Item.RecDisc);
37
40
  Item.AfterItemDisc = Item.NetAmt;
38
41
  if (IsIndependentTax) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shareneus",
3
- "version": "1.4.31",
3
+ "version": "1.4.33",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",