I assume we can add this easily with the core features, i think also it matches best there, since its a rather general feature. As a consequence i will add a section also in the spec.
Tel +41 (43) 317 05 30
Send from Mobile
Yes maybe a decorator is the better approach since you get then also a specific type for all the money types in postings. So you can distinguish them from standard money type. I think this will be worth to be shown at least in the sample. Or sould we also add a note to the specification?
+41 44 332 53 73 (*412 5373)
In booking systems i agree this the case since the sides of the accounts on which is booked (debit/credit or efforts/benefits) is relevant. But i would not model it into the amount, i would write a decorator that adds the constraints to an amount. Outside of booking systems, in investment & finance calculations negative values ( eg when modeling expected monetary cash outflows) are normal, as well as within shopping carts ( eg discounts) or in simple milkman calculations...
Just had a conversation with an financial accounting systems specialists. He mentioned that typically all money amounts carry it’s currencies also in financial accounting systems. But he pointed out that typically the value is an absolute value i.e. has no sign. Since this is determined by the kind of booking and the value is always absolute.
We mention accounting systems as targeted. So I like to raise the question, if a money type should support that it only can contain absolute values.