Invoice description field enhancement

Derek Atkins warlord at MIT.EDU
Wed Oct 6 11:29:47 EDT 2004


Quoting John Pettigrew <john at pettigrew.org.uk>:

> > There's no way to differentiate between explicit and implicit zero values.
> 
> Ah - I'd assumed that GnuCash stored unset fields as NULL rather than
> numerical zero. Of course, this would mess up the calculations but I'd not
> thought that deeply  :-)

Uhh, numericals are stored in a gnc_numeric object.  There is no NULL.  It's not
a string.  There's just no way to differentiate between an explicit zero-value
gnc_numeric and an "unset" gnc_numeric.

This is why I suggest an Invoice Report Option to choose whether or not to
display zero values as a number or empty.

-derek

-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord at MIT.EDU                        PGP key available



More information about the gnucash-user mailing list