Bug fixes file upload and download
This commit is contained in:
@@ -80,7 +80,10 @@ public class TransactionService {
|
||||
buildTransaction(fromAccount, toAccount, amount, description, date, recurringTransaction, taxRelevant);
|
||||
|
||||
transaction.setPeriods(getRelevantPeriods(transaction));
|
||||
transaction.setFiles(Collections.singleton(buildFile(fileName, fileContent)));
|
||||
|
||||
if (StringUtils.isNotEmpty(fileName) && StringUtils.isNotEmpty(fileContent)) {
|
||||
transaction.setFiles(Collections.singleton(buildFile(fileName, fileContent)));
|
||||
}
|
||||
|
||||
fromAccount.setCurrentBalance(fromAccount.getCurrentBalance() + (this.ruleService
|
||||
.getMultiplierFromAccount(fromAccount) * amount));
|
||||
|
||||
Reference in New Issue
Block a user