@fuzzle/opencode-accountant 0.13.20 → 0.13.21

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 +1 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -24712,7 +24712,6 @@ function formatJournalEntry(match2) {
24712
24712
  const btcQuantity = formatBtcQuantity(btcRow.quantity);
24713
24713
  const priceCurrency = btcRow.price.currency;
24714
24714
  const hasFees = btcRow.fees.amount > 0;
24715
- const isBaseCurrency = fiatCurrency === "CHF";
24716
24715
  const netFiatAmount = hasFees ? fiatRow.amount - btcRow.fees.amount : fiatRow.amount;
24717
24716
  const effectivePrice = hasFees ? netFiatAmount / btcRow.quantity : btcRow.price.amount;
24718
24717
  const fiatAmount = formatAmount(fiatRow.amount);
@@ -24721,7 +24720,7 @@ function formatJournalEntry(match2) {
24721
24720
  const pair = `${fiatCurrency.toLowerCase()}-btc`;
24722
24721
  const equityFiat = `equity:conversion:${pair}:${fiatCurrency.toLowerCase()}`;
24723
24722
  const equityBtc = `equity:conversion:${pair}:btc`;
24724
- const costAnnotation = isBaseCurrency ? ` @ ${btcPrice} ${priceCurrency}` : "";
24723
+ const costAnnotation = ` @ ${btcPrice} ${priceCurrency}`;
24725
24724
  const postings = [
24726
24725
  {
24727
24726
  account: `assets:bank:revolut:${fiatCurrency.toLowerCase()}`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fuzzle/opencode-accountant",
3
- "version": "0.13.20",
3
+ "version": "0.13.21",
4
4
  "description": "An OpenCode accounting agent, specialized in double-entry-bookkepping with hledger",
5
5
  "author": {
6
6
  "name": "ali bengali",