Fix bug : negative amount on debit/credit (GridAccount)

Fix bug : bad computation of next year due to previous commit
This commit is contained in:
2010-12-03 19:03:48 +01:00
parent e85648ee84
commit 37b4dabbe1
2 changed files with 6 additions and 6 deletions

View File

@@ -722,6 +722,8 @@ void GridAccount::OnOperationModified(wxGridEvent& event)
pEditor->DecRef();
}
if (new_op.amount < 0) new_op.amount *= -1;
value = GetCellValue(row, CATEGORY);
if (value.Length())
{