создание PaymentInstruction для итоговой МКР по сделкам bugfix

This commit is contained in:
ialbert 2023-06-08 14:29:37 +03:00
parent 621069c933
commit 62c92ea4b3

View file

@ -135,11 +135,8 @@ public class PaymentInstructionBuilderFinalMkrDeals {
payment1.setCredit_csAccount(null);
{
Account acc1 = selectAccount(payment1.getAddresseeId(), AccountType.Corr, Status.Active, Allowed.ALLOWED);
if (acc1 != null) {
payment1.setDebitLeg_accountId(acc1.getId());
payment1.setDebitLeg_account(acc1.getAccount());
}
payment1.setDebitLeg_accountId(tranAccount.getId());
payment1.setDebitLeg_account(tranAccount.getAccount());
}
payment1.setDebit_csAccount(null);