shareneus 1.7.15 → 1.7.17
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.
- package/dist/shared/header-footer-section/pdf-header-footer.section.js +1 -1
- package/dist/shared/shared-pdf.service.js +0 -1
- package/dist/shared/shared-print.service.js +1 -0
- package/package.json +1 -1
- package/src/shared/header-footer-section/pdf-header-footer.section.ts +1 -1
- package/src/shared/shared-pdf.service.ts +0 -1
- package/src/shared/shared-print.service.ts +1 -0
|
@@ -179,7 +179,7 @@ function buildDocumentHeadingSection(PDFInvoiceData, PrintConfig, availableWidth
|
|
|
179
179
|
}
|
|
180
180
|
function buildWatermark(PrintConfig, DocumentData = {}) {
|
|
181
181
|
const value = (DocumentData === null || DocumentData === void 0 ? void 0 : DocumentData.IsProforma) ? 'Not a final invoice' : (0, pdf_shared_utils_1.firstValue)(PrintConfig === null || PrintConfig === void 0 ? void 0 : PrintConfig.WatermarkText);
|
|
182
|
-
const isEnabled = !!(
|
|
182
|
+
const isEnabled = !!(PrintConfig === null || PrintConfig === void 0 ? void 0 : PrintConfig.Watermark);
|
|
183
183
|
if (!isEnabled) {
|
|
184
184
|
return null;
|
|
185
185
|
}
|
|
@@ -1236,7 +1236,6 @@ class SharedPDFService {
|
|
|
1236
1236
|
}
|
|
1237
1237
|
static GetCustomerGSTIN(Customer) {
|
|
1238
1238
|
var _a, _b;
|
|
1239
|
-
console.log('Customer', Customer);
|
|
1240
1239
|
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;
|
|
1241
1240
|
if (!tr_utils_1.TrUtils.IsEmpty(customerTaxId)) {
|
|
1242
1241
|
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 }] };
|
package/package.json
CHANGED
|
@@ -202,7 +202,7 @@ export function buildDocumentHeadingSection(PDFInvoiceData: any, PrintConfig: an
|
|
|
202
202
|
|
|
203
203
|
export function buildWatermark(PrintConfig: any, DocumentData: any = {}) {
|
|
204
204
|
const value = DocumentData?.IsProforma ? 'Not a final invoice' : firstValue(PrintConfig?.WatermarkText);
|
|
205
|
-
const isEnabled = !!(PrintConfig?.Watermark
|
|
205
|
+
const isEnabled = !!(PrintConfig?.Watermark);
|
|
206
206
|
if (!isEnabled) {
|
|
207
207
|
return null;
|
|
208
208
|
}
|
|
@@ -1323,7 +1323,6 @@ export class SharedPDFService {
|
|
|
1323
1323
|
}
|
|
1324
1324
|
|
|
1325
1325
|
static GetCustomerGSTIN(Customer: any) {
|
|
1326
|
-
console.log('Customer', Customer);
|
|
1327
1326
|
const customerTaxId = TrUtils.IsEmpty(Customer?.TaxId?.Value) ? Customer?.GSTIN : Customer.TaxId.Value;
|
|
1328
1327
|
if (!TrUtils.IsEmpty(customerTaxId)) {
|
|
1329
1328
|
let GSTIN = { columns: [{ text: Customer?.TaxId?.Label ||'GSTIN :', width: 33, style: 'hed' }, { text: customerTaxId, marginTop: 1.5 }] };
|