the currency can't be null
having null here led to problems when saving the transaction
speculatively and account amounts are updated, because in the database
account_values.currency is declared not null
/*
- * Copyright © 2019 Damyan Ivanov.
+ * Copyright © 2021 Damyan Ivanov.
* This file is part of MoLe.
* MoLe is free software: you can distribute it and/or modify it
* under the term of the GNU General Public License as published by
if (amountSet)
dbo.setAmount(amount);
dbo.setComment(comment);
- dbo.setCurrency(currency);
+ dbo.setCurrency(Misc.nullIsEmpty(currency));
dbo.setId(dbId);
return dbo;