GnuCash
5.6-125-g579da58a10+
|
Files | |
file | gncBillTerm.h |
Billing Term interface. | |
Macros | |
#define | GNC_ID_BILLTERM "gncBillTerm" |
#define | GNC_TYPE_BILLTERM (gnc_billterm_get_type ()) |
#define | GNC_BILLTERM(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GNC_TYPE_BILLTERM, GncBillTerm)) |
#define | GNC_BILLTERM_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), GNC_TYPE_BILLTERM, GncBillTermClass)) |
#define | GNC_IS_BILLTERM(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GNC_TYPE_BILLTERM)) |
#define | GNC_IS_BILLTERM_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GNC_TYPE_BILLTERM)) |
#define | GNC_BILLTERM_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GNC_TYPE_BILLTERM, GncBillTermClass)) |
#define | ENUM_TERMS_TYPE(_) |
How to interpret the amount. More... | |
#define | gncBillTermGetGUID(x) qof_instance_get_guid (QOF_INSTANCE(x)) |
Functions | |
GType | gnc_billterm_get_type (void) |
time64 | gncBillTermComputeDueDate (const GncBillTerm *term, time64 post_date) |
Comparison Functions | |
int | gncBillTermCompare (const GncBillTerm *a, const GncBillTerm *b) |
Compare BillTerms on their name for sorting. More... | |
gboolean | gncBillTermEqual (const GncBillTerm *a, const GncBillTerm *b) |
Check if all internal fields of a and b match. More... | |
gboolean | gncBillTermIsFamily (const GncBillTerm *a, const GncBillTerm *b) |
Check only if the bill terms are "family". More... | |
#define ENUM_TERMS_TYPE | ( | _ | ) |
How to interpret the amount.
You can interpret it as a VALUE or a PERCENT. ??? huh? NOTE: This enum /depends/ on starting at value 1
Definition at line 79 of file gncBillTerm.h.
int gncBillTermCompare | ( | const GncBillTerm * | a, |
const GncBillTerm * | b | ||
) |
Compare BillTerms on their name for sorting.
Definition at line 629 of file gncBillTerm.c.
gboolean gncBillTermEqual | ( | const GncBillTerm * | a, |
const GncBillTerm * | b | ||
) |
Check if all internal fields of a and b match.
Definition at line 643 of file gncBillTerm.c.
gboolean gncBillTermIsFamily | ( | const GncBillTerm * | a, |
const GncBillTerm * | b | ||
) |
Check only if the bill terms are "family".
This is the case if
In practice, this check if performed by comparing the bill term's names. This is required to be unique per parent/children group.
Definition at line 707 of file gncBillTerm.c.