shareneus 1.6.71 → 1.6.72

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.
@@ -1,5 +1,6 @@
1
1
  export declare function GetInvoicePDF(invoiceData: any, entityData: any, headerConfig: any, printConfig: any, taxCodes: any, image?: any, numberofCopies?: string[], withPass?: boolean, options?: any): any;
2
2
  export declare function GetSalesOrderPDF(salesOrderData: any, entityData: any, headerConfig: any, printConfig: any, taxCodes: any, image?: any, numberofCopies?: string[], options?: any): any;
3
+ export declare function GetDeliveryChallanPDF(deliveryChallanData: any, entityData: any, headerConfig: any, printConfig: any, taxCodes: any, image?: any, numberofCopies?: string[], options?: any): any;
3
4
  export declare function GetCreditNotePDF(creditNoteData: any, entityData: any, headerConfig: any, printConfig: any, taxCodes: any, image?: any, numberofCopies?: string[], options?: any): any;
4
5
  export declare function GetSalesReceiptPDF(salesReceiptData: any, entityData: any, headerConfig: any, printConfig: any, taxCodes: any, image?: any, numberofCopies?: string[], withPass?: boolean, options?: any): any;
5
6
  export declare function GetBillPDF(billData: any, entityData: any, headerConfig: any, printConfig: any, taxCodes: any, image?: any): any;
@@ -2,10 +2,13 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GetInvoicePDF = GetInvoicePDF;
4
4
  exports.GetSalesOrderPDF = GetSalesOrderPDF;
5
+ exports.GetDeliveryChallanPDF = GetDeliveryChallanPDF;
5
6
  exports.GetCreditNotePDF = GetCreditNotePDF;
6
7
  exports.GetSalesReceiptPDF = GetSalesReceiptPDF;
7
8
  exports.GetBillPDF = GetBillPDF;
8
9
  const purchase_order_print_service_1 = require("../../purchases/purchase-order/purchase-order-print.service");
10
+ const delivery_challan_pdf_service_1 = require("../../sales/delivery-challan/delivery-challan-pdf.service");
11
+ const delivery_challan_print_service_1 = require("../../sales/delivery-challan/delivery-challan-print.service");
9
12
  const sales_pdf_service_1 = require("../../sales/sales/sales-pdf.service");
10
13
  const sales_print_service_1 = require("../../sales/sales/sales-print.service");
11
14
  const math_operations_1 = require("../../shared/math-operations");
@@ -76,6 +79,32 @@ function GetSalesOrderPDF(salesOrderData, entityData, headerConfig, printConfig,
76
79
  }
77
80
  return soPrint;
78
81
  }
82
+ function GetDeliveryChallanPDF(deliveryChallanData, entityData, headerConfig, printConfig, taxCodes, image = null, numberofCopies = ['Original'], options = null) {
83
+ var _a;
84
+ if (!options) {
85
+ options = {
86
+ ShowGST: (((_a = deliveryChallanData === null || deliveryChallanData === void 0 ? void 0 : deliveryChallanData.Settings) === null || _a === void 0 ? void 0 : _a.Tax) === 'TI') ? true : false,
87
+ ConsolidateGST: false,
88
+ Size: 'full',
89
+ MoreDiscDetails: false,
90
+ Orientation: 'portrait'
91
+ };
92
+ }
93
+ const printConfigData = tr_utils_1.TrUtils.ConcatObjects(tr_utils_1.TrUtils.Stringify(headerConfig), tr_utils_1.TrUtils.Stringify(printConfig));
94
+ const dcPrintData = delivery_challan_print_service_1.DeliveryChallanPrintService.GetChallanDataPrintInfo(deliveryChallanData, entityData, image, options.ShowGST, options.ConsolidateGST, taxCodes, false);
95
+ let dcPrint;
96
+ if (options.ConsolidateGST || !options.ShowGST) {
97
+ dcPrint = delivery_challan_pdf_service_1.DeliveryChallanPdfService.GetDeliveryChallanPrint(deliveryChallanData, numberofCopies, false);
98
+ }
99
+ else {
100
+ dcPrintData.Round = tr_utils_1.TrUtils.FixedTo(deliveryChallanData.Round);
101
+ dcPrintData.Total = tr_utils_1.TrUtils.FixedTo(deliveryChallanData.Total);
102
+ dcPrintData.SubToal = tr_utils_1.TrUtils.FixedTo(deliveryChallanData.SubToal);
103
+ dcPrintData.TaxTotal = tr_utils_1.TrUtils.FixedTo(deliveryChallanData.TaxTotal);
104
+ dcPrint = (0, invoice_pdf_service_1.CreateInvoicePDFService)(dcPrintData, printConfigData, numberofCopies);
105
+ }
106
+ return dcPrint;
107
+ }
79
108
  function GetCreditNotePDF(creditNoteData, entityData, headerConfig, printConfig, taxCodes, image = null, numberofCopies = ['Original'], options = null) {
80
109
  var _a;
81
110
  if (!options) {
package/dist/index.d.ts CHANGED
@@ -134,7 +134,7 @@ export { ServiceHistoryPDFService } from "./services/service-history-pdf.service
134
134
  export { Add, Subtract, Multiply, Divide } from "./shared/math-operations";
135
135
  export { ProductWithoutOwnerXlsxFileService } from "./common/reports/excel/product-without-owner-excel.service";
136
136
  export { ProductWithoutOwnerPDFService } from "./common/reports/pdf/product-without-owner-pdf.service";
137
- export { GetInvoicePDF, GetSalesReceiptPDF } from "./accounting/invoice/invoice-pdf.service";
137
+ export { GetInvoicePDF, GetSalesReceiptPDF, GetDeliveryChallanPDF } from "./accounting/invoice/invoice-pdf.service";
138
138
  export { GetBillPDF } from "./purchases/bills/bill-pdf.service";
139
139
  export { GetBillPdfDataUrl } from "./purchases/bills/bill-pdf/bill-pdf.service";
140
140
  export { GetInvoicePrintInfo } from "./accounting/invoice/inv-print.service";
package/dist/index.js CHANGED
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DebitNotePdfService = exports.DCWithoutPricePdfService = exports.DCLandscapeWithoutPricePdfService = exports.DCLandscapePdfService = exports.CustomerBalancesService = exports.SalesByCustomerPDFService = exports.CustWiseSalesDetailsService = exports.CreditNoteTotalsService = exports.CreditNotePdfService = exports.ConsultationPDFService = exports.ConsultationFullPrintService = exports.ConsultationFeeReceiptPrintService = exports.CNPrintService = exports.ChecklistsPDFService = exports.CheckListPrintService = exports.CategoryWiseItemPDFService = exports.SalesReceiptprintService = exports.AppointmentTotalsService = exports.AnalysisPDFService = exports.VenBalanceXlsxFileService = exports.TallySalesImportXlsxFileService = exports.StockXlsxFileService = exports.IssueSparesXlsxFileService = exports.ScheduledDrugXlsxFileService = exports.ScheduledDrugSummaryXlsxFileService = exports.SalesByServiceSummaryXlsxFileService = exports.SummaryXlsxFileService = exports.ServiceAdvisorWisePartXlsxFileService = exports.ServiceAdvisorWiseLaborXlsxFileService = exports.RepairOrdersXlsxFileService = exports.PaymentsMadeXlsxFileService = exports.PaymentReceiveXlsxFileService = exports.OperatorWiseSummaryXlsxFileService = exports.OperatorWiseDetailsXlsxFileService = exports.ManfWiseSalesXlsxFileService = exports.ItemsWiseSalesXlsxFileService = exports.ItemWiseMOSummaryXlsxFileService = exports.ItemWiseMODetailsXlsxFileService = exports.ItemWiseDoctorSaleXlsxFileService = exports.InvoicesWiseXlsxFileService = exports.InsuranceExpireXlsxFileService = exports.GSTR2ExcelService = exports.GSTR1ExcelService = exports.GSTROXlsxFileService = exports.ExpiringDrugsXlsxFileService = exports.SalesByCustomerXlsxFileService = exports.CustWiseSalesXlsxFileService = exports.CustBalanceXlsxFileService = exports.CategoryWiseItemXlsxFileService = exports.AnalysisXlsxFileService = void 0;
4
4
  exports.TaskPDfService = exports.PrintSharedService = exports.SharedPDFService = exports.SharedInvoiceprintService = exports.WOPrintService = exports.ScheduledDrugSummaryPDFService = exports.ScheduledDrugPDFService = exports.SalesTotalsService = exports.SaleReceiptPrintService = exports.SalesReceiptpdfService = exports.SalesPrintService = exports.SalesPdfService = exports.SalesByServiceSummaryPDF = exports.ROTotalsService = exports.ROPrintService = exports.RoprintService = exports.RepairOrdersReportsPDFService = exports.ReorderPointPDFService = exports.ReceiptPrintService = exports.PurchaseOrderPDFService = exports.PurchaseOrderTotalsService = exports.PurchaseOrderPrintService = exports.PosReceiptPrintService = exports.POTotalsService = exports.PaymentsReportPDFService = exports.ReceiptPDFService = exports.PackShipPrintService = exports.PackShipPDFService = exports.OperatorWiseSalesSummaryPDF = exports.OperatorWiseSalesDetailsPDF = exports.MaterialOutprintService = exports.MeetingPdfService = exports.ManfWiseSalesService = exports.ItemWiseSalesPDFService = exports.ItemWiseMOSummaryPDF = exports.ItemWiseMODetailsPDF = exports.ItemWiseDoctorSalePDFService = exports.ItemDetaisPdf = exports.IssuePartsprintService = exports.InvoiceTotalsService = exports.InvoiceLandscapePdfService = exports.InsuranceExpirePDF = exports.ExpiringDrugPDFService = exports.EstPrintService = exports.EquipmentDesignPdf = exports.DeliveryChallanTotalsService = exports.DeliveryChallanPrintService = exports.DeliveryChallanPdfService = exports.DebitNoteTotalsService = exports.DebitNotePrintService = void 0;
5
- exports.CreateInvoicePDFService = exports.CreateReceiptPDFService = exports.GetInvoicePrintInfo = exports.GetBillPdfDataUrl = exports.GetBillPDF = exports.GetSalesReceiptPDF = exports.GetInvoicePDF = exports.ProductWithoutOwnerPDFService = exports.ProductWithoutOwnerXlsxFileService = exports.Divide = exports.Multiply = exports.Subtract = exports.Add = exports.ServiceHistoryPDFService = exports.GetNumber = exports.GetAgeString = exports.IsNull = exports.IsNotNull = exports.GetServicePriceForPriceList = exports.ApplyServicePriceListToOpcode = exports.ApplyServicePriceListToProcedure = exports.CalcItemFinalSalePrice = exports.GetItemPriceForPriceList = exports.SalesReceiveTotalsService = exports.SalesReceivePrintService = exports.SalesReceivePdfService = exports.AdjustmentDrugPDFService = exports.HSNSummaryPDFService = exports.HSNSummaryExcelService = exports.ItemBarCodeLabelPdf = exports.NextServiceDatePDFService = exports.NextServiceDateXlsxFileService = exports.ConsultationLetterHeadPDFService = exports.InvoiceLetterheadPdfService = exports.InvoicePortraitPrintService = exports.HCInvoiceprintService = exports.InvoiceprintService = exports.MyDate = exports.TrUtils = exports.VendorDebitNoteTotalsService = exports.VendorDebitNotePrintService = exports.VendorDebitNotePdfService = exports.VendorCreditNoteTotalsService = exports.VendorCreditNotePrintService = exports.VendorCreditNotePDFService = exports.VendorBalancesService = exports.TransferOrderPrintService = exports.TechnicianPrintService = exports.TechnicianpdfService = exports.TaskReportsPDfService = void 0;
6
- exports.ConvertFlatToTaxes = exports.ValidateHSNSACLength = exports.ValidateTaxId = exports.RoundAmount = exports.CalculateWithholding = exports.FindTaxCodeByRateAndSupplyType = exports.DetermineSupplyType = exports.ComputeTaxSummary = exports.SumTaxComponents = exports.ExtractNetFromInclusive = exports.CalculateLineTax = exports.TaxTreatmentEnum = exports.CountryEnum = void 0;
5
+ exports.CreateReceiptPDFService = exports.GetInvoicePrintInfo = exports.GetBillPdfDataUrl = exports.GetBillPDF = exports.GetDeliveryChallanPDF = exports.GetSalesReceiptPDF = exports.GetInvoicePDF = exports.ProductWithoutOwnerPDFService = exports.ProductWithoutOwnerXlsxFileService = exports.Divide = exports.Multiply = exports.Subtract = exports.Add = exports.ServiceHistoryPDFService = exports.GetNumber = exports.GetAgeString = exports.IsNull = exports.IsNotNull = exports.GetServicePriceForPriceList = exports.ApplyServicePriceListToOpcode = exports.ApplyServicePriceListToProcedure = exports.CalcItemFinalSalePrice = exports.GetItemPriceForPriceList = exports.SalesReceiveTotalsService = exports.SalesReceivePrintService = exports.SalesReceivePdfService = exports.AdjustmentDrugPDFService = exports.HSNSummaryPDFService = exports.HSNSummaryExcelService = exports.ItemBarCodeLabelPdf = exports.NextServiceDatePDFService = exports.NextServiceDateXlsxFileService = exports.ConsultationLetterHeadPDFService = exports.InvoiceLetterheadPdfService = exports.InvoicePortraitPrintService = exports.HCInvoiceprintService = exports.InvoiceprintService = exports.MyDate = exports.TrUtils = exports.VendorDebitNoteTotalsService = exports.VendorDebitNotePrintService = exports.VendorDebitNotePdfService = exports.VendorCreditNoteTotalsService = exports.VendorCreditNotePrintService = exports.VendorCreditNotePDFService = exports.VendorBalancesService = exports.TransferOrderPrintService = exports.TechnicianPrintService = exports.TechnicianpdfService = exports.TaskReportsPDfService = void 0;
6
+ exports.ConvertFlatToTaxes = exports.ValidateHSNSACLength = exports.ValidateTaxId = exports.RoundAmount = exports.CalculateWithholding = exports.FindTaxCodeByRateAndSupplyType = exports.DetermineSupplyType = exports.ComputeTaxSummary = exports.SumTaxComponents = exports.ExtractNetFromInclusive = exports.CalculateLineTax = exports.TaxTreatmentEnum = exports.CountryEnum = exports.CreateInvoicePDFService = void 0;
7
7
  var analysis_excel_service_1 = require("./accounting/invoice/reports/excel/analysis-excel.service");
8
8
  Object.defineProperty(exports, "AnalysisXlsxFileService", { enumerable: true, get: function () { return analysis_excel_service_1.AnalysisXlsxFileService; } });
9
9
  var category_wise_item_excel_service_1 = require("./accounting/invoice/reports/excel/category-wise-item-excel.service");
@@ -286,6 +286,7 @@ Object.defineProperty(exports, "ProductWithoutOwnerPDFService", { enumerable: tr
286
286
  var invoice_pdf_service_1 = require("./accounting/invoice/invoice-pdf.service");
287
287
  Object.defineProperty(exports, "GetInvoicePDF", { enumerable: true, get: function () { return invoice_pdf_service_1.GetInvoicePDF; } });
288
288
  Object.defineProperty(exports, "GetSalesReceiptPDF", { enumerable: true, get: function () { return invoice_pdf_service_1.GetSalesReceiptPDF; } });
289
+ Object.defineProperty(exports, "GetDeliveryChallanPDF", { enumerable: true, get: function () { return invoice_pdf_service_1.GetDeliveryChallanPDF; } });
289
290
  var bill_pdf_service_1 = require("./purchases/bills/bill-pdf.service");
290
291
  Object.defineProperty(exports, "GetBillPDF", { enumerable: true, get: function () { return bill_pdf_service_1.GetBillPDF; } });
291
292
  var bill_pdf_service_2 = require("./purchases/bills/bill-pdf/bill-pdf.service");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shareneus",
3
- "version": "1.6.71",
3
+ "version": "1.6.72",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",