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:
Linas Vepstas 1998-03-23 06:43:49 +00:00
parent 1742d0fc7a
commit 1f99b59230

View File

@ -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));