Closed ElisaKendall closed 2 years ago
Not at all sure about this change - I don't think you could substitute an instance of Income wherever MonetaryAmount appears e.g. as the price of an equity.
That's not what this does - it says that Income is a subclass of MonetaryAmount, not that all MonetaryAmounts are income?
I didn't say all MonetaryAmounts are Income. If Income is a subclass of MonetaryAmount, then any time an instance of MonetaryAmount is needed e.g. for a Price, then an instance of Income could be used. It seems hasIncome or hasAssessedIncome should be a property with range MonetaryAmount. As for hasIssuedCapital. The domain of the class could be BorrowerAssessment.
I didn't say all MonetaryAmounts are Income. If Income is a subclass of MonetaryAmount, then any time an instance of MonetaryAmount is needed e.g. for a Price, then an instance of Income could be used. It seems hasIncome or hasAssessedIncome should be a property with range MonetaryAmount. As for hasIssuedCapital. The domain of the class could be BorrowerAssessment.
But Income breaks down further - there are subclasses of it so making it a property does not work. There are different perspectives on this, and there may not be a single definition of income for accounting vs. for tax purposes, etc. What you are asking to do is a much bigger change and would eliminate a concept that has been in FIBO for many years. It is also qualified with a restriction that indicates the period of time for which the number is valid ... so it's not the same as a price. No one would make that error.
Signed-off-by: Elisa Kendall ekendall@thematix.com
Description
Modified accounting equity to make income a subclass of monetary amount and eliminate the oblique restriction on monetary amount to simplify its representation
Fixes: #1757 / FND-364
Checklist: