shareneus 1.6.83 → 1.6.84
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.
|
@@ -12,6 +12,7 @@ function buildInvoiceTotalsAndNotesSection(invoiceData, availableWidth, PrintCon
|
|
|
12
12
|
const normalizedInvoice = invoiceData || {};
|
|
13
13
|
const sType = (0, pdf_shared_utils_1.firstValue)(normalizedInvoice === null || normalizedInvoice === void 0 ? void 0 : normalizedInvoice.SType);
|
|
14
14
|
const hideTopSection = isTruthy((_a = normalizedInvoice === null || normalizedInvoice === void 0 ? void 0 : normalizedInvoice.Settings) === null || _a === void 0 ? void 0 : _a.NoPr);
|
|
15
|
+
const isPoSPrint = isTruthy(PrintConfigData === null || PrintConfigData === void 0 ? void 0 : PrintConfigData.IsPoSPrint);
|
|
15
16
|
const shouldShowTaxSummary = resolveShowTaxSummary(normalizedInvoice, PrintConfigData);
|
|
16
17
|
const taxSummary = resolveTaxSummary(normalizedInvoice, shouldShowTaxSummary);
|
|
17
18
|
const showBankDetails = resolveShowBankDetails(normalizedInvoice, PrintConfigData);
|
|
@@ -47,7 +48,8 @@ function buildInvoiceTotalsAndNotesSection(invoiceData, availableWidth, PrintCon
|
|
|
47
48
|
dueAmount: dueInfo.due,
|
|
48
49
|
qrPayload,
|
|
49
50
|
upiPhone: resolveUpiPhone(normalizedInvoice),
|
|
50
|
-
showDueSection
|
|
51
|
+
showDueSection,
|
|
52
|
+
isPoSPrint
|
|
51
53
|
});
|
|
52
54
|
if (hasTopSection && hasBottomSection) {
|
|
53
55
|
return [dividerLine, topColumns, bottomColumns];
|
|
@@ -109,6 +111,18 @@ function buildPostTotalsInfoSection(data) {
|
|
|
109
111
|
margin: [0, 0, 0, 6]
|
|
110
112
|
});
|
|
111
113
|
}
|
|
114
|
+
if (data.isPoSPrint) {
|
|
115
|
+
leftStack.push({
|
|
116
|
+
stack: [
|
|
117
|
+
'* Goods once sold will not be taken back or exchanged',
|
|
118
|
+
'* PLEASE GET YOUR MEDICINES CHECKED BY YOUR DOCTOR BEFORE USE *'
|
|
119
|
+
],
|
|
120
|
+
fontSize: 6,
|
|
121
|
+
margin: [5, 0, 0, 6],
|
|
122
|
+
lineHeight: 1.1,
|
|
123
|
+
color: '#111827'
|
|
124
|
+
});
|
|
125
|
+
}
|
|
112
126
|
if (termsText) {
|
|
113
127
|
leftStack.push({
|
|
114
128
|
text: `\u2022 ${termsText}`,
|