75 QofInstanceClass parent_class;
77 #define GNCLotClass GncLotClass 80 #define GNC_TYPE_LOT (gnc_lot_get_type ()) 82 (G_TYPE_CHECK_INSTANCE_CAST ((o), GNC_TYPE_LOT, GNCLot)) 83 #define GNC_LOT_CLASS(k) \ 84 (G_TYPE_CHECK_CLASS_CAST((k), GNC_TYPE_LOT, GNCLotClass)) 85 #define GNC_IS_LOT(o) \ 86 (G_TYPE_CHECK_INSTANCE_TYPE ((o), GNC_TYPE_LOT)) 87 #define GNC_IS_LOT_CLASS(k) \ 88 (G_TYPE_CHECK_CLASS_TYPE ((k), GNC_TYPE_LOT)) 89 #define GNC_LOT_GET_CLASS(o) \ 90 (G_TYPE_INSTANCE_GET_CLASS ((o), GNC_TYPE_LOT, GNCLotClass)) 91 GType gnc_lot_get_type(
void);
95 GNCLot * gnc_lot_new (QofBook *);
96 void gnc_lot_destroy (GNCLot *);
99 GNCLot * gnc_lot_lookup (
const GncGUID *guid, QofBook *book);
100 QofBook * gnc_lot_get_book (GNCLot *);
102 void gnc_lot_begin_edit (GNCLot *lot);
103 void gnc_lot_commit_edit (GNCLot *lot);
131 gint gnc_lot_count_splits (
const GNCLot *);
137 void gnc_lot_set_account(GNCLot*,
Account*);
143 void gnc_lot_set_cached_invoice(GNCLot* lot, GncInvoice *invoice);
155 gnc_numeric *, gnc_numeric *);
184 const char * gnc_lot_get_title (
const GNCLot *);
185 const char * gnc_lot_get_notes (
const GNCLot *);
186 void gnc_lot_set_title (GNCLot *,
const char *);
187 void gnc_lot_set_notes (GNCLot *,
const char *);
193 #define gnc_lot_get_guid(X) qof_entity_get_guid(QOF_INSTANCE(X)) 195 #define LOT_IS_CLOSED "is-closed?" 196 #define LOT_BALANCE "balance" 197 #define LOT_TITLE "lot-title" 198 #define LOT_NOTES "notes" GncInvoice * gnc_lot_get_cached_invoice(const GNCLot *lot)
Returns the invoice with which this lot is associated.
void gnc_lot_add_split(GNCLot *, Split *)
Adds a split to this lot.
void gnc_lot_set_closed_unknown(GNCLot *)
Reset closed flag so that it will be recalculated.
Split * gnc_lot_get_earliest_split(GNCLot *lot)
Convenience routine to identify the earliest date in the lot.
Split * gnc_lot_get_latest_split(GNCLot *lot)
Convenience routineto identify the date this lot was closed.
GList SplitList
GList of Split.
SplitList * gnc_lot_get_split_list(const GNCLot *)
Returns a list of all the splits in this lot.
void gnc_lot_remove_split(GNCLot *, Split *)
Adds a split from this lot.
void gnc_lot_get_balance_before(const GNCLot *, const Split *, gnc_numeric *, gnc_numeric *)
Computes both the balance and value in the lot considering only splits in transactions prior to the o...
All type declarations for the whole Gnucash engine.
Business Invoice Interface.
GNCLot * gnc_lot_make_default(Account *acc)
gboolean gnc_lot_is_closed(GNCLot *)
Returns closed status of the given lot.
Account * gnc_lot_get_account(const GNCLot *)
Returns the account with which this lot is associated.
The type used to store guids in C.
gnc_numeric gnc_lot_get_balance(GNCLot *)
Returns the lot balance.