mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Fix bug when register running balance column appears in template transaction.
Patch by Tim M: I noticed yesterday a bug in the reg run balance patch that was applied, there is now a "Balance" column displayed in the template transaction register. If you open the scheduled transaction editor, then open a scheduled transaction and go to the "Template Transaction" tab, there is a "Balance" column displayed on the far right side of the register. The attached patch fixes this defect so that the RBALN column is not displayed in template registers. Signed-off-by: Christian Stimming <stimming@tuhh.de> git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18354 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
3a01c28043
commit
6bcb76e93a
@ -268,7 +268,10 @@ gnc_split_register_set_cells (SplitRegister *reg, TableLayout *layout)
|
||||
gnc_table_layout_set_cell (layout, curs, DESC_CELL, 0, 2);
|
||||
gnc_table_layout_set_cell (layout, curs, TDEBT_CELL, 0, 5);
|
||||
gnc_table_layout_set_cell (layout, curs, TCRED_CELL, 0, 6);
|
||||
gnc_table_layout_set_cell (layout, curs, RBALN_CELL, 0, 7);
|
||||
if (!reg->is_template)
|
||||
{
|
||||
gnc_table_layout_set_cell (layout, curs, RBALN_CELL, 0, 7);
|
||||
}
|
||||
gnc_table_layout_set_cell (layout, curs, RATE_CELL, 0, 8);
|
||||
|
||||
curs_last = curs;
|
||||
|
Loading…
Reference in New Issue
Block a user