shareneus 1.4.76 → 1.4.78
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:
|
|
797
|
-
{ text: 'Due : ' + tr_utils_1.TrUtils.FixPriceValue(Due, DecimalsNumber), marginRight:
|
|
796
|
+
body: [[{ text: 'Paid : Rs.' + tr_utils_1.TrUtils.FixPriceValue(Paid, DecimalsNumber), marginLeft: 20 },
|
|
797
|
+
{ text: 'Due : Rs.' + tr_utils_1.TrUtils.FixPriceValue(Due, DecimalsNumber), marginRight: 20 }]]
|
|
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: '
|
|
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
|
];
|
|
@@ -1522,12 +1522,12 @@ class SharedPDFService {
|
|
|
1522
1522
|
dataRow.push({ text: part[column.Field].toString() + '%', alignment: 'center', opacity: 0.7, nowrap: true, fontSize: 6 });
|
|
1523
1523
|
}
|
|
1524
1524
|
else {
|
|
1525
|
-
dataRow.push({ text: part[column.Field].toString(), alignment: '
|
|
1525
|
+
dataRow.push({ text: part[column.Field].toString(), alignment: 'left', opacity: 0.7, nowrap: true, fontSize: 6 });
|
|
1526
1526
|
}
|
|
1527
1527
|
}
|
|
1528
1528
|
else {
|
|
1529
1529
|
part[column.Field] = '';
|
|
1530
|
-
dataRow.push({ text: part[column.Field].toString(), alignment: '
|
|
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: 20 },
|
|
2128
|
+
{ text: 'Due : Rs.' + tr_utils_1.TrUtils.FixPriceValue(Due, DecimalsNumber), marginRight: 20 }]]
|
|
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: 20 },
|
|
2147
|
+
{ text: 'Due : Rs.' + Due, marginRight: 20 }]]
|
|
2149
2148
|
},
|
|
2150
2149
|
layout: this.LayOutStyle(),
|
|
2151
2150
|
};
|
|
@@ -2286,7 +2285,7 @@ class SharedPDFService {
|
|
|
2286
2285
|
}
|
|
2287
2286
|
static CompanyName(CName) {
|
|
2288
2287
|
return {
|
|
2289
|
-
text: [{ text: 'For ', fontSize:
|
|
2288
|
+
text: [{ text: 'For ', fontSize: 9 }, { text: CName, bold: 'true', fontSize: 9 }],
|
|
2290
2289
|
};
|
|
2291
2290
|
}
|
|
2292
2291
|
static Authorizedsignature() {
|