@social-mail/social-mail-client 1.9.27 → 1.9.28

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@social-mail/social-mail-client",
3
- "version": "1.9.27",
3
+ "version": "1.9.28",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -73,7 +73,6 @@ export default class StorePrintJournalPage extends ContentPage<{ journalID }> {
73
73
  <tr>
74
74
  <th class="right">No</th>
75
75
  <th>Product</th>
76
- <th></th>
77
76
  <th>Tax Code</th>
78
77
  <th class="right">Price</th>
79
78
  <th class="right">Quantity</th>
@@ -84,18 +83,19 @@ export default class StorePrintJournalPage extends ContentPage<{ journalID }> {
84
83
  itemRenderer={(item: IStoreJournalLineItem, i) => <tbody>
85
84
  <tr>
86
85
  <td class="right">{(i + 1).toString()}</td>
87
- <td>{item.item.name}</td>
86
+ <td>{item.item.name}
87
+ </td>
88
88
  <td>{item.item.taxCode}</td>
89
89
  <td class="right">{(Number(item.amount) / Number(item.quantity)).toFixed(2)}</td>
90
90
  <td class="right">{item.quantity}</td>
91
91
  <td class="right">{item.amount}</td>
92
92
  </tr>
93
93
  { ... item.taxLineItems?.map((tax) => <tr>
94
- <td></td>
95
94
  <td></td>
96
95
  <td>{tax.item.name} {(tax.amount * 100).toFixed(0)}%</td>
97
96
  <td></td>
98
97
  <td></td>
98
+ <td></td>
99
99
  <td class="right">{tax.total}</td>
100
100
  </tr>) ?? []}
101
101
  </tbody>}
@@ -103,15 +103,15 @@ export default class StorePrintJournalPage extends ContentPage<{ journalID }> {
103
103
  footer={true}
104
104
  footerRenderer={() => <tfoot>
105
105
  <tr>
106
- <th attr-colspan="4" class="right">Total before Taxes</th>
106
+ <th attr-colspan="5" class="right">Total before Taxes</th>
107
107
  <th class="right">{journal.lineItems.sum((x) => x.itemType !== "tax" ? Number(x.amount) : 0)?.toFixed(2)}</th>
108
108
  </tr>
109
109
  <tr>
110
- <th attr-colspan="4" class="right">Taxes</th>
110
+ <th attr-colspan="5" class="right">Taxes</th>
111
111
  <th class="right">{journal.lineItems.sum((x) => x.itemType === "tax" ? Number(x.total) : 0)?.toFixed(2)}</th>
112
112
  </tr>
113
113
  <tr>
114
- <th attr-colspan="4" class="right">Total</th>
114
+ <th attr-colspan="5" class="right">Total</th>
115
115
  <th class="right">{journal.total}</th>
116
116
  </tr>
117
117
  </tfoot>}