mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
src/engine/gnc-lot.[ch]: provide gnc_lot_get_book() function
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7018 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
93cbc81065
commit
e2299697df
@ -130,6 +130,12 @@ gnc_lot_lookup (const GUID *guid, GNCBook *book)
|
||||
guid, GNC_ID_LOT);
|
||||
}
|
||||
|
||||
GNCBook *
|
||||
gnc_lot_get_book (GNCLot *lot)
|
||||
{
|
||||
if (!lot) return NULL;
|
||||
return lot->book;
|
||||
}
|
||||
|
||||
|
||||
/* ============================================================= */
|
||||
|
@ -45,7 +45,7 @@ void gnc_lot_destroy (GNCLot *);
|
||||
|
||||
const GUID * gnc_lot_get_guid (GNCLot *p);
|
||||
GNCLot * gnc_lot_lookup (const GUID *guid, GNCBook *book);
|
||||
|
||||
GNCBook * gnc_lot_get_book (GNCLot *);
|
||||
|
||||
/* The gnc_lot_add_split() routine adds a split to this lot. Note
|
||||
* that *all* splits in a lot must also be in the same account.
|
||||
|
Loading…
Reference in New Issue
Block a user