fix account field filling: processedSign

This commit is contained in:
akulikov 2023-04-24 19:06:38 +03:00
parent 6e6d866445
commit 0a20044d1e

View file

@ -163,8 +163,7 @@ public class AccountService extends QueueConsumer implements InitializingBean {
account.setAccountType(req.getAccountType());
account.setRelationId(relation.getId());
account.setStatus(req.getStatus());
// todo выяснить у репортера, что писать в это поле если это не первый счет компании
account.setProcessingSign(companies.isEmpty() ? Allowed.ALLOWED.getKey() : null);
account.setProcessingSign(companies.isEmpty() ? Allowed.ALLOWED.getKey() : Allowed.DENIED.getKey());
account.setCompanyId(relation.getConsumerId());
account.setCreated(now);
account.setUpdated(now);