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

Txn sub-groups #88

Open
hrj opened this issue Jun 16, 2016 · 0 comments
Open

Txn sub-groups #88

hrj opened this issue Jun 16, 2016 · 0 comments

Comments

@hrj
Copy link
Owner

hrj commented Jun 16, 2016

Comment by @jaa127 via email:

It would be cool to be able generate transactions like these:

2015-01-02   tmx 18/45 D12L
        {
                Gas:He:Tank:102         -(273 - 243) ;  40 bars
                Gas:He:Tank:103         -(100 - 70) ; 30 bars
                Gas:He:Tank:104         -(80  - 50) ; 30 bars
                Divers:jaa127:He ; <== No amount here!
        }
        {
                Gas:O2:Tank:208         -(180 - 171) ; 9 bars
                Gas:O2:Tank:209         -(143 - 134) ; 9 bars
                Divers:jaa127:O2  ; <== No amount here!
        }

Because in real life it is "single transaction", but with current
mechanism, it has to be either:

  • all postings has to be calculated (and then there is change to
    miss-calculate gas amounts by type, and mix up gas types. E.g. on
    Abandon "bars" will zero out, but credit/debit by gas type is wrong. If
    that happens, then it will badly mess up billing because Helium is 5-10x
    more expensive than Oxygen in Finland.
  • Or there has to be two separate transactions, which isn't so nice. For
    diver who is mixing gases it would be really nice to have one clean and
    clear single transaction, which is listing all gases what you used.

So scopes looks like perfect solution for that!


PS. This was clubbed with the scopes idea, but I think it is better to give it a separate name, say, "transaction sub-group".

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

No branches or pull requests

1 participant