-
-
Notifications
You must be signed in to change notification settings - Fork 320
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
Support simple expressions in postings #183
Comments
A nice feature request with great examples. I can see how this can be useful and a labour saver, yet I feel it will bring a lot of new complexities, interactions and support burden. It will be quite a few more lines of code than your (annoyingly short) perl script too. So I think I'm around -0.1 on this feature. But if a pull request appeared I would accept it. |
Needs discussion/developers, closing. |
On #913 @sorsasampo wrote:
I can't easily keep track of this set of issues, so I'm not sure if we have one already, but I've reopened #183 for this. |
Summary: there is new interest in this issue and some related PRs from @ag-eitilt, beginning with #871. It might happen, if we can keep the complexities down. |
When working with differenciated VAT (in EU), an invoice might say:
Food A (12% vat) EUR 50
Food B (12% vat) EUR 10
...
...
Plastic bag (25% vat) EUR 0.1
Transportation (25% vat) EUR 4
Total: EUR 1423.00
including VAT 25% EUR 0.82
including VAT 12% EUR 240
In this scenario, it is useful to be able to write any of the following:
That is, if a few entries have a different vat setting, being able to use some simple calculations is good. The idea is that the posting should only include numbers that are easy to find on the receipt and it should be succinct.
It could have been written:
but that is pretty hackish and unclear I think.
In this example I have accounts that have fixed VAT amounts, so I can transfer the VAT at the end of the reporting period:
Another way to do this is like this:
In that example, only numbers from the receipt are used, and the posting must balance. Without the ability to calculate non-vat food and other expenses, a calculator must be used, which makes writing the posting 3x as much work. A posting where the numbers are calculated is also less clear. It is hard to know whether the numbers correspond to the receipt.
The following simple 2-minute hack in perl implements this partially as a preprocessor, but more principled support would be great.
The text was updated successfully, but these errors were encountered: