shareneus 1.6.82 → 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.
@@ -96,13 +96,13 @@ function GetPartyDetails(Entity, InvoicePDFData) {
96
96
  var _a;
97
97
  return {
98
98
  style: 'tableExample',
99
+ marginBottom: 7,
99
100
  table: {
100
101
  widths: ['*', 'auto', '*'],
101
102
  body: [
102
103
  [{
103
104
  // marginTop: 4,
104
105
  marginLeft: 5,
105
- marginBottom: 20,
106
106
  // stack: [{ text: 'UHID : ' + InvoicePDFData.Customer.Code, style: ['headerstyle'] },
107
107
  // { text: 'Name : ' + InvoicePDFData.Customer.Name, style: ['headerstyle'] },
108
108
  // { text: 'Doctor : ' + InvoicePDFData.Name, style: ['headerstyle'] }],
@@ -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}`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shareneus",
3
- "version": "1.6.82",
3
+ "version": "1.6.84",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",