@managesome/eposmatic-toolkit 0.2.394 → 0.2.395

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.
@@ -1189,9 +1189,9 @@ const generateClientWiseData = (data, currencySymbol, gstName) => {
1189
1189
  const clientId = item.client_id ?? CLIENT_ID;
1190
1190
  const clientName = clientNamesMap[clientId];
1191
1191
  if (clientName != null) {
1192
- // item.gst is a plain percentage (e.g. 10 for 10%), not a
1193
- // price stored as int×100000 — do NOT run through convertIntToDecimal.
1194
- const gst = item.gst;
1192
+ // item.gst is stored in ×100000 units (like monetary amounts);
1193
+ // convert to a plain percentage for display.
1194
+ const gst = (0, price_conversion_1.convertIntToDecimal)(item.gst);
1195
1195
  const amount = item.grossAmount;
1196
1196
  const obj = {
1197
1197
  _id: clientId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@managesome/eposmatic-toolkit",
3
- "version": "0.2.394",
3
+ "version": "0.2.395",
4
4
  "description": "A Toolkit Library for Eposmatic",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",