Skip to main content

[JSR-354] Re: Absolute value support

  • From: Werner Keil <werner.keil@...>
  • To: jcurrency_mail@...
  • Subject: [JSR-354] Re: Absolute value support
  • Date: Thu, 11 Apr 2013 08:47:54 +0200

Btw, it seems, not only from java.util.Currency, the term "fraction" or "fractionalCurrencyUnit" is almost more common than "minor"
or

Most currencies have just one fraction like "cent" or "penny", at least Bitcoin has 2 named fractions, technically the fractionalDigit may vary for Bitcoin, down to 9 digits, and some of these may have a separate name. In practice, using just one main currency unit and one fraction at a time per transaction could be sufficient, unless we think, a multi-fraction approach similar to what TemporalAmount does for time units was necessary?

Werner

On Thu, Apr 11, 2013 at 8:31 AM, Freitag Sascha (KFSQ 3) <sascha.freitag@...> wrote:

Hi,

 

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?

 

Cheers Sascha

 

Sascha Freitag

Information Architecture

+41 44 332 53 73 (*412 5373)

 

From: Anatole Tresch [mailto:atsticks@...]
Sent: Wednesday, April 10, 2013 7:16 PM


To: jcurrency_mail@...
Subject: [JSR-354] Re: Absolute value support

 

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...

 

Cheers

Anatole

-

Anatole Tresch

Glärnischweg 10

8620 Wetzikon

-

Send from Mobile


Am 10.04.2013 um 15:15 schrieb "Freitag Sascha (KFSQ 3)" <sascha.freitag@...>:

Hi all,

 

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.

 

Regards Sascha

 




[JSR-354] Absolute value support

Freitag Sascha (KFSQ 3) 04/10/2013

[JSR-354] Re: Absolute value support

Werner Keil 04/10/2013

[JSR-354] Re: Absolute value support

Freitag Sascha (KFSQ 3) 04/11/2013

[JSR-354] Re: Absolute value support

Werner Keil 04/11/2013

[JSR-354] Re: Absolute value support

Anatole Tresch 04/11/2013

[JSR-354] Re: Absolute value support

Anatole Tresch 04/10/2013

[JSR-354] Re: Absolute value support

Werner Keil 04/10/2013

[JSR-354] Re: Absolute value support

Freitag Sascha (KFSQ 3) 04/11/2013

[JSR-354] Re: Absolute value support

Anatole Tresch 04/11/2013

[JSR-354] Re: Absolute value support

Werner Keil 04/11/2013

[JSR-354] Re: Absolute value support

Jeremy Davies 04/11/2013

[JSR-354] Re: Absolute value support

Anatole Tresch 04/13/2013

[JSR-354] Re: Absolute value support

Werner Keil 04/14/2013

[JSR-354] Re: Absolute value support

Anatole Tresch 04/14/2013
 
 
Close
loading
Please Confirm
Close