mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Show empty business splits in lot viewer
This commit is contained in:
parent
254b4fbc2f
commit
96c22f54a3
@ -500,8 +500,9 @@ gnc_split_viewer_fill (GNCLotViewer *lv, GtkListStore *store, SplitList *split_l
|
|||||||
time64 date = xaccTransGetDate (trans);
|
time64 date = xaccTransGetDate (trans);
|
||||||
gnc_numeric amnt, valu, gains;
|
gnc_numeric amnt, valu, gains;
|
||||||
|
|
||||||
/* Do not show gains splits */
|
/* Do not show gains splits, however do show empty business splits */
|
||||||
if (gnc_numeric_zero_p (xaccSplitGetAmount(split))) continue;
|
if (!xaccAccountIsAPARType (xaccAccountGetType (xaccSplitGetAccount (split)))
|
||||||
|
&& gnc_numeric_zero_p (xaccSplitGetAmount(split))) continue;
|
||||||
|
|
||||||
gtk_list_store_append(store, &iter);
|
gtk_list_store_append(store, &iter);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user