You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wonder if it would be useful to add TaxedMoney type with a distinction between net amount and gross amount, just a proposition though. Tell me what you think.
But then, the following requirements should be met:
Changing tax updates the amounts, should it calculate from gross or net?
Two static instantiation methods to be able to instantiate from gross or from net FromNet/FromGross
Change of gross amount changes net amount, and change of net amount changes gross amount respectively to keep amounts synchronized
Taxation is pretty complex, and it would be great if NodaMoney handled that as well
The text was updated successfully, but these errors were encountered:
I like this, I've implemented my own and use it everywhere in the code base.
But I think it needs to be split out to another library. For example, I just saw a Transaction.cs in master branch that has a tuple of (Value, ExchangeRate, Discount, Tax). I feel it's starting to step on the toes of the application. It's not something I would want to use in my application. Looking down the issue list, I see IBAN requested - something I'm also interested in, but perhaps not all lumped into core NodaMoney, what started off as a simple type library will start to get heavy.
@remyvd thoughts?
NodaMoney (Money, ExchangeRate, core data types)
NodaMoney.Banking (IBAN, Credit Card etc)
NodaMoney.Accounting (with things like TaxedMoney, Transaction, FxAmount (Base:Money, Foreign:Money, ExchangeRate, see https://hillside.net/plop/2015/papers/penguins/8.pdf)
NodaMoney.Finance (Finance-y things)
I wonder if it would be useful to add
TaxedMoney
type with a distinction between net amount and gross amount, just a proposition though. Tell me what you think.But then, the following requirements should be met:
FromNet
/FromGross
Taxation is pretty complex, and it would be great if NodaMoney handled that as well
The text was updated successfully, but these errors were encountered: