Add a warning when a debit is made on a blocked account
This commit is contained in:
@@ -989,6 +989,9 @@ void GridAccount::OnOperationModified(wxGridEvent& event)
|
||||
new_op.id = _kiss->AddOperation(new_op);
|
||||
}
|
||||
|
||||
if (user->GetAccount(new_op.account).blocked && new_op.amount < 0)
|
||||
wxMessageBox(_("You made a debit on a blocked account"), _("Warning"), wxICON_WARNING | wxOK);
|
||||
|
||||
if (need_insertion)
|
||||
InsertIntoGrid(new_op);
|
||||
|
||||
|
Reference in New Issue
Block a user