@fuzzle/opencode-accountant 0.16.3-next.1 → 0.16.4-next.1

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -27245,9 +27245,9 @@ async function preprocessIbkr(csvPath, directory, currency, year, lotInventoryPa
27245
27245
  d.quantity || "",
27246
27246
  d.price || "",
27247
27247
  d.priceCurrency,
27248
- d.grossAmount || "",
27249
- d.commission || "",
27250
- d.netAmount
27248
+ d.grossAmount ? Math.round(d.grossAmount * 100) / 100 : "",
27249
+ d.commission ? Math.round(d.commission * 100) / 100 : "",
27250
+ Math.round(d.netAmount * 100) / 100
27251
27251
  ].join(","));
27252
27252
  fs22.writeFileSync(filteredCsvPath, csvHeader + `
27253
27253
  ` + csvRows.join(`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fuzzle/opencode-accountant",
3
- "version": "0.16.3-next.1",
3
+ "version": "0.16.4-next.1",
4
4
  "description": "An OpenCode accounting agent, specialized in double-entry-bookkepping with hledger",
5
5
  "author": {
6
6
  "name": "ali bengali",