shareneus 1.7.13 → 1.7.15
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.
|
@@ -240,7 +240,7 @@ function resolveOtherDetails(transactionData, printConfig = {}) {
|
|
|
240
240
|
{ label: 'Vehicle', value: vehicleDetails },
|
|
241
241
|
{ label: 'Regn. No', value: (0, pdf_shared_utils_1.firstValue)(RegnNo) },
|
|
242
242
|
{ label: 'Engine No', value: (0, pdf_shared_utils_1.firstValue)(EngNo) },
|
|
243
|
-
{ label: 'Chassis', value: (0, pdf_shared_utils_1.firstValue)(ChassisNo) },
|
|
243
|
+
{ label: 'Chassis No', value: (0, pdf_shared_utils_1.firstValue)(ChassisNo) },
|
|
244
244
|
{ label: 'Milage', value: Milage },
|
|
245
245
|
...(shouldShowDoctorName ? [{ label: 'Doctor Name', value: DoctorName }] : [])
|
|
246
246
|
].filter((line) => !!line.value);
|
|
@@ -305,11 +305,11 @@ function buildOtherDetailsStack(otherDetails) {
|
|
|
305
305
|
if (lines.length > 0) {
|
|
306
306
|
stack.push({
|
|
307
307
|
table: {
|
|
308
|
-
widths: ['auto',
|
|
308
|
+
widths: ['auto', 6, '*'],
|
|
309
309
|
body: lines.map((line) => ([
|
|
310
|
-
{ text: line.label || '', bold: true, fontSize:
|
|
311
|
-
{ text: ':', bold: true, fontSize:
|
|
312
|
-
{ text: line.value || '-', fontSize:
|
|
310
|
+
{ text: line.label || '', bold: true, fontSize: 7, color: '#111827', alignment: 'right' },
|
|
311
|
+
{ text: ':', bold: true, fontSize: 7, color: '#111827', alignment: 'center' },
|
|
312
|
+
{ text: line.value || '-', fontSize: 7, color: '#111827', alignment: 'left' }
|
|
313
313
|
]))
|
|
314
314
|
},
|
|
315
315
|
layout: 'noBorders'
|
|
@@ -1235,10 +1235,11 @@ class SharedPDFService {
|
|
|
1235
1235
|
}
|
|
1236
1236
|
}
|
|
1237
1237
|
static GetCustomerGSTIN(Customer) {
|
|
1238
|
-
var _a;
|
|
1238
|
+
var _a, _b;
|
|
1239
|
+
console.log('Customer', Customer);
|
|
1239
1240
|
const customerTaxId = tr_utils_1.TrUtils.IsEmpty((_a = Customer === null || Customer === void 0 ? void 0 : Customer.TaxId) === null || _a === void 0 ? void 0 : _a.Value) ? Customer === null || Customer === void 0 ? void 0 : Customer.GSTIN : Customer.TaxId.Value;
|
|
1240
1241
|
if (!tr_utils_1.TrUtils.IsEmpty(customerTaxId)) {
|
|
1241
|
-
let GSTIN = { columns: [{ text: 'GSTIN :', width: 33, style: 'hed' }, { text: customerTaxId, marginTop: 1.5 }] };
|
|
1242
|
+
let GSTIN = { columns: [{ text: ((_b = Customer === null || Customer === void 0 ? void 0 : Customer.TaxId) === null || _b === void 0 ? void 0 : _b.Label) || 'GSTIN :', width: 33, style: 'hed' }, { text: customerTaxId, marginTop: 1.5 }] };
|
|
1242
1243
|
return GSTIN;
|
|
1243
1244
|
}
|
|
1244
1245
|
else {
|
package/package.json
CHANGED
|
@@ -299,7 +299,7 @@ function resolveOtherDetails(transactionData: any, printConfig: any = {}) {
|
|
|
299
299
|
{ label: 'Vehicle', value: vehicleDetails },
|
|
300
300
|
{ label: 'Regn. No', value: firstValue(RegnNo) },
|
|
301
301
|
{ label: 'Engine No', value: firstValue(EngNo) },
|
|
302
|
-
{ label: 'Chassis', value: firstValue(ChassisNo) },
|
|
302
|
+
{ label: 'Chassis No', value: firstValue(ChassisNo) },
|
|
303
303
|
{ label: 'Milage', value: Milage },
|
|
304
304
|
...(shouldShowDoctorName ? [{ label: 'Doctor Name', value: DoctorName }] : [])
|
|
305
305
|
].filter((line) => !!line.value);
|
|
@@ -371,11 +371,11 @@ function buildOtherDetailsStack(otherDetails: any) {
|
|
|
371
371
|
if (lines.length > 0) {
|
|
372
372
|
stack.push({
|
|
373
373
|
table: {
|
|
374
|
-
widths: ['auto',
|
|
374
|
+
widths: ['auto', 6, '*'],
|
|
375
375
|
body: lines.map((line: any) => ([
|
|
376
|
-
{ text: line.label || '', bold: true, fontSize:
|
|
377
|
-
{ text: ':', bold: true, fontSize:
|
|
378
|
-
{ text: line.value || '-', fontSize:
|
|
376
|
+
{ text: line.label || '', bold: true, fontSize: 7, color: '#111827', alignment: 'right' },
|
|
377
|
+
{ text: ':', bold: true, fontSize: 7, color: '#111827', alignment: 'center' },
|
|
378
|
+
{ text: line.value || '-', fontSize: 7, color: '#111827', alignment: 'left' }
|
|
379
379
|
]))
|
|
380
380
|
},
|
|
381
381
|
layout: 'noBorders'
|
|
@@ -1323,9 +1323,10 @@ export class SharedPDFService {
|
|
|
1323
1323
|
}
|
|
1324
1324
|
|
|
1325
1325
|
static GetCustomerGSTIN(Customer: any) {
|
|
1326
|
+
console.log('Customer', Customer);
|
|
1326
1327
|
const customerTaxId = TrUtils.IsEmpty(Customer?.TaxId?.Value) ? Customer?.GSTIN : Customer.TaxId.Value;
|
|
1327
1328
|
if (!TrUtils.IsEmpty(customerTaxId)) {
|
|
1328
|
-
let GSTIN = { columns: [{ text: 'GSTIN :', width: 33, style: 'hed' }, { text: customerTaxId, marginTop: 1.5 }] };
|
|
1329
|
+
let GSTIN = { columns: [{ text: Customer?.TaxId?.Label ||'GSTIN :', width: 33, style: 'hed' }, { text: customerTaxId, marginTop: 1.5 }] };
|
|
1329
1330
|
return GSTIN;
|
|
1330
1331
|
} else {
|
|
1331
1332
|
return this.emptyObject();
|