[OGo-Developer] OGo Invoice Application

Adam Tauno Williams developer@opengroupware.org
Wed, 26 Dec 2007 09:41:35 -0500


--=-9j9aGWa+Cq4OJJD//E6y
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable


> > the last days I again fiddled a bit around with the OGo Invoice =20
> > application
> > and actually got it working.
> Why? Its really not worth the effort.

I think he's using it as an example / diddle application.  Which makes
some sense since it is the only not-entirely-trivial non-core OGo
application in existence.

> > 1. add a switch statement to sope-gdl11/PostgreSQL/NSNumber+PGVal.m =20
> > checking
> > for t_double.
> > 2. exchange all t_double database field definitions in Misc/Invoice =20
> > code
> > with float. Float is implemented in NSNumber+PGVal.m to use atof(), so
> > returning a double value.
> > What would be the way to go?
> Both double and float are completely inappropriate for storing =20
> moneytary values. You need integer arithmetic.

Yep, float and double are disasterous ways to store monetary values.

--=-9j9aGWa+Cq4OJJD//E6y
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4-svn0 (GNU/Linux)

iD8DBQBHcmgfLRePpNle04MRAgk6AJ9xjHVh/d1YXjZKiTpkvrCi5bPiJwCfbNDW
aI/5Pk8NZYG4XNruCihlbPk=
=lM08
-----END PGP SIGNATURE-----

--=-9j9aGWa+Cq4OJJD//E6y--