Comments (4)
@simonmichael thanks; I see, hledger check accounts
is what I want and I'm happy enough with that to close the issue.
To me it was just surprising to see the requirement for explicitness be part of strictness; but I get that it's probably best to just leave it as-is.
Thanks for the prompt response!
from hledger.
The 2 transactions are not equivalent.
The first one is unbalanced. When you add to one account, you have to deduct the other.
From my understanding the second os equivalent to this:
a 10 USD
b -20 GBP
from hledger.
from hledger.
@NobbZ , sorry, I made a typo; I wanted a minus sign in there (i've edited the original post); but the idea is correct; consider the journal:
; a.journal
commodity 1,000.00 GBP
commodity 1,000.00 AUD
account a
account b
; Strict-checking fails
; 2021-01-01 Example
; a -10.00 AUD
; b 20.00 GBP
; Strict-checking works
2021-01-01 Example
a -10.00 AUD @@ 20 GBP
b
they both give the same balances (check with hledger -f a.journal reg
) ; but the first one fails strict checking and the second does not.
from hledger.
Related Issues (20)
- Support --sort for register command
- Documentation: if|table, priority of search patterns HOT 12
- hledger-ui : Quickly change status of an entry HOT 1
- Make the newest version apt binaries available for Ubuntu 22.04.x LTS HOT 7
- print: preserve Ledger-specific lot syntax in amounts, even if unsupported
- CSV files, variable number of fields
- Extra BOM in CSV file, hledger reports an error HOT 6
- roi valuation refuses to unify accounts, gives incorrect recommendation HOT 7
- directives from included files have are ignored HOT 4
- date2-format for date2, CSV import HOT 1
- Project level default configuration should be possible without user intervention HOT 6
- Inconsistent Decimal Mark Handling after CSV Import with Rules HOT 2
- 1.25: balance reports' HTML output stopped showing digit group marks HOT 1
- roi command includes unwanted amounts when given a period and dates on postings. HOT 6
- `stack8.10.yaml`, build failure `NonEmpty` does not export `singleton` HOT 3
- incorrect prices for "daily" roi HOT 8
- Install instruction under Linux with release 1.34 HOT 1
- tldr clients and documentation HOT 4
- Account type tag inconsistently recognized when declared in multiple files HOT 8
- `check` command should not stop after the first error HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hledger.