@fuzzle/opencode-accountant 0.13.19-next.1 → 0.13.20-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.
- package/dist/index.js +1 -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 =
|
|
24723
|
+
const costAnnotation = ` @ ${btcPrice} ${priceCurrency}`;
|
|
24725
24724
|
const postings = [
|
|
24726
24725
|
{
|
|
24727
24726
|
account: `assets:bank:revolut:${fiatCurrency.toLowerCase()}`,
|
package/package.json
CHANGED