@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
|
|
1193
|
-
//
|
|
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,
|