mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
gncOwner convenience functions: jobs do have an active state, fix the getter function. At the same time, move the Job Active getter with the other getters. This is why I missed it the first time.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20616 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
4878672655
commit
31561fdffc
@ -80,9 +80,9 @@ const char * gncJobGetID (const GncJob *job);
|
|||||||
const char * gncJobGetName (const GncJob *job);
|
const char * gncJobGetName (const GncJob *job);
|
||||||
const char * gncJobGetReference (const GncJob *job);
|
const char * gncJobGetReference (const GncJob *job);
|
||||||
GncOwner * gncJobGetOwner (GncJob *job);
|
GncOwner * gncJobGetOwner (GncJob *job);
|
||||||
|
gboolean gncJobGetActive (const GncJob *job);
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
gboolean gncJobGetActive (const GncJob *job);
|
|
||||||
|
|
||||||
/** Return a pointer to the instance gncJob that is identified
|
/** Return a pointer to the instance gncJob that is identified
|
||||||
* by the guid, and is residing in the book. Returns NULL if the
|
* by the guid, and is residing in the book. Returns NULL if the
|
||||||
|
@ -393,9 +393,8 @@ gboolean gncOwnerGetActive (const GncOwner *owner)
|
|||||||
return gncVendorGetActive (owner->owner.vendor);
|
return gncVendorGetActive (owner->owner.vendor);
|
||||||
case GNC_OWNER_EMPLOYEE:
|
case GNC_OWNER_EMPLOYEE:
|
||||||
return gncEmployeeGetActive (owner->owner.employee);
|
return gncEmployeeGetActive (owner->owner.employee);
|
||||||
/* Jobs don't really have an active status, so we consider them always active */
|
|
||||||
case GNC_OWNER_JOB:
|
case GNC_OWNER_JOB:
|
||||||
return TRUE;
|
return gncJobGetActive (owner->owner.job);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user