shareneus 1.4.76 → 1.4.77

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.
@@ -793,8 +793,8 @@ class HCInvoiceprintService {
793
793
  marginBottom: 5,
794
794
  table: {
795
795
  widths: ['*', 'auto'],
796
- body: [[{ text: 'Paid : ' + tr_utils_1.TrUtils.FixPriceValue(Paid, DecimalsNumber), marginLeft: 30 },
797
- { text: 'Due : ' + tr_utils_1.TrUtils.FixPriceValue(Due, DecimalsNumber), marginRight: 30 }]]
796
+ body: [[{ text: 'Paid : Rs.' + tr_utils_1.TrUtils.FixPriceValue(Paid, DecimalsNumber), marginLeft: 30 },
797
+ { text: 'Due : Rs.' + tr_utils_1.TrUtils.FixPriceValue(Due, DecimalsNumber), marginRight: 30 }]]
798
798
  },
799
799
  layout: shared_pdf_service_1.SharedPDFService.LayOutLineStyle(),
800
800
  };
@@ -499,7 +499,6 @@ export declare class SharedPDFService {
499
499
  }[];
500
500
  })[];
501
501
  })[];
502
- marginLeft: number;
503
502
  };
504
503
  static GrandTotal1(RecordData: any, LaborAfterGST: any, PartsAfterGST: any, OverAllRecordDiscount: any, totalTax: any, For: any, OverAllRecordTotal: any, Rounded: any, GrandTotal: any, Adj: any, Consolidate: any, STotal: any, moreDiscDetails: boolean): {
505
504
  style: string[];
@@ -596,9 +595,15 @@ export declare class SharedPDFService {
596
595
  marginBottom: number;
597
596
  table: {
598
597
  widths: string[];
599
- body: {
598
+ body: ({
600
599
  text: string;
601
- }[][];
600
+ marginLeft: number;
601
+ marginRight?: undefined;
602
+ } | {
603
+ text: string;
604
+ marginRight: number;
605
+ marginLeft?: undefined;
606
+ })[][];
602
607
  };
603
608
  layout: {
604
609
  hLineColor: (i: any, node: any) => "white" | "gray";
@@ -1488,7 +1488,7 @@ class SharedPDFService {
1488
1488
  // { text: 'CGST', style: 'tableheader', fontSize: 6, lineHeight: 0.3, Field: 'CGST' },
1489
1489
  // { text: 'SGST', style: 'tableheader', fontSize: 6, lineHeight: 0.3, Field: 'SGST' },
1490
1490
  // { text: 'Count', style: 'tableheader', fontSize: 6, lineHeight: 0.3, Field: 'PartsCount' },
1491
- { text: 'Tax Rate', style: 'tableheader2', fontSize: 6, lineHeight: 0.3, Field: 'CombinedTaxPercentage', alignment: 'center' },
1491
+ { text: 'Tax Rate', style: 'tableheader2', fontSize: 6, lineHeight: 0.3, Field: 'CombinedTaxPercentage', alignment: 'left' },
1492
1492
  { text: 'Taxable Amount', style: 'tableheader2', fontSize: 6, lineHeight: 0.3, Field: 'TotalTaxableAmount', alignment: 'right' },
1493
1493
  // { text: 'Tax Amount', style: 'tableheader2', fontSize: 6, lineHeight: 0.3, Field: 'TotalTaxAmount' },
1494
1494
  ];
@@ -1527,7 +1527,7 @@ class SharedPDFService {
1527
1527
  }
1528
1528
  else {
1529
1529
  part[column.Field] = '';
1530
- dataRow.push({ text: part[column.Field].toString(), alignment: 'center', opacity: 0.7, fontSize: 6 });
1530
+ dataRow.push({ text: part[column.Field].toString(), alignment: 'left', opacity: 0.7, fontSize: 6 });
1531
1531
  }
1532
1532
  });
1533
1533
  body.push(dataRow);
@@ -1647,8 +1647,7 @@ class SharedPDFService {
1647
1647
  this.GrandTotal1(RecordData, BasicLaborTotal, BasicPartsTotal, totalDisc, totalTax, For, OverAllRecordTotal, Rounded, GrandTotal, Adj, Consolidate, STotal, moreDiscDetails)
1648
1648
  ]
1649
1649
  // columnGap: 40
1650
- ,
1651
- marginLeft: 10
1650
+ // , marginLeft: 10
1652
1651
  };
1653
1652
  }
1654
1653
  static GrandTotal1(RecordData, LaborAfterGST, PartsAfterGST, OverAllRecordDiscount, totalTax, For, OverAllRecordTotal, Rounded, GrandTotal, Adj, Consolidate, STotal, moreDiscDetails) {
@@ -2125,8 +2124,8 @@ class SharedPDFService {
2125
2124
  marginBottom: 5,
2126
2125
  table: {
2127
2126
  widths: ['*', 'auto'],
2128
- body: [[{ text: 'Paid : ' + tr_utils_1.TrUtils.FixPriceValue(Paid, DecimalsNumber) },
2129
- { text: 'Due : ' + tr_utils_1.TrUtils.FixPriceValue(Due, DecimalsNumber) }]]
2127
+ body: [[{ text: 'Paid : Rs.' + tr_utils_1.TrUtils.FixPriceValue(Paid, DecimalsNumber), marginLeft: 30 },
2128
+ { text: 'Due : Rs.' + tr_utils_1.TrUtils.FixPriceValue(Due, DecimalsNumber), marginRight: 30 }]]
2130
2129
  },
2131
2130
  layout: this.LayOutLineStyle(),
2132
2131
  };
@@ -2144,8 +2143,8 @@ class SharedPDFService {
2144
2143
  marginBottom: 5,
2145
2144
  table: {
2146
2145
  widths: ['*', 'auto'],
2147
- body: [[{ text: 'Paid : ' + Paid },
2148
- { text: 'Due : ' + Due }]]
2146
+ body: [[{ text: 'Paid : Rs.' + Paid, marginLeft: 30 },
2147
+ { text: 'Due : Rs.' + Due, marginRight: 30 }]]
2149
2148
  },
2150
2149
  layout: this.LayOutStyle(),
2151
2150
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shareneus",
3
- "version": "1.4.76",
3
+ "version": "1.4.77",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",