shareneus 1.4.17 → 1.4.19

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.
Files changed (29) hide show
  1. package/dist/services/auto-sales-receipt-pdf.service.js +1 -1
  2. package/dist/services/cn-print.service.js +2 -2
  3. package/dist/services/credit-note-pdf.service.js +1 -1
  4. package/dist/services/dc-landscape-pdf.service.js +1 -1
  5. package/dist/services/dc-landscape-without-price-pdf.service.js +1 -1
  6. package/dist/services/dc-without-price-pdf.service.js +1 -1
  7. package/dist/services/debit-note-pdf.service.js +1 -1
  8. package/dist/services/debit-note-print.service.js +2 -2
  9. package/dist/services/delivery-challan-pdf.service.js +1 -1
  10. package/dist/services/delivery-challan-print.service.js +2 -2
  11. package/dist/services/est.print-service.js +2 -2
  12. package/dist/services/hc-inv-pdf.service.js +1 -1
  13. package/dist/services/inv-pdf.service.js +1 -1
  14. package/dist/services/invoice-landscape-pdf.service.js +1 -1
  15. package/dist/services/invoice-letterhead-pdf.service.js +1 -1
  16. package/dist/services/issue-parts-pdf.service.js +1 -1
  17. package/dist/services/purchase-order-print.service.js +2 -2
  18. package/dist/services/ro-pdf.service.js +1 -1
  19. package/dist/services/ro-print-service.js +2 -2
  20. package/dist/services/sales-pdf.service.js +1 -1
  21. package/dist/services/sales-print.service.js +2 -2
  22. package/dist/services/sales-receipt-print.service.js +2 -2
  23. package/dist/services/shared-inv-pdf.service.js +1 -1
  24. package/dist/services/shared-pdf.service.js +19 -21
  25. package/dist/services/technician-pdf.service.js +1 -1
  26. package/dist/services/vendor-credit-note-print.service.js +2 -2
  27. package/dist/services/vendor-debit-note-pdf.service.js +1 -1
  28. package/dist/services/vendor-debit-note-print.service.js +2 -2
  29. package/package.json +1 -1
@@ -48,7 +48,7 @@ class SalesReceiptprintService {
48
48
  static CommonHeaderDetails(ROPrintData, text, isotherIndustry) {
49
49
  return [
50
50
  this.GetMainHeaderDetails(ROPrintData.Entity, ROPrintData.HeaderName, ROPrintData.Image, ROPrintData.HColor, ROPrintData.AColor, text),
51
- shared_pdf_service_1.SharedPDFService.GetCustomerAndVehicleDetails(ROPrintData._id, ROPrintData.CrDate, ROPrintData.PrDate, ROPrintData.MOut, ROPrintData.MIn, ROPrintData.Product, ROPrintData.PrintType, ROPrintData.For, ROPrintData.SurName, ROPrintData.SurPhone, ROPrintData.Type, ROPrintData.SurEmail, ROPrintData.InsComp, ROPrintData.PolNo, ROPrintData.PolType, ROPrintData.Customer, ROPrintData.IsProforma, ROPrintData.Settings, ROPrintData.Location, isotherIndustry, null, null, null, null),
51
+ shared_pdf_service_1.SharedPDFService.GetCustomerAndVehicleDetails(ROPrintData._id, ROPrintData.CrDate, ROPrintData.PrDate, ROPrintData.MOut, ROPrintData.MIn, ROPrintData.Product, ROPrintData.PrintType, ROPrintData.For, ROPrintData.SurName, ROPrintData.SurPhone, ROPrintData.Type, ROPrintData.SurEmail, ROPrintData.InsComp, ROPrintData.PolNo, ROPrintData.PolType, ROPrintData.Customer, ROPrintData.IsProforma, ROPrintData.Settings, ROPrintData.Location, isotherIndustry, null, null, null, null, ROPrintData.DoS),
52
52
  shared_pdf_service_1.SharedPDFService.GetOwnerDetails(ROPrintData.Cust, ROPrintData.Type, ROPrintData.For),
53
53
  shared_pdf_service_1.SharedPDFService.CustomerAndVehicleDetailsAfterLine(),
54
54
  shared_pdf_service_1.SharedPDFService.GetDisplayTable(),
@@ -20,8 +20,8 @@ class CNPrintService {
20
20
  InvoicePrintData.IsProforma = IsProforma;
21
21
  InvoicePrintData.Settings = tr_utils_1.TrUtils.Stringify(argInvoiceData.Settings);
22
22
  let SType;
23
- if (!tr_utils_1.TrUtils.IsNull(argInvoiceData.Settings) && !tr_utils_1.TrUtils.IsNull(argInvoiceData.Settings.PoS)) {
24
- SType = argInvoiceData.Settings.PoS.SType;
23
+ if (!tr_utils_1.TrUtils.IsNull(argInvoiceData.SType)) {
24
+ SType = argInvoiceData.SType;
25
25
  }
26
26
  InvoicePrintData = this.GetPrintConditionsBasedOnInput(InvoicePrintData, IncludeGST, ConsolidateGST, ForInsurance, SType, argInvoiceData, IsProforma);
27
27
  InvoicePrintData.Entity = shared_print_service_1.PrintSharedService.GetFormattedEntityDataForPrint(OriginalEntityData, "Invoice", OriginalInvoiceData);
@@ -39,7 +39,7 @@ class CreditNotePdfService {
39
39
  static CommonHeaderDetails(ROPrintData) {
40
40
  return [
41
41
  this.GetMainHeaderDetails(ROPrintData.Entity, ROPrintData.HeaderName, ROPrintData.Image, ROPrintData.HColor, ROPrintData.AColor),
42
- shared_pdf_service_1.SharedPDFService.GetCustomerAndVehicleDetails(ROPrintData._id, ROPrintData.CrDate, ROPrintData.PrDate, ROPrintData.MOut, ROPrintData.MIn, ROPrintData.Product, ROPrintData.PrintType, ROPrintData.For, ROPrintData.SurName, ROPrintData.SurPhone, ROPrintData.Type, ROPrintData.SurEmail, ROPrintData.InsComp, ROPrintData.PolNo, ROPrintData.PolType, ROPrintData.Customer, ROPrintData.IsProforma, ROPrintData.Settings, null, false, null, null, null, null),
42
+ shared_pdf_service_1.SharedPDFService.GetCustomerAndVehicleDetails(ROPrintData._id, ROPrintData.CrDate, ROPrintData.PrDate, ROPrintData.MOut, ROPrintData.MIn, ROPrintData.Product, ROPrintData.PrintType, ROPrintData.For, ROPrintData.SurName, ROPrintData.SurPhone, ROPrintData.Type, ROPrintData.SurEmail, ROPrintData.InsComp, ROPrintData.PolNo, ROPrintData.PolType, ROPrintData.Customer, ROPrintData.IsProforma, ROPrintData.Settings, null, false, null, null, null, null, ROPrintData.DoS),
43
43
  shared_pdf_service_1.SharedPDFService.GetOwnerDetails(ROPrintData.Cust, ROPrintData.Type, ROPrintData.For),
44
44
  shared_pdf_service_1.SharedPDFService.CustomerAndVehicleDetailsAfterLine(),
45
45
  shared_pdf_service_1.SharedPDFService.GetDisplayTable(),
@@ -85,7 +85,7 @@ class DCLandscapePdfService {
85
85
  ]
86
86
  },
87
87
  shared_pdf_service_1.SharedPDFService.GetCustomer(ROPrintData.Customer, ROPrintData.Type, ROPrintData.For, ROPrintData.Product, ROPrintData.Settings, 'Customer Name & Address', false),
88
- shared_pdf_service_1.SharedPDFService.GetVehicleDetails(ROPrintData.Type, ROPrintData._id, ROPrintData.CrDate, ROPrintData.PrDate, ROPrintData.MOut, ROPrintData.MIn, ROPrintData.Product, ROPrintData.PrintType, ROPrintData.IsProforma, ROPrintData.Settings, false, ROPrintData.BL, null, null, null)
88
+ shared_pdf_service_1.SharedPDFService.GetVehicleDetails(ROPrintData.Type, ROPrintData._id, ROPrintData.CrDate, ROPrintData.PrDate, ROPrintData.MOut, ROPrintData.MIn, ROPrintData.Product, ROPrintData.PrintType, ROPrintData.IsProforma, ROPrintData.Settings, false, ROPrintData.BL, null, null, null, ROPrintData.DoS)
89
89
  ],
90
90
  ]
91
91
  },
@@ -89,7 +89,7 @@ class DCLandscapeWithoutPricePdfService {
89
89
  ]
90
90
  },
91
91
  shared_pdf_service_1.SharedPDFService.GetCustomer(ROPrintData.Customer, ROPrintData.Type, ROPrintData.For, ROPrintData.Product, ROPrintData.Settings, 'Customer Name & Address', false),
92
- shared_pdf_service_1.SharedPDFService.GetVehicleDetails(ROPrintData.Type, ROPrintData._id, ROPrintData.CrDate, ROPrintData.PrDate, ROPrintData.MOut, ROPrintData.MIn, ROPrintData.Product, ROPrintData.PrintType, ROPrintData.IsProforma, ROPrintData.Settings, false, ROPrintData.BL, null, null, null)
92
+ shared_pdf_service_1.SharedPDFService.GetVehicleDetails(ROPrintData.Type, ROPrintData._id, ROPrintData.CrDate, ROPrintData.PrDate, ROPrintData.MOut, ROPrintData.MIn, ROPrintData.Product, ROPrintData.PrintType, ROPrintData.IsProforma, ROPrintData.Settings, false, ROPrintData.BL, null, null, null, ROPrintData.DoS)
93
93
  ],
94
94
  ]
95
95
  },
@@ -44,7 +44,7 @@ class DCWithoutPricePdfService {
44
44
  static CommonHeaderDetails(ROPrintData, text) {
45
45
  return [
46
46
  this.GetMainHeaderDetails(ROPrintData.Entity, ROPrintData.HeaderName, ROPrintData.Image, ROPrintData.HColor, ROPrintData.AColor, text),
47
- shared_pdf_service_1.SharedPDFService.GetCustomerAndVehicleDetails(ROPrintData._id, ROPrintData.CrDate, ROPrintData.PrDate, ROPrintData.MOut, ROPrintData.MIn, ROPrintData.Product, ROPrintData.PrintType, ROPrintData.For, ROPrintData.SurName, ROPrintData.SurPhone, ROPrintData.Type, ROPrintData.SurEmail, ROPrintData.InsComp, ROPrintData.PolNo, ROPrintData.PolType, ROPrintData.Customer, ROPrintData.IsProforma, ROPrintData.Settings, null, false, ROPrintData.BL, null, null, null),
47
+ shared_pdf_service_1.SharedPDFService.GetCustomerAndVehicleDetails(ROPrintData._id, ROPrintData.CrDate, ROPrintData.PrDate, ROPrintData.MOut, ROPrintData.MIn, ROPrintData.Product, ROPrintData.PrintType, ROPrintData.For, ROPrintData.SurName, ROPrintData.SurPhone, ROPrintData.Type, ROPrintData.SurEmail, ROPrintData.InsComp, ROPrintData.PolNo, ROPrintData.PolType, ROPrintData.Customer, ROPrintData.IsProforma, ROPrintData.Settings, null, false, ROPrintData.BL, null, null, null, ROPrintData.DoS),
48
48
  shared_pdf_service_1.SharedPDFService.GetOwnerDetails(ROPrintData.Cust, ROPrintData.Type, ROPrintData.For),
49
49
  shared_pdf_service_1.SharedPDFService.CustomerAndVehicleDetailsAfterLine(),
50
50
  shared_pdf_service_1.SharedPDFService.GetDisplayTable(),
@@ -39,7 +39,7 @@ class DebitNotePdfService {
39
39
  static CommonHeaderDetails(ROPrintData) {
40
40
  return [
41
41
  this.GetMainHeaderDetails(ROPrintData.Entity, ROPrintData.HeaderName, ROPrintData.Image, ROPrintData.HColor, ROPrintData.AColor),
42
- shared_pdf_service_1.SharedPDFService.GetCustomerAndVehicleDetails(ROPrintData._id, ROPrintData.CrDate, ROPrintData.PrDate, ROPrintData.MOut, ROPrintData.MIn, ROPrintData.Product, ROPrintData.PrintType, ROPrintData.For, ROPrintData.SurName, ROPrintData.SurPhone, ROPrintData.Type, ROPrintData.SurEmail, ROPrintData.InsComp, ROPrintData.PolNo, ROPrintData.PolType, ROPrintData.Customer, ROPrintData.IsProforma, ROPrintData.Settings, null, false, null, null, null, null),
42
+ shared_pdf_service_1.SharedPDFService.GetCustomerAndVehicleDetails(ROPrintData._id, ROPrintData.CrDate, ROPrintData.PrDate, ROPrintData.MOut, ROPrintData.MIn, ROPrintData.Product, ROPrintData.PrintType, ROPrintData.For, ROPrintData.SurName, ROPrintData.SurPhone, ROPrintData.Type, ROPrintData.SurEmail, ROPrintData.InsComp, ROPrintData.PolNo, ROPrintData.PolType, ROPrintData.Customer, ROPrintData.IsProforma, ROPrintData.Settings, null, false, null, null, null, null, ROPrintData.DoS),
43
43
  shared_pdf_service_1.SharedPDFService.CustomerAndVehicleDetailsAfterLine(),
44
44
  shared_pdf_service_1.SharedPDFService.GetDisplayTable(),
45
45
  ];
@@ -19,8 +19,8 @@ class DebitNotePrintService {
19
19
  InvoicePrintData.IsProforma = IsProforma;
20
20
  InvoicePrintData.Settings = tr_utils_1.TrUtils.Stringify(argInvoiceData.Settings);
21
21
  let SType;
22
- if (!tr_utils_1.TrUtils.IsNull(argInvoiceData.Settings) && !tr_utils_1.TrUtils.IsNull(argInvoiceData.Settings.PoS)) {
23
- SType = argInvoiceData.Settings.PoS.SType;
22
+ if (!tr_utils_1.TrUtils.IsNull(argInvoiceData.SType)) {
23
+ SType = argInvoiceData.SType;
24
24
  }
25
25
  InvoicePrintData = this.GetPrintConditionsBasedOnInput(InvoicePrintData, IncludeGST, ConsolidateGST, SType, argInvoiceData, IsProforma, IsCustBillTo);
26
26
  InvoicePrintData.Entity = shared_print_service_1.PrintSharedService.GetFormattedEntityDataForPrint(OriginalEntityData, "Invoice", OriginalInvoiceData);
@@ -44,7 +44,7 @@ class DeliveryChallanPdfService {
44
44
  static CommonHeaderDetails(ROPrintData, text) {
45
45
  return [
46
46
  this.GetMainHeaderDetails(ROPrintData.Entity, ROPrintData.HeaderName, ROPrintData.Image, ROPrintData.HColor, ROPrintData.AColor, text),
47
- shared_pdf_service_1.SharedPDFService.GetCustomerAndVehicleDetails(ROPrintData._id, ROPrintData.CrDate, ROPrintData.PrDate, ROPrintData.MOut, ROPrintData.MIn, ROPrintData.Product, ROPrintData.PrintType, ROPrintData.For, ROPrintData.SurName, ROPrintData.SurPhone, ROPrintData.Type, ROPrintData.SurEmail, ROPrintData.InsComp, ROPrintData.PolNo, ROPrintData.PolType, ROPrintData.Customer, ROPrintData.IsProforma, ROPrintData.Settings, null, false, ROPrintData.BL, null, null, null),
47
+ shared_pdf_service_1.SharedPDFService.GetCustomerAndVehicleDetails(ROPrintData._id, ROPrintData.CrDate, ROPrintData.PrDate, ROPrintData.MOut, ROPrintData.MIn, ROPrintData.Product, ROPrintData.PrintType, ROPrintData.For, ROPrintData.SurName, ROPrintData.SurPhone, ROPrintData.Type, ROPrintData.SurEmail, ROPrintData.InsComp, ROPrintData.PolNo, ROPrintData.PolType, ROPrintData.Customer, ROPrintData.IsProforma, ROPrintData.Settings, null, false, ROPrintData.BL, null, null, null, ROPrintData.DoS),
48
48
  shared_pdf_service_1.SharedPDFService.GetOwnerDetails(ROPrintData.Cust, ROPrintData.Type, ROPrintData.For),
49
49
  shared_pdf_service_1.SharedPDFService.CustomerAndVehicleDetailsAfterLine(),
50
50
  shared_pdf_service_1.SharedPDFService.GetDisplayTable(),
@@ -19,8 +19,8 @@ class DeliveryChallanPrintService {
19
19
  InvoicePrintData.IsProforma = IsProforma;
20
20
  InvoicePrintData.Settings = tr_utils_1.TrUtils.Stringify(argInvoiceData.Settings);
21
21
  let SType;
22
- if (!tr_utils_1.TrUtils.IsNull(argInvoiceData.Settings) && !tr_utils_1.TrUtils.IsNull(argInvoiceData.Settings.PoS)) {
23
- SType = argInvoiceData.Settings.PoS.SType;
22
+ if (!tr_utils_1.TrUtils.IsNull(argInvoiceData.SType)) {
23
+ SType = argInvoiceData.SType;
24
24
  }
25
25
  InvoicePrintData = this.GetPrintConditionsBasedOnInput(InvoicePrintData, IncludeGST, ConsolidateGST, SType, argInvoiceData, IsProforma);
26
26
  InvoicePrintData.Entity = shared_print_service_1.PrintSharedService.GetFormattedEntityDataForPrint(OriginalEntityData, "Delivery Challan", OriginalInvoiceData);
@@ -19,8 +19,8 @@ class EstPrintService {
19
19
  let IncludeGST = tr_utils_1.TrUtils.isTaxable(argROData.Settings.Tax);
20
20
  ROPrintData = this.GetROBasicDetailsForPrint(ROPrintData, argROData, OriginalVehicleData, OverallEst, isInitial);
21
21
  let SType;
22
- if (!tr_utils_1.TrUtils.IsNull(OriginalROData.Settings) && !tr_utils_1.TrUtils.IsNull(OriginalROData.Settings.PoS)) {
23
- SType = OriginalROData.Settings.PoS.SType;
22
+ if (!tr_utils_1.TrUtils.IsNull(OriginalROData.SType)) {
23
+ SType = OriginalROData.SType;
24
24
  }
25
25
  ROPrintData = this.GetPrintConditionsBasedOnInput(ROPrintData, IncludeGST, Payee, AsCustomerOnly, AsInsuranceOnly, AsCustomerAndInsurance, AsInsuranceOrCustomer, SType, Consolidate);
26
26
  ROPrintData.Entity = shared_print_service_1.PrintSharedService.GetFormattedEntityDataForPrint(OriginalEntityData, "Estimate", OriginalROData);
@@ -70,7 +70,7 @@ class HCInvoiceprintService {
70
70
  static CommonHeaderDetails(ROPrintData, text, isotherIndustry) {
71
71
  return [
72
72
  this.GetMainHeaderDetails(ROPrintData.Entity, ROPrintData.HeaderName, ROPrintData.Image, ROPrintData.HColor, ROPrintData.AColor, text),
73
- shared_pdf_service_1.SharedPDFService.GetCustomerAndVehicleDetails(ROPrintData._id, ROPrintData.CrDate, ROPrintData.PrDate, ROPrintData.MOut, ROPrintData.MIn, ROPrintData.Product, ROPrintData.PrintType, ROPrintData.For, ROPrintData.SurName, ROPrintData.SurPhone, ROPrintData.Type, ROPrintData.SurEmail, ROPrintData.InsComp, ROPrintData.PolNo, ROPrintData.PolType, ROPrintData.Customer, ROPrintData.IsProforma, null, ROPrintData.Location, isotherIndustry, ROPrintData.BL, ROPrintData.ROCode, ROPrintData.TypeName, ROPrintData.AdmNo),
73
+ shared_pdf_service_1.SharedPDFService.GetCustomerAndVehicleDetails(ROPrintData._id, ROPrintData.CrDate, ROPrintData.PrDate, ROPrintData.MOut, ROPrintData.MIn, ROPrintData.Product, ROPrintData.PrintType, ROPrintData.For, ROPrintData.SurName, ROPrintData.SurPhone, ROPrintData.Type, ROPrintData.SurEmail, ROPrintData.InsComp, ROPrintData.PolNo, ROPrintData.PolType, ROPrintData.Customer, ROPrintData.IsProforma, null, ROPrintData.Location, isotherIndustry, ROPrintData.BL, ROPrintData.ROCode, ROPrintData.TypeName, ROPrintData.AdmNo, ROPrintData.DoS),
74
74
  shared_pdf_service_1.SharedPDFService.GetOwnerDetails(ROPrintData.Cust, ROPrintData.Type, ROPrintData.For),
75
75
  this.CustomerAndVehicleDetailsAfterLine(),
76
76
  shared_pdf_service_1.SharedPDFService.GetDisplayTable(),
@@ -57,7 +57,7 @@ class InvoiceprintService {
57
57
  static CommonHeaderDetails(ROPrintData, text, isotherIndustry) {
58
58
  return [
59
59
  this.GetMainHeaderDetails(ROPrintData.Entity, ROPrintData.HeaderName, ROPrintData.Image, ROPrintData.HColor, ROPrintData.AColor, text),
60
- shared_pdf_service_1.SharedPDFService.GetCustomerAndVehicleDetails(ROPrintData._id, ROPrintData.CrDate, ROPrintData.PrDate, ROPrintData.MOut, ROPrintData.MIn, ROPrintData.Product, ROPrintData.PrintType, ROPrintData.For, ROPrintData.SurName, ROPrintData.SurPhone, ROPrintData.Type, ROPrintData.SurEmail, ROPrintData.InsComp, ROPrintData.PolNo, ROPrintData.PolType, ROPrintData.Customer, ROPrintData.IsProforma, ROPrintData.Settings, ROPrintData.Location, isotherIndustry, ROPrintData.BL, ROPrintData.ROCode, ROPrintData.TypeName, ROPrintData.AdmNo),
60
+ shared_pdf_service_1.SharedPDFService.GetCustomerAndVehicleDetails(ROPrintData._id, ROPrintData.CrDate, ROPrintData.PrDate, ROPrintData.MOut, ROPrintData.MIn, ROPrintData.Product, ROPrintData.PrintType, ROPrintData.For, ROPrintData.SurName, ROPrintData.SurPhone, ROPrintData.Type, ROPrintData.SurEmail, ROPrintData.InsComp, ROPrintData.PolNo, ROPrintData.PolType, ROPrintData.Customer, ROPrintData.IsProforma, ROPrintData.Settings, ROPrintData.Location, isotherIndustry, ROPrintData.BL, ROPrintData.ROCode, ROPrintData.TypeName, ROPrintData.AdmNo, ROPrintData.DoS),
61
61
  shared_pdf_service_1.SharedPDFService.GetOwnerDetails(ROPrintData.Cust, ROPrintData.Type, ROPrintData.For),
62
62
  shared_pdf_service_1.SharedPDFService.CustomerAndVehicleDetailsAfterLine(),
63
63
  shared_pdf_service_1.SharedPDFService.GetDisplayTable(),
@@ -85,7 +85,7 @@ class InvoiceLandscapePdfService {
85
85
  ]
86
86
  },
87
87
  shared_pdf_service_1.SharedPDFService.GetCustomer(ROPrintData.Customer, ROPrintData.Type, ROPrintData.For, ROPrintData.Product, ROPrintData.Settings, 'Customer Name & Address', false),
88
- shared_pdf_service_1.SharedPDFService.GetVehicleDetails(ROPrintData.Type, ROPrintData._id, ROPrintData.CrDate, ROPrintData.PrDate, ROPrintData.MOut, ROPrintData.MIn, ROPrintData.Product, ROPrintData.PrintType, ROPrintData.IsProforma, ROPrintData.Settings, false, ROPrintData.BL, null, null, null)
88
+ shared_pdf_service_1.SharedPDFService.GetVehicleDetails(ROPrintData.Type, ROPrintData._id, ROPrintData.CrDate, ROPrintData.PrDate, ROPrintData.MOut, ROPrintData.MIn, ROPrintData.Product, ROPrintData.PrintType, ROPrintData.IsProforma, ROPrintData.Settings, false, ROPrintData.BL, null, null, null, ROPrintData.DoS)
89
89
  ],
90
90
  ]
91
91
  },
@@ -57,7 +57,7 @@ class InvoiceLetterheadPdfService {
57
57
  static CommonHeaderDetails(ROPrintData, text, isotherIndustry) {
58
58
  return [
59
59
  this.GetMainHeaderDetails(ROPrintData.Entity, ROPrintData.HeaderName, ROPrintData.Image, ROPrintData.HColor, ROPrintData.AColor, text),
60
- shared_pdf_service_1.SharedPDFService.GetCustomerAndVehicleDetails(ROPrintData._id, ROPrintData.CrDate, ROPrintData.PrDate, ROPrintData.MOut, ROPrintData.MIn, ROPrintData.Product, ROPrintData.PrintType, ROPrintData.For, ROPrintData.SurName, ROPrintData.SurPhone, ROPrintData.Type, ROPrintData.SurEmail, ROPrintData.InsComp, ROPrintData.PolNo, ROPrintData.PolType, ROPrintData.Customer, ROPrintData.IsProforma, ROPrintData.Settings, ROPrintData.Location, isotherIndustry, ROPrintData.BL, ROPrintData.ROCode, ROPrintData.TypeName, ROPrintData.AdmNo),
60
+ shared_pdf_service_1.SharedPDFService.GetCustomerAndVehicleDetails(ROPrintData._id, ROPrintData.CrDate, ROPrintData.PrDate, ROPrintData.MOut, ROPrintData.MIn, ROPrintData.Product, ROPrintData.PrintType, ROPrintData.For, ROPrintData.SurName, ROPrintData.SurPhone, ROPrintData.Type, ROPrintData.SurEmail, ROPrintData.InsComp, ROPrintData.PolNo, ROPrintData.PolType, ROPrintData.Customer, ROPrintData.IsProforma, ROPrintData.Settings, ROPrintData.Location, isotherIndustry, ROPrintData.BL, ROPrintData.ROCode, ROPrintData.TypeName, ROPrintData.AdmNo, ROPrintData.DoS),
61
61
  shared_pdf_service_1.SharedPDFService.GetOwnerDetails(ROPrintData.Cust, ROPrintData.Type, ROPrintData.For),
62
62
  shared_pdf_service_1.SharedPDFService.CustomerAndVehicleDetailsAfterLine(),
63
63
  shared_pdf_service_1.SharedPDFService.GetDisplayTable(),
@@ -48,7 +48,7 @@ class IssuePartsprintService {
48
48
  static CommonHeaderDetails(ROPrintData, text, isotherIndustry) {
49
49
  return [
50
50
  this.GetMainHeaderDetails(ROPrintData.Entity, ROPrintData.HeaderName, ROPrintData.Image, ROPrintData.HColor, ROPrintData.AColor, text),
51
- shared_pdf_service_1.SharedPDFService.GetCustomerAndVehicleDetails(ROPrintData._id, ROPrintData.CrDate, ROPrintData.PrDate, ROPrintData.MOut, ROPrintData.MIn, ROPrintData.Product, ROPrintData.PrintType, ROPrintData.For, ROPrintData.SurName, ROPrintData.SurPhone, ROPrintData.Type, ROPrintData.SurEmail, ROPrintData.InsComp, ROPrintData.PolNo, ROPrintData.PolType, ROPrintData.Customer, ROPrintData.IsProforma, ROPrintData.Settings, ROPrintData.Location, isotherIndustry, ROPrintData.BL, ROPrintData.ROCode, ROPrintData.TypeName, null),
51
+ shared_pdf_service_1.SharedPDFService.GetCustomerAndVehicleDetails(ROPrintData._id, ROPrintData.CrDate, ROPrintData.PrDate, ROPrintData.MOut, ROPrintData.MIn, ROPrintData.Product, ROPrintData.PrintType, ROPrintData.For, ROPrintData.SurName, ROPrintData.SurPhone, ROPrintData.Type, ROPrintData.SurEmail, ROPrintData.InsComp, ROPrintData.PolNo, ROPrintData.PolType, ROPrintData.Customer, ROPrintData.IsProforma, ROPrintData.Settings, ROPrintData.Location, isotherIndustry, ROPrintData.BL, ROPrintData.ROCode, ROPrintData.TypeName, null, ROPrintData.DoS),
52
52
  shared_pdf_service_1.SharedPDFService.GetOwnerDetails(ROPrintData.Cust, ROPrintData.Type, ROPrintData.For),
53
53
  shared_pdf_service_1.SharedPDFService.CustomerAndVehicleDetailsAfterLine(),
54
54
  shared_pdf_service_1.SharedPDFService.GetDisplayTable(),
@@ -23,8 +23,8 @@ class PurchaseOrderPrintService {
23
23
  PurchaseOrderPDFData.HasTaxIncluded = false;
24
24
  PurchaseOrderPDFData.HideDiscountColumn = false;
25
25
  let SType;
26
- if (!tr_utils_1.TrUtils.IsNull(argPurchaseOrderData.Settings) && !tr_utils_1.TrUtils.IsNull(argPurchaseOrderData.Settings.PoS)) {
27
- SType = argPurchaseOrderData.Settings.PoS.SType;
26
+ if (!tr_utils_1.TrUtils.IsNull(argPurchaseOrderData.SType)) {
27
+ SType = argPurchaseOrderData.SType;
28
28
  }
29
29
  // PurchaseOrderPDFData.HasNoTax = (PurchaseOrderData.Tax === 1) ? true : false;
30
30
  PurchaseOrderPDFData.HasNoTax = false;
@@ -13,7 +13,7 @@ class RoprintService {
13
13
  this.GetMainHeaderDetails(ROPrintData.Entity, ROPrintData.HeaderName, ROPrintData.Image, ROPrintData.HColor, ROPrintData.AColor, text),
14
14
  // this.GetHeaderDetails(ROPrintData.HeaderName, ROPrintData.Entity, ROPrintData.Image),
15
15
  // SharedPDFService.HeaderAfterLine()
16
- shared_pdf_service_1.SharedPDFService.GetCustomerAndVehicleDetails(ROPrintData._id, ROPrintData.CrDate, ROPrintData.PrDate, ROPrintData.MOut, ROPrintData.MIn, ROPrintData.Vehicle, ROPrintData.Type, ROPrintData.Payee, ROPrintData.SurName, ROPrintData.SurPhone, ROPrintData.Type, ROPrintData.SurEmail, ROPrintData.InsComp, ROPrintData.PolNo, ROPrintData.PolType, ROPrintData.Customer, false, ROPrintData.Settings, ROPrintData.Location, isOtherIndustry, null, null, null, null),
16
+ shared_pdf_service_1.SharedPDFService.GetCustomerAndVehicleDetails(ROPrintData._id, ROPrintData.CrDate, ROPrintData.PrDate, ROPrintData.MOut, ROPrintData.MIn, ROPrintData.Vehicle, ROPrintData.Type, ROPrintData.Payee, ROPrintData.SurName, ROPrintData.SurPhone, ROPrintData.Type, ROPrintData.SurEmail, ROPrintData.InsComp, ROPrintData.PolNo, ROPrintData.PolType, ROPrintData.Customer, false, ROPrintData.Settings, ROPrintData.Location, isOtherIndustry, null, null, null, null, ROPrintData.DoS),
17
17
  shared_pdf_service_1.SharedPDFService.CustomerAndVehicleDetailsAfterLine(),
18
18
  shared_pdf_service_1.SharedPDFService.GetDisplayTable()
19
19
  ];
@@ -20,8 +20,8 @@ class ROPrintService {
20
20
  argROData.Settings.Tax = 'NO';
21
21
  }
22
22
  let SType;
23
- if (!tr_utils_1.TrUtils.IsNull(OriginalROData.Settings) && !tr_utils_1.TrUtils.IsNull(OriginalROData.Settings.PoS)) {
24
- SType = OriginalROData.Settings.PoS.SType;
23
+ if (!tr_utils_1.TrUtils.IsNull(OriginalROData.SType)) {
24
+ SType = OriginalROData.SType;
25
25
  }
26
26
  ROPrintData = this.GetROBasicDetailsForPrint(ROPrintData, argROData, OriginalVehicleData, OrderType);
27
27
  ROPrintData = this.GetPrintConditionsBasedOnInput(ROPrintData, IncludeGST, ConsolidateGST, Payee, AsCustomerOnly, AsInsuranceOnly, SType);
@@ -50,7 +50,7 @@ class SalesPdfService {
50
50
  static CommonHeaderDetails(ROPrintData, text) {
51
51
  return [
52
52
  this.GetMainHeaderDetails(ROPrintData.Entity, ROPrintData.HeaderName, ROPrintData.Image, ROPrintData.HColor, ROPrintData.AColor, text),
53
- shared_pdf_service_1.SharedPDFService.GetSOCustomerAndOthDetails(ROPrintData._id, ROPrintData.CrDate, ROPrintData.PrDate, ROPrintData.PrintType, ROPrintData.For, ROPrintData.SurName, ROPrintData.SurPhone, ROPrintData.Type, ROPrintData.SurEmail, ROPrintData.ShippmentTo, ROPrintData.PolNo, ROPrintData.PolType, ROPrintData.Customer, ROPrintData.Settings, ROPrintData.RefNo, null, null, null, null, null),
53
+ shared_pdf_service_1.SharedPDFService.GetSOCustomerAndOthDetails(ROPrintData._id, ROPrintData.CrDate, ROPrintData.PrDate, ROPrintData.PrintType, ROPrintData.For, ROPrintData.SurName, ROPrintData.SurPhone, ROPrintData.Type, ROPrintData.SurEmail, ROPrintData.ShippmentTo, ROPrintData.PolNo, ROPrintData.PolType, ROPrintData.Customer, ROPrintData.DoS, ROPrintData.RefNo, null, null, null, null, null),
54
54
  shared_pdf_service_1.SharedPDFService.GetOwnerDetails(ROPrintData.Cust, ROPrintData.Type, ROPrintData.For),
55
55
  shared_pdf_service_1.SharedPDFService.CustomerAndVehicleDetailsAfterLine(),
56
56
  shared_pdf_service_1.SharedPDFService.GetDisplayTable(),
@@ -20,8 +20,8 @@ class SalesPrintService {
20
20
  InvoicePrintData.IsProforma = IsProforma;
21
21
  InvoicePrintData.Settings = tr_utils_1.TrUtils.Stringify(argInvoiceData.Settings);
22
22
  let SType;
23
- if (!tr_utils_1.TrUtils.IsNull(OriginalInvoiceData.Settings) && !tr_utils_1.TrUtils.IsNull(OriginalInvoiceData.Settings.PoS)) {
24
- SType = OriginalInvoiceData.Settings.PoS.SType;
23
+ if (!tr_utils_1.TrUtils.IsNull(OriginalInvoiceData.SType)) {
24
+ SType = OriginalInvoiceData.SType;
25
25
  }
26
26
  InvoicePrintData = this.GetPrintConditionsBasedOnInput(InvoicePrintData, IncludeGST, ConsolidateGST, ForInsurance, SType, argInvoiceData, IsProforma);
27
27
  InvoicePrintData.Entity = shared_print_service_1.PrintSharedService.GetFormattedEntityDataForPrint(OriginalEntityData, OriginalInvoiceData.Type, OriginalInvoiceData);
@@ -22,8 +22,8 @@ class SaleReceiptPrintService {
22
22
  InvoicePrintData.IsProforma = IsProforma;
23
23
  InvoicePrintData.Settings = tr_utils_1.TrUtils.Stringify(argInvoiceData.Settings);
24
24
  let SType;
25
- if (!tr_utils_1.TrUtils.IsNull(argInvoiceData.Settings) && !tr_utils_1.TrUtils.IsNull(argInvoiceData.Settings.PoS)) {
26
- SType = argInvoiceData.Settings.PoS.SType;
25
+ if (!tr_utils_1.TrUtils.IsNull(argInvoiceData.SType)) {
26
+ SType = argInvoiceData.SType;
27
27
  }
28
28
  InvoicePrintData = this.GetPrintConditionsBasedOnInput(InvoicePrintData, IncludeGST, ConsolidateGST, ForInsurance, SType, argInvoiceData, IsProforma);
29
29
  InvoicePrintData.Entity = shared_print_service_1.PrintSharedService.GetFormattedEntityDataForPrint(OriginalEntityData, "Invoice", OriginalInvoiceData);
@@ -48,7 +48,7 @@ class SharedInvoiceprintService {
48
48
  static CommonHeaderDetails(ROPrintData, text, isotherIndustry) {
49
49
  return [
50
50
  this.GetMainHeaderDetails(ROPrintData.Entity, ROPrintData.HeaderName, ROPrintData.Image, ROPrintData.HColor, ROPrintData.AColor, text),
51
- shared_pdf_service_1.SharedPDFService.GetCustomerAndVehicleDetails(ROPrintData._id, ROPrintData.CrDate, ROPrintData.PrDate, ROPrintData.MOut, ROPrintData.MIn, ROPrintData.Product, ROPrintData.PrintType, ROPrintData.For, ROPrintData.SurName, ROPrintData.SurPhone, ROPrintData.Type, ROPrintData.SurEmail, ROPrintData.InsComp, ROPrintData.PolNo, ROPrintData.PolType, ROPrintData.Customer, ROPrintData.IsProforma, ROPrintData.Settings, ROPrintData.Location, isotherIndustry, ROPrintData.BL, ROPrintData.ROCode, ROPrintData.TypeName, null),
51
+ shared_pdf_service_1.SharedPDFService.GetCustomerAndVehicleDetails(ROPrintData._id, ROPrintData.CrDate, ROPrintData.PrDate, ROPrintData.MOut, ROPrintData.MIn, ROPrintData.Product, ROPrintData.PrintType, ROPrintData.For, ROPrintData.SurName, ROPrintData.SurPhone, ROPrintData.Type, ROPrintData.SurEmail, ROPrintData.InsComp, ROPrintData.PolNo, ROPrintData.PolType, ROPrintData.Customer, ROPrintData.IsProforma, ROPrintData.Settings, ROPrintData.Location, isotherIndustry, ROPrintData.BL, ROPrintData.ROCode, ROPrintData.TypeName, null, ROPrintData.DoS),
52
52
  shared_pdf_service_1.SharedPDFService.GetOwnerDetails(ROPrintData.Cust, ROPrintData.Type, ROPrintData.For),
53
53
  shared_pdf_service_1.SharedPDFService.CustomerAndVehicleDetailsAfterLine(),
54
54
  shared_pdf_service_1.SharedPDFService.GetDisplayTable(),
@@ -131,7 +131,6 @@ class SharedPDFService {
131
131
  return Details;
132
132
  }
133
133
  static GetWatermarkImage(Image, pageSize, Wmark) {
134
- console.log(Image, Wmark);
135
134
  if (!tr_utils_1.TrUtils.IsNull(Image) && Wmark) {
136
135
  return {
137
136
  margun: [10, 15, 10, 15],
@@ -729,14 +728,14 @@ class SharedPDFService {
729
728
  });
730
729
  return body;
731
730
  }
732
- static GetCustomerAndVehicleDetails(Id, CrDate, PrDate, MOut, MIn, Vehicle, PrintType, For, SurName, SurPhone, Type, SurEmail, InsComp, PolNo, PolType, Customer, IsProforma, Settings, Location, isOtherIndustry, BL, ROCode, TypeName, AdmNo) {
731
+ static GetCustomerAndVehicleDetails(Id, CrDate, PrDate, MOut, MIn, Vehicle, PrintType, For, SurName, SurPhone, Type, SurEmail, InsComp, PolNo, PolType, Customer, IsProforma, Settings, Location, isOtherIndustry, BL, ROCode, TypeName, AdmNo, DoS) {
733
732
  return {
734
733
  style: 'textcust',
735
734
  marginLeft: 5,
736
735
  columns: [
737
736
  this.GetCustomer(Customer, Type, For, Vehicle, Settings, 'Bill To', isOtherIndustry),
738
737
  this.GetInsurence(For, SurName, SurPhone, Type, SurEmail, InsComp, PolNo, PolType, Location, isOtherIndustry),
739
- this.GetVehicle(Type, Id, CrDate, PrDate, MOut, MIn, Vehicle, PrintType, For, IsProforma, Settings, isOtherIndustry, BL, ROCode, TypeName, AdmNo)
738
+ this.GetVehicle(Type, Id, CrDate, PrDate, MOut, MIn, Vehicle, PrintType, For, IsProforma, Settings, isOtherIndustry, BL, ROCode, TypeName, AdmNo, DoS)
740
739
  ],
741
740
  };
742
741
  }
@@ -751,14 +750,14 @@ class SharedPDFService {
751
750
  ],
752
751
  };
753
752
  }
754
- static GetSOCustomerAndOthDetails(Id, CrDate, PrDate, PrintType, For, SurName, SurPhone, Type, SurEmail, Shipment, PolNo, PolType, Customer, Settings, RefNo, IsPackage, PackId, PackedDate, ShipId, ShippedDate) {
753
+ static GetSOCustomerAndOthDetails(Id, CrDate, PrDate, PrintType, For, SurName, SurPhone, Type, SurEmail, Shipment, PolNo, PolType, Customer, DoS, RefNo, IsPackage, PackId, PackedDate, ShipId, ShippedDate) {
755
754
  return {
756
755
  style: 'textcust',
757
756
  marginLeft: 5,
758
757
  stack: [{
759
758
  columns: [{ text: 'SO# : ' + this.CheckAndSetString(Id) },
760
759
  { text: 'Date : ' + this.CheckAndSetString(CrDate) },
761
- { text: 'Place Of Supply : ' + this.GetStateName(Settings.PoS) }]
760
+ { text: 'Place Of Supply : ' + this.GetStateName(DoS) }]
762
761
  },
763
762
  this.CustomerDetails(Customer, Type, For, null, null, Shipment)],
764
763
  };
@@ -826,12 +825,12 @@ class SharedPDFService {
826
825
  return { text: '', width: 70 };
827
826
  }
828
827
  }
829
- static GetVehicle(Type, Id, CrDate, PrDate, MOut, MIn, Vehicle, PrintType, For, IsProforma, Settings, isOtherIndustry, BL, ROCode, TypeName, AdmNo) {
828
+ static GetVehicle(Type, Id, CrDate, PrDate, MOut, MIn, Vehicle, PrintType, For, IsProforma, Settings, isOtherIndustry, BL, ROCode, TypeName, AdmNo, DoS) {
830
829
  if (For === enums_1.PayTypeEnum.Insurance) {
831
- return { stack: [this.GetVehicleDetails(Type, Id, CrDate, PrDate, MOut, MIn, Vehicle, PrintType, IsProforma, Settings, isOtherIndustry, BL, ROCode, TypeName, AdmNo)], width: 200 };
830
+ return { stack: [this.GetVehicleDetails(Type, Id, CrDate, PrDate, MOut, MIn, Vehicle, PrintType, IsProforma, Settings, isOtherIndustry, BL, ROCode, TypeName, AdmNo, DoS)], width: 200 };
832
831
  }
833
832
  else {
834
- return { stack: [this.GetVehicleDetails(Type, Id, CrDate, PrDate, MOut, MIn, Vehicle, PrintType, IsProforma, Settings, isOtherIndustry, BL, ROCode, TypeName, AdmNo)], width: 250 };
833
+ return { stack: [this.GetVehicleDetails(Type, Id, CrDate, PrDate, MOut, MIn, Vehicle, PrintType, IsProforma, Settings, isOtherIndustry, BL, ROCode, TypeName, AdmNo, DoS)], width: 250 };
835
834
  }
836
835
  }
837
836
  static GetReceiptVehicle(Type, Id, CrDate, PrDate, MOut, MIn, Vehicle, PrintType, For, IsProforma, Settings, isOtherIndustry) {
@@ -1032,16 +1031,15 @@ class SharedPDFService {
1032
1031
  return this.emptyObject();
1033
1032
  }
1034
1033
  }
1035
- static GetPlaceofSupply(Vehicle, Settings) {
1036
- if (!tr_utils_1.TrUtils.IsNull(Vehicle) && !tr_utils_1.TrUtils.IsNull(Settings) && Settings.Tax === 'TI' &&
1037
- !tr_utils_1.TrUtils.IsNull(Settings.PoS) && !tr_utils_1.TrUtils.IsEmpty(Settings.PoS.Name)) {
1038
- let PoS = { columns: [{ text: 'Place Of Supply :', width: 75, style: 'hed' }, { text: this.GetStateName(Settings.PoS), marginTop: 1.5 }] };
1039
- return PoS;
1040
- }
1041
- else {
1042
- return this.emptyObject();
1043
- }
1044
- }
1034
+ // static GetPlaceofSupply(Vehicle: any, Settings: any) {
1035
+ // if (!TrUtils.IsNull(Vehicle) && !TrUtils.IsNull(Settings) && Settings.Tax === 'TI' &&
1036
+ // !TrUtils.IsNull(Settings.PoS) && !TrUtils.IsEmpty(Settings.PoS.Name)) {
1037
+ // let PoS = { columns: [{ text: 'Place Of Supply :', width: 75, style: 'hed' }, { text: this.GetStateName(Settings.PoS), marginTop: 1.5 }] };
1038
+ // return PoS;
1039
+ // } else {
1040
+ // return this.emptyObject();
1041
+ // }
1042
+ // }
1045
1043
  static GetCustPhoneNumber(Customer, Type) {
1046
1044
  if (Type !== 'Technician Copy') {
1047
1045
  var contact = this.GetFormatContact(Customer);
@@ -1066,7 +1064,7 @@ class SharedPDFService {
1066
1064
  return a;
1067
1065
  }
1068
1066
  }
1069
- static GetVehicleDetails(Type, Id, CrDate, PrDate, MOut, MIn, Vehicle, PrintType, IsProforma, Settings, isOtherIndustry, BL, ROCode, TypeName, AdmNo) {
1067
+ static GetVehicleDetails(Type, Id, CrDate, PrDate, MOut, MIn, Vehicle, PrintType, IsProforma, Settings, isOtherIndustry, BL, ROCode, TypeName, AdmNo, DoS) {
1070
1068
  let id;
1071
1069
  let vehicleData;
1072
1070
  if (Type === 'Work Order' || Type === 'Technician Copy') {
@@ -1101,8 +1099,8 @@ class SharedPDFService {
1101
1099
  if (!tr_utils_1.TrUtils.IsNull(AdmNo)) {
1102
1100
  vehicleData.push({ name: 'Admission No', value: AdmNo });
1103
1101
  }
1104
- if (!tr_utils_1.TrUtils.IsNull(Settings) && Settings.Tax === 'TI' && !tr_utils_1.TrUtils.IsNull(Settings.PoS) && !tr_utils_1.TrUtils.IsEmpty(Settings.PoS.Name)) {
1105
- vehicleData.push({ name: 'Place Of Supply', value: this.GetStateName(Settings.PoS) });
1102
+ if (!tr_utils_1.TrUtils.IsNull(Settings) && Settings.Tax === 'TI' && !tr_utils_1.TrUtils.IsNull(DoS) && !tr_utils_1.TrUtils.IsEmpty(DoS.Name)) {
1103
+ vehicleData.push({ name: 'Place Of Supply', value: this.GetStateName(DoS) });
1106
1104
  }
1107
1105
  if (Type === 'Delivery Challan' || isOtherIndustry) {
1108
1106
  if (Type === 'Delivery Challan') {
@@ -19,7 +19,7 @@ class TechnicianpdfService {
19
19
  shared_pdf_service_1.SharedPDFService.GetMainHeader(RepairOrder.Entity, RepairOrder.Image, RepairOrder.AColor, RepairOrder.HColor, null),
20
20
  shared_pdf_service_1.SharedPDFService.GetPrintType(RepairOrder.HeaderName),
21
21
  shared_pdf_service_1.SharedPDFService.HeaderAfterLine(),
22
- shared_pdf_service_1.SharedPDFService.GetCustomerAndVehicleDetails(RepairOrder._id, RepairOrder.CrDate, RepairOrder.PrDate, RepairOrder.MOut, RepairOrder.MIn, RepairOrder.Product, RepairOrder.PrintType, RepairOrder.For, RepairOrder.SurName, RepairOrder.SurPhone, RepairOrder.Type, RepairOrder.SurEmail, RepairOrder.InsComp, RepairOrder.PolNo, RepairOrder.PolType, RepairOrder.Customer, false, RepairOrder.Settings, null, isOtherIndustry, null, null, null, null),
22
+ shared_pdf_service_1.SharedPDFService.GetCustomerAndVehicleDetails(RepairOrder._id, RepairOrder.CrDate, RepairOrder.PrDate, RepairOrder.MOut, RepairOrder.MIn, RepairOrder.Product, RepairOrder.PrintType, RepairOrder.For, RepairOrder.SurName, RepairOrder.SurPhone, RepairOrder.Type, RepairOrder.SurEmail, RepairOrder.InsComp, RepairOrder.PolNo, RepairOrder.PolType, RepairOrder.Customer, false, RepairOrder.Settings, null, isOtherIndustry, null, null, null, null, RepairOrder.DoS),
23
23
  shared_pdf_service_1.SharedPDFService.CustomerAndVehicleDetailsAfterLine(),
24
24
  { stack: this.getComplaintsAndServices(RepairOrder.Comps, RepairOrder.Ops), marginBottom: 7 },
25
25
  this.getLine(RepairOrder.Comps),
@@ -24,8 +24,8 @@ class VendorCreditNotePrintService {
24
24
  // PurchaseOrderPDFData.HasNoTax = (CNData.Tax === 1) ? true : false;
25
25
  creditNotePDFData.HasNoTax = false;
26
26
  let SType;
27
- if (!tr_utils_1.TrUtils.IsNull(argCNData.Settings) && !tr_utils_1.TrUtils.IsNull(argCNData.Settings.PoS)) {
28
- SType = argCNData.Settings.PoS.SType;
27
+ if (!tr_utils_1.TrUtils.IsNull(argCNData.SType)) {
28
+ SType = argCNData.SType;
29
29
  }
30
30
  creditNotePDFData.ShowIGST = (tr_utils_1.TrUtils.IsNull(CNData.SType) || (CNData.SType === 'Intra')) ? false : true;
31
31
  creditNotePDFData.Id = CNData.BNo;
@@ -39,7 +39,7 @@ class VendorDebitNotePdfService {
39
39
  static CommonHeaderDetails(ROPrintData) {
40
40
  return [
41
41
  this.GetMainHeaderDetails(ROPrintData.Entity, ROPrintData.HeaderName, ROPrintData.Image, ROPrintData.HColor, ROPrintData.AColor),
42
- shared_pdf_service_1.SharedPDFService.GetCustomerAndVehicleDetails(ROPrintData._id, ROPrintData.CrDate, ROPrintData.PrDate, ROPrintData.MOut, ROPrintData.MIn, ROPrintData.Product, ROPrintData.PrintType, ROPrintData.For, ROPrintData.SurName, ROPrintData.SurPhone, ROPrintData.Type, ROPrintData.SurEmail, ROPrintData.InsComp, ROPrintData.PolNo, ROPrintData.PolType, ROPrintData.Customer, ROPrintData.IsProforma, ROPrintData.Settings, null, false, null, null, null, null),
42
+ shared_pdf_service_1.SharedPDFService.GetCustomerAndVehicleDetails(ROPrintData._id, ROPrintData.CrDate, ROPrintData.PrDate, ROPrintData.MOut, ROPrintData.MIn, ROPrintData.Product, ROPrintData.PrintType, ROPrintData.For, ROPrintData.SurName, ROPrintData.SurPhone, ROPrintData.Type, ROPrintData.SurEmail, ROPrintData.InsComp, ROPrintData.PolNo, ROPrintData.PolType, ROPrintData.Customer, ROPrintData.IsProforma, ROPrintData.Settings, null, false, null, null, null, null, ROPrintData.DoS),
43
43
  shared_pdf_service_1.SharedPDFService.GetOwnerDetails(ROPrintData.Cust, ROPrintData.Type, ROPrintData.For),
44
44
  shared_pdf_service_1.SharedPDFService.CustomerAndVehicleDetailsAfterLine(),
45
45
  shared_pdf_service_1.SharedPDFService.GetDisplayTable(),
@@ -20,8 +20,8 @@ class VendorDebitNotePrintService {
20
20
  InvoicePrintData.IsProforma = IsProforma;
21
21
  InvoicePrintData.Settings = tr_utils_1.TrUtils.Stringify(argInvoiceData.Settings);
22
22
  let SType;
23
- if (!tr_utils_1.TrUtils.IsNull(OriginalInvoiceData.Settings) && !tr_utils_1.TrUtils.IsNull(OriginalInvoiceData.Settings.PoS)) {
24
- SType = OriginalInvoiceData.Settings.PoS.SType;
23
+ if (!tr_utils_1.TrUtils.IsNull(OriginalInvoiceData.SType)) {
24
+ SType = OriginalInvoiceData.SType;
25
25
  }
26
26
  InvoicePrintData = this.GetPrintConditionsBasedOnInput(InvoicePrintData, IncludeGST, ConsolidateGST, ForInsurance, SType, argInvoiceData, IsProforma);
27
27
  InvoicePrintData.Entity = shared_print_service_1.PrintSharedService.GetFormattedEntityDataForPrint(OriginalEntityData, "Invoice", OriginalInvoiceData);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shareneus",
3
- "version": "1.4.17",
3
+ "version": "1.4.19",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",