!GYlETOAdUBSCcvnEMY:matrix.org

hledger

356 Members
Fast, robust, intuitive plain text accounting | https://hledger.org, https://github.com/simonmichael/hledger | Room is bridged with #hledger:libera.chat and logged at https://view.matrix.org/room/!GYlETOAdUBSCcvnEMY:matrix.org | See also: #hledger-bots:libera.chat, #hledger-audiovideo:matrix.org, #plaintextaccounting:matrix.org, http://etherpad.hledger.org, room widget in Element13 Servers

Load older messages


SenderMessageTime
3 Oct 2022
@nurrng:matrix.orgElliott *
D $1,000.00
C 1 sat = 0.00000001 BTC

Seemed to work but everything is reported in sat for ledger. I would like to be able to report in BTC by default.

12:15:37
@nurrng:matrix.orgElliott If is do C 1.00000000 BTC = 100000000 sat my ledger doesn't balance. I don't understand why. 12:24:34
@nurrng:matrix.orgElliott

I think I discovered a bug in ledger actually. So, I'll go ahead and report it. If I do the commodity first ledger fails to balance.

2022/10/01 Sell
Wallet -1 BTC
Bank $20000

If I do the commodity second then it works.

2022/10/01 Sell
  Wallet     -1 BTC
  Bank       $20000

🤷

13:02:16
@nurrng:matrix.orgElliott *

I think I discovered a bug in ledger actually. So, I'll go ahead and report it. If I do the commodity first ledger fails to balance.

2022/10/01 Sell
  Wallet     -1 BTC
  Bank  $20000

If I do the commodity second then it works.

2022/10/01 Sell
  Wallet     -1 BTC
  Bank       $20000

🤷

13:02:30
@nurrng:matrix.orgElliott *

I think I discovered a bug in ledger actually. So, I'll go ahead and report it. If I do the commodity first ledger fails to balance.

2022/10/01 Sell
  Wallet     -1 BTC
  Bank  $20000

If I do the commodity second then it works.

2022/10/01 Sell
  Bank       $20000
  Wallet     -1 BTC  

🤷

13:02:49
@nurrng:matrix.orgElliottDoes hledger have a price-db feature like ledger? I just assumed it did.13:12:04
@DigitalKiwi:libera.chatDigitalKiwiis price-db what holds the P directives?13:14:03
@DigitalKiwi:libera.chatDigitalKiwihttps://hledger.org/1.27/hledger.html#market-prices13:22:11
@DigitalKiwi:libera.chatDigitalKiwihttps://github.com/prikhi/hledger-stockquotes#readme13:24:42
@CruxOfTheB:libera.chatCruxOfTheBAre virtual postings supported in CSV importing ?13:58:49
@CruxOfTheB:libera.chatCruxOfTheBI have this example here :13:59:03
@CruxOfTheB:libera.chatCruxOfTheBhttp://termbin.com/nnsm13:59:05
@CruxOfTheB:libera.chatCruxOfTheB Using this command sequence : hledger -f 2022-01-01.csv --rules-file=cheque.csv.rules print -x -c '1,00 $' 13:59:45
@CruxOfTheB:libera.chatCruxOfTheB For the record, the error I get is "could not balance this transaction:\n real postings' sum should be 0 but is: 39,66 $" 14:27:26
@CruxOfTheB:libera.chatCruxOfTheBThe 39.66 comes from the 0.25 x 158.66.14:28:31
@nurrng:matrix.orgElliott
In reply to @DigitalKiwi:libera.chat
is price-db what holds the P directives?
That and other directives like C which is a commodity equivalency. Like 1.00 Kg = 1000 g.
14:37:25
@nurrng:matrix.orgElliott Does hledger have a C directive? 14:38:21
@xjmcdkhdqg:matrix.orgjool83
In reply to @nurrng:matrix.org
Does hledger have a C directive?
https://hledger.org/1.27/hledger.html#commodity-display-style
14:57:13
@nurrng:matrix.orgElliottDoes the documentation explain how to have two different units for the same commodity?15:22:07
@DigitalKiwi:libera.chatDigitalKiwi curl -s "https://api.pro.coinbase.com/products/stats"|jq 'to_entries'|jq '.[]'|jq '["P", (now|strftime("%Y/%m/%d")),.key,.value.stats_24hour.last]'|jq --slurp '.[]|join(" ")' -cr|grep -E '\-USD ' | sed 's:-USD : $:' 16:53:17
@DigitalKiwi:libera.chatDigitalKiwihttps://hledger.org/1.27/hledger.html#directives-influencing-number-parsing-and-display17:09:03
@DigitalKiwi:libera.chatDigitalKiwi Elliott: ^ 17:09:06
@simonmic:matrix.orgsm Elliott: hledger doesn't have the C feature. You can simulate it somewhat with P and -X 17:15:54
@simonmic:matrix.orgsm CruxOfTheB: can't test now but I believe that should work. I see you wrongly parenthesised an amount though, does fixing that help ? 17:19:43
@simonmic:matrix.orgsmoh I see, you used parentheses to negate that amount17:22:26
@simonmic:matrix.orgsmlooks suspicious, will test17:23:33
@simonmic:matrix.orgsm CruxOfTheB: the whitespace after account4 (Dépenses:Autonome:Bureau:Électricité) is confusing it. Thanks! Fixing in master 17:51:17
@nurrng:matrix.orgElliott
In reply to @simonmic:matrix.org
Elliott: hledger doesn't have the C feature. You can simulate it somewhat with P and -X
Just as well because the ledger C directive isn't fully working anyway.
18:55:57
@nurrng:matrix.orgElliott* Just as well because the ledger C directive isn't fully working.18:56:15
@CruxOfTheB:libera.chatCruxOfTheBArgh, I should have seen that. (I have whitespace highlighting in magit only).19:39:29

There are no newer messages yet.


Back to Room List