mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
updates to fix how balance is kept
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@699 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
1742d0fc7a
commit
1f99b59230
@ -128,8 +128,8 @@ xaccSaveRegEntry (BasicRegister *reg)
|
||||
if (MOD_AMNT & changed) {
|
||||
double new_amount;
|
||||
new_amount = (reg->creditCell->amount) - (reg->debitCell->amount);
|
||||
xaccSplitSetAmount (split, new_amount);
|
||||
xaccTransRecomputeAmount (trans);
|
||||
xaccSplitSetValue (split, new_amount);
|
||||
xaccSplitRebalance (split);
|
||||
}
|
||||
|
||||
if (MOD_SHRS & changed) {
|
||||
@ -191,7 +191,7 @@ xaccLoadRegEntry (BasicRegister *reg, Split *split)
|
||||
xaccSetComboCellValue (reg->xfrmCell, accname);
|
||||
|
||||
xaccSetDebCredCellValue (reg->debitCell,
|
||||
reg->creditCell, xaccSplitGetAmount (split));
|
||||
reg->creditCell, xaccSplitGetValue (split));
|
||||
|
||||
xaccSetAmountCellValue (reg->balanceCell, xaccSplitGetBalance (split));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user