Job object and QOF registration
Derek Atkins
warlord at MIT.EDU
Mon Jun 9 10:46:55 EDT 2008
Phil Longstaff <plongstaff at rogers.com> writes:
> Many if not all of the business objects have an "active" flag. Most of these use QOF_PARAM_ACTIVE in the QOF object registration. The job object has rows in the registration, once for QOF_PARAM_ACTIVE which registers the getter but not the setter, and once for JOB_ACTIVE, which registers both. However, it turns out that the underlying strings for JOB_ACTIVE and QOF_PARAM_ACTIVE are both "active", so that the registration for JOB_ACTIVE is ignored.
>
> My guess is that this isn't how it should be, but I don't know the code well enough to sort it out. Should JOB_ACTIVE be a different string?
Nope, JOB_ACTIVE should be #define'd to QOF_PARAM_ACTIVE and
the getter/setter should be the same.
> Phil
-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-devel
mailing list