!GYlETOAdUBSCcvnEMY:matrix.org

hledger

147 Members
Fast, robust, intuitive plain text accounting | https://hledger.org, https://github.com/simonmichael/hledger | This room is logged at https://view.matrix.org/room/!GYlETOAdUBSCcvnEMY:matrix.org | See also: #plaintextaccounting:matrix.org, https://etherpad.hledger.org, https://hledger.org/support22 Servers

Load older messages


SenderMessageTime
24 Apr 2024
@simonmic:matrix.orgsm

I see. Explanation:

  1. while importing test-1.csv the only AAPL amount it can see is the one in the csv. It has precision 0 (no decimal places), so it infers that as AAPL's style when generating the entry.
  2. while importing test-2.csv, it takes the style from the AAPL amount in the journal (from step 1), which has precision 0.
22:29:27
@daveakre:matrix.orgdaveakreAh I see22:29:48
@simonmic:matrix.orgsm to force it to work even when there is no real data in the journal, add a commodity declaration for AAPL 22:30:15
@daveakre:matrix.orgdaveakreIs the best solution to pre-process the original CSV file to add decimal places?22:30:16
@daveakre:matrix.orgdaveakreAh okay22:30:26
@daveakre:matrix.orgdaveakreThat works for me22:30:37
@daveakre:matrix.orgdaveakreThanks very much for taking a look22:30:49
@simonmic:matrix.orgsmno problem daveakre22:30:59
@daveakre:matrix.orgdaveakre(It may be worth adding a small note about this on the import guide, or maybe in the "how to specify amounts" section, which is where I found myself trying to debug.)22:32:00
@simonmic:matrix.orgsm * to force your preferred precision even when there is no real data in the journal, add a commodity declaration for AAPL 22:32:13
@simonmic:matrix.orgsmI added the https://hledger.org/dev/hledger.html#commodity-display-styles section for that fairly recently. If you have links to those places that's helpful22:33:32
@daveakre:matrix.orgdaveakreAh I must have missed this before. I was thinking of https://hledger.org/1.33/hledger.html#setting-amounts, but I see there's already a note there in the latest documentation.22:39:51
@simonmic:matrix.orgsmok, I'll add a mention there22:40:44
@simonmic:matrix.orgsmor at https://hledger.org/1.33/hledger.html#amount-decimal-places perhaps22:41:22
@simonmic:matrix.orgsmor the latest dev version, rather22:41:35
@daveakre:matrix.orgdaveakreThat's a great idea. I think it's alluded to there, but you have to think carefully about it.22:43:42
@daveakre:matrix.orgdaveakre * That's a great idea. I think it's alluded to there, but you have to think carefully about it if you don't know exactly what you're looking for.22:43:54
@simonmic:matrix.orgsmindeed, I appreciate the report22:49:24
@daveakre:matrix.orgdaveakre * Ah interesting, I hadn't used debugging for importing22:52:33
@simonmic:matrix.orgsmhttps://hledger.org/dev/hledger.html#amount-decimal-places expanded. That was a bit hard to describe23:42:53
@simonmic:matrix.orgsm daveakre ^ 23:42:56
@daveakre:matrix.orgdaveakreIt's definitely difficult to describe23:44:30
@daveakre:matrix.orgdaveakreBut despite that difficulty, that description is excellent23:44:56
@daveakre:matrix.orgdaveakreThanks very much for adding it23:45:29
25 Apr 2024
@man_of_letters:mozilla.orgMan of Letters removed their profile picture.13:43:15
@man_of_letters:mozilla.orgMan of Letters set a profile picture.13:43:26
@sol:matrix.orgsolHello. I'm not sure if it's a bug or a feature, but the commodity style directive is not being obeyed in the HTML output.14:09:04
@sol:matrix.orgsol I tried both commodity INR 1,00,00,000.00 in the journal as well as --commodity-style 'INR 1,00,00,000.00' on the command-line. 14:10:14
@sol:matrix.orgsol The commas show up fine in the text output, but not if I pass -O html. 14:10:42
@tewuzij:beeper.comNguyễn Trọng Cường joined the room.14:28:49

There are no newer messages yet.


Back to Room ListRoom Version: 6