Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Commodity pricing example wrong in manual #2084

Open
deusmax opened this issue Jan 23, 2022 · 3 comments
Open

Commodity pricing example wrong in manual #2084

deusmax opened this issue Jan 23, 2022 · 3 comments

Comments

@deusmax
Copy link

deusmax commented Jan 23, 2022

In section 4.5.4 Complete control over commodity pricing of the manual, the results of output:814A366 is wrong.
Running the ledger entries instead gives:

12-03-02.Fri KFC                                  Expenses:Food2                                             2 EUR                 2 EUR
12-03-03.Sat KFC                                  Expenses:Food3                                             3 EUR                 5 EUR
12-03-04.Sun KFC                                  Expenses:Food4                                             4 EUR                 9 EUR
12-03-05.Mon KFC                                  Expenses:Food5                                                $1                    $1
                                                                                                                                   9 EUR
12-03-06.Tue KFC                                  Expenses:Food6                                                $1                    $2
                                                                                                                                   9 EUR
12-03-07.Wed KFC                                  Expenses:Food7                                             1 CAD                    $2
                                                                                                                                   1 CAD
                                                                                                                                   9 EUR
12-03-08.Thu XACT                                 Expenses:Food8                                             8 EUR                    $2
                                                                                                                                   1 CAD
                                                                                                                                  17 EUR
12-03-09.Fri POST                                 (Expenses:Food9)                                           9 EUR                    $2
                                                                                                                                   1 CAD
                                                                                                                                  26 EUR

Results conveniently provided here: ex-4_5_4.txt

@tbm
Copy link
Contributor

tbm commented Jan 23, 2022

It seems you added the two automated transactions just before input:814A366, but I don't think they are part of 814A366.

Please double check. I think this is user error

@deusmax
Copy link
Author

deusmax commented Jan 26, 2022

Correct. The two automated transactions are part of the section's commodity pricing examples and should be included in the example. They are part of the section's subject and should be demonstrated in the example.
My guess is that they were inadvertently left out. They fit well with the example.

@tbm
Copy link
Contributor

tbm commented Jan 26, 2022

@enderw88 are you still around? Can you comment on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants