Maybe fix a bug, maybe not
This commit is contained in:
parent
115bf8f305
commit
bd0558a9b0
|
@ -466,6 +466,7 @@ void Database::LinkOrUnlinkOperation(Operation& op)
|
|||
{
|
||||
req = wxT("UPDATE operation SET transfert='' where id='") + op.id + wxT("'") ;
|
||||
EXECUTE_SQL_UPDATE(req, );
|
||||
op.transfert = wxT("");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -488,7 +489,6 @@ void Database::LinkOrUnlinkOperation(Operation& op)
|
|||
req += wxT(" AND amount='") + DoubleToString(-op.amount) + wxT("'");
|
||||
req += wxT(" AND meta='0'");
|
||||
req += wxT(" AND account !='") + op.account + wxT("'");
|
||||
req += wxT(" AND id !='") + op.id + wxT("'");
|
||||
req += wxT(" AND (transfert='' OR transfert IS NULL)");
|
||||
|
||||
EXECUTE_SQL_QUERY(req, set, );
|
||||
|
|
Loading…
Reference in New Issue
Block a user