예제 #1
0
 public function overpayment_refund($loanproduct, $data)
 {
     $posting = new Loanposting();
     $posting->loanproduct()->associate($loanproduct);
     $posting->transaction = 'overpayment_refund';
     $posting->debit_account = array_get($data, 'loan_overpayment');
     $posting->credit_account = array_get($data, 'cash_account');
     $posting->save();
 }