daily pastebin goal
21%
SHARE
TWEET

Untitled

a guest Aug 16th, 2018 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $event = $operationalDay->getNewAccountingEventDSL();
  2.  
  3.             $investorLoan             = $this->_investorLoanOps->getInvestorLoan();
  4.             $customerDepositAgreement = $investorLoan->getCustomerDepositAgreement();
  5.  
  6.             /**
  7.              * @var RepaymentOps $repayment
  8.              */
  9.             foreach ($this->_investorLoanOps->getDepositRepayments() as $repayment)
  10.             {
  11.                 $repaymentEvent = $event->event($repayment->getEventCategory() . 'Deposit', 'Погашение тела инвесторского займа #' . $investorLoan->id);
  12.                 $repaymentEvent
  13.                     ->tx($repayment->getValue())
  14.                     ->debit(\Account::DEPOSIT, $customerDepositAgreement->getCustomer(), $customerDepositAgreement)
  15.                     ->credit(\Account::INVESTOR_BALANCE, $customerDepositAgreement->getCustomer())
  16.                     ->publicComment('Погашение из реестра')
  17.                     ->details(['repayment_type' => $repayment->getRepaymentType()]);
  18.  
  19.             }
  20.  
  21.             $event->run();
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top