shareneus 1.7.16 → 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.
|
@@ -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
|
}
|
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
|
}
|