!EPSbhTFKacHmjCdoQb:matrix.org

plain text accounting

176 Members
Doing accounting with plain text | https://plaintextaccounting.org, https://wiki.plaintextaccounting.org | Room is bridged with #plaintextaccounting:libera.chat | See also #plaintextaccounting-space:matrix.org (with spaces-aware client)20 Servers

Load older messages


SenderMessageTime
26 Jan 2022
@Xionkana:libera.chatXionkana left the room.23:43:54
@Xionkana:libera.chatXionkana joined the room.23:46:45
@Xionkana:libera.chatXionkana left the room.23:53:06
@Xionkana:libera.chatXionkana joined the room.23:55:14
@Xionkana:libera.chatXionkana left the room.23:58:58
27 Jan 2022
@melba:libera.chat@melba:libera.chat left the room.00:12:16
@Xionkana:libera.chatXionkana joined the room.00:18:51
@pablo1107:matrix.orgpablo1107

Hey, is this a bug?

~/ledger/import/ppi master*
❯ hledger -f 2021.journal print date:2021-06-07 -x
2021-06-07 Liquidación de Rescate / 201503 / FIMA.PR.A
    assets:investment:ppi    -1338.67 FIMA_PR_A @@ 11,745.83 ARS
    assets:investment:ppi                          11,745.83 ARS


~/ledger/import/ppi master*
❯ hledger -f 2021.journal prices --infer-market-price | grep FIMA_PR
P 2021-03-25 FIMA_PR_A 8.2692 ARS
P 2021-06-07 FIMA_PR_A -8.774254 ARS
P 2022-01-25 FIMA_PR_A 10.549706 ARS
00:46:29
@pablo1107:matrix.orgpablo1107 The --infer-market-price show a negative price for an asset when it's a sell. 00:47:06
@simonmic:matrix.orgsm good catch pablo1107, I think it might be 00:47:58
@pablo1107:matrix.orgpablo1107 No problem, if it helps I'm using hledger 1.24.1, linux-x86_64. 00:48:30
@simonmic:matrix.orgsmwould you mind copying to https://bugs.hledger.org/new00:48:44
@pablo1107:matrix.orgpablo1107Yeah, for sure.00:48:50
@simonmic:matrix.orgsmif it's causing problems, switching the postings might help00:49:07
@simonmic:matrix.orgsmsorry: http://bugs.hledger.org/new00:49:35
@pablo1107:matrix.orgpablo1107Yep, I was going to tell you that url have no SSL. hha00:49:54
@pablo1107:matrix.orgpablo1107switching the postings how? because I tried different things and I never got the correct price, but the inverse price ARS 0.something FIMA instead of FIMA 8.77 ARS00:51:07
@pablo1107:matrix.orgpablo1107https://github.com/simonmichael/hledger/issues/1813 there you go00:53:57
@simonmic:matrix.orgsm pablo1107: I meant reversing their order in the journal 00:54:15
@simonmic:matrix.orgsmthanks for the report00:54:21
@pablo1107:matrix.orgpablo1107
2021-06-07 Liquidación de Rescate / 201503 / FIMA.PR.A
    assets:investment:ppi     11745.83 ARS
    assets:investment:ppi    -1338.67 FIMA_PR_A @@ 11745.83 ARS

This gives the same result.

00:55:54
@pablo1107:matrix.orgpablo1107

And this kinda works:

2021-06-07 Liquidación de Rescate / 201503 / FIMA.PR.A
    assets:investment:ppi     11745.83 ARS
    assets:investment:ppi    -1338.67 FIMA_PR_A
00:56:15
@pablo1107:matrix.orgpablo1107

But it does this:

❯ hledger -f 2021.journal prices --infer-market-price | grep FIMA_PR
P 2021-03-25 FIMA_PR_A 8.2692 ARS
P 2021-06-07 ARS 0.1139698 FIMA_PR_A
P 2022-01-25 FIMA_PR_A 10.549706 ARS
00:56:26
@simonmic:matrix.orgsm

this works better, maybe you already said it above:

2021-06-07 ...
    assets:investment     -11745.83 ARS
    assets:investment       1338.67 FIMA_PR_A @@ 11,745.83 ARS
00:59:03
@simonmic:matrix.orgsmie, put the cost on the positive posting amount00:59:27
@pablo1107:matrix.orgpablo1107But that's not the transaction I put. haha01:44:40
@pablo1107:matrix.orgpablo1107There you're buying the asset, not selling.01:45:15
@simonmic:matrix.orgsmoops, there goes a billion dollars of shareholder assets %-)01:49:54
@pablo1107:matrix.orgpablo1107I wish. lol01:50:47
@pablo1107:matrix.orgpablo1107But I think a billon dollars of shareholders assets will come with a lot of issues, so I pass. haha01:51:33

There are no newer messages yet.


Back to Room List