@@ 349-353 (lines=5) @@ | ||
346 | $credit_account = $result_account; |
|
347 | } |
|
348 | ||
349 | if (!empty($save_array)) { |
|
350 | if ($voucher->saveInDayBook($save_array, true)) { |
|
351 | $this->saveStatedAction('operating_reset', $voucher->get('id'), $debet_account->get('id'), $credit_account->get('id'), abs(amountToForm($account->get('saldo')))); |
|
352 | } |
|
353 | } |
|
354 | $this->setStated('operating_reset', $voucher->get('id')); |
|
355 | } |
|
356 | return true; |
|
@@ 477-483 (lines=7) @@ | ||
474 | $credit_account = $result_account; |
|
475 | } |
|
476 | ||
477 | if (!empty($save_array)) { |
|
478 | if ($voucher->saveInDayBook($save_array, true)) { |
|
479 | $this->saveStatedAction('result_account_reset', $voucher->get('id'), $debet_account->get('id'), $credit_account->get('id'), abs(amountToForm($result_account->get('saldo')))); |
|
480 | } else { |
|
481 | $voucher->error->view(); |
|
482 | } |
|
483 | } |
|
484 | $this->setStated('result_account_reset', $voucher->get('id')); |
|
485 | return true; |
|
486 | break; |