mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
add gnc_lot_count_splits() function
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7033 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
2ce7831f7d
commit
f5994b5554
@ -169,6 +169,12 @@ gnc_lot_get_split_list (GNCLot *lot)
|
||||
return lot->splits;
|
||||
}
|
||||
|
||||
gint gnc_lot_count_splits (GNCLot *lot)
|
||||
{
|
||||
if (!lot) return 0;
|
||||
return g_list_length (lot->splits);
|
||||
}
|
||||
|
||||
/* ============================================================= */
|
||||
|
||||
gnc_numeric
|
||||
|
@ -61,6 +61,7 @@ void gnc_lot_remove_split (GNCLot *, Split *);
|
||||
* invalidate the returned pointer.
|
||||
*/
|
||||
SplitList * gnc_lot_get_split_list (GNCLot *);
|
||||
gint gnc_lot_count_splits (GNCLot *);
|
||||
|
||||
/* The gnc_lot_get_account() routine returns the account with which
|
||||
* this lot is associated. */
|
||||
|
Loading…
Reference in New Issue
Block a user