shareneus 1.6.48 → 1.6.49

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,2 +1,3 @@
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 GetSalesReceiptPDF(salesReceiptData: any, entityData: any, headerConfig: any, printConfig: any, taxCodes: any, image?: any, numberofCopies?: string[], withPass?: boolean, options?: any): any;
3
+ export declare function GetBillPDF(billData: any, entityData: any, headerConfig: any, printConfig: any, taxCodes: any, image?: any): any;
@@ -2,6 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GetInvoicePDF = GetInvoicePDF;
4
4
  exports.GetSalesReceiptPDF = GetSalesReceiptPDF;
5
+ exports.GetBillPDF = GetBillPDF;
6
+ const purchase_order_print_service_1 = require("../../purchases/purchase-order/purchase-order-print.service");
5
7
  const math_operations_1 = require("../../shared/math-operations");
6
8
  const tr_utils_1 = require("../../utils/tr-utils");
7
9
  const pos_receipt_pdf_1 = require("../counter-sales/pos-receipt-pdf");
@@ -66,3 +68,9 @@ function GetSalesReceiptPDF(salesReceiptData, entityData, headerConfig, printCon
66
68
  }
67
69
  return posPrint;
68
70
  }
71
+ function GetBillPDF(billData, entityData, headerConfig, printConfig, taxCodes, image = null) {
72
+ const printConfigData = tr_utils_1.TrUtils.ConcatObjects(tr_utils_1.TrUtils.Stringify(headerConfig), tr_utils_1.TrUtils.Stringify(printConfig));
73
+ let billPrintData = purchase_order_print_service_1.PurchaseOrderPrintService.GetDataForPurchaseOrderPrint(billData, entityData, image, billData.BFrom, taxCodes, false);
74
+ let billPrint = (0, invoice_pdf_service_1.CreateInvoicePDFService)(billPrintData, printConfigData, ['Original']);
75
+ return billPrint;
76
+ }
@@ -275,6 +275,7 @@ export declare function TaxDataTable(Parts: any, Ops: any, PrintPartNo: any, Sho
275
275
  };
276
276
  export declare function ConsolidateDataTable(Parts: any, Ops: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any, DecimalsNumber: number, orientation?: 'portrait' | 'landscape'): {
277
277
  style: string;
278
+ marginTop: number;
278
279
  table: {
279
280
  widths: number[];
280
281
  body: any;
@@ -288,6 +289,7 @@ export declare function ConsolidateDataTable(Parts: any, Ops: any, PrintPartNo:
288
289
  };
289
290
  export declare function NoTaxDataTable(Parts: any, Ops: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any, DecimalsNumber: number, orientation?: 'portrait' | 'landscape'): {
290
291
  style: string;
292
+ marginTop: number;
291
293
  table: {
292
294
  widths: number[];
293
295
  body: any;
@@ -488,7 +488,7 @@ function TaxDataTable(Parts, Ops, PrintPartNo, ShowTaxColumn, Body, ShowIGST, Co
488
488
  const widths = orientation === 'landscape' ? GetLandscapeTaxTableWidths(PrintPartNo, ShowIGST, ShowDiscountColumn) : shared_print_service_1.PrintSharedService.TaxTableWidths(PrintPartNo, ShowIGST, ShowDiscountColumn);
489
489
  return {
490
490
  style: 'tableExample',
491
- marginTop: orientation === 'landscape' ? -6 : 0,
491
+ marginTop: orientation === 'landscape' ? -6 : 7,
492
492
  table: {
493
493
  widths: widths,
494
494
  body: BuildTableBodyForLaborAndParts(Parts, Ops, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn, DecimalsNumber, orientation)
@@ -502,6 +502,7 @@ function ConsolidateDataTable(Parts, Ops, PrintPartNo, ShowTaxColumn, Body, Show
502
502
  const widths = orientation === 'landscape' ? [15, 50, 180, 40, 35, 35, 25, 25, 35, 30, 50] : [25, 70, 263, 25, 60, 80, 10, 40];
503
503
  return {
504
504
  style: 'tableExample',
505
+ marginTop: 7,
505
506
  table: {
506
507
  widths: widths,
507
508
  body: BuildTableBodyForLaborAndParts(Parts, Ops, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn, DecimalsNumber, orientation)
@@ -513,6 +514,7 @@ function ConsolidateDataTable(Parts, Ops, PrintPartNo, ShowTaxColumn, Body, Show
513
514
  const widths = orientation === 'landscape' ? [15, 220, 40, 35, 35, 25, 25, 35, 30, 50] : [25, 295, 50, 80, 80, 10, 40];
514
515
  return {
515
516
  style: 'tableExample',
517
+ marginTop: 7,
516
518
  table: {
517
519
  widths: widths,
518
520
  body: BuildTableBodyForLaborAndParts(Parts, Ops, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn, DecimalsNumber, orientation)
@@ -528,6 +530,7 @@ function NoTaxDataTable(Parts, Ops, PrintPartNo, ShowTaxColumn, Body, ShowIGST,
528
530
  : shared_print_service_1.PrintSharedService.WidthForInsuranceOrNot(ShowDiscountColumn, PrintPartNo);
529
531
  return {
530
532
  style: 'tableExample',
533
+ marginTop: 7,
531
534
  table: {
532
535
  widths: widths,
533
536
  body: BuildTableBodyForLaborAndParts(Parts, Ops, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn, DecimalsNumber, orientation)
@@ -804,7 +804,7 @@ class PrintSharedService {
804
804
  return [25, 210, 40, 70, 40, 40, 70];
805
805
  }
806
806
  else {
807
- return [25, 308, 50, 65, 80];
807
+ return [25, 308, 52, 65, 80];
808
808
  }
809
809
  }
810
810
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shareneus",
3
- "version": "1.6.48",
3
+ "version": "1.6.49",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",