Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
denisdulici committed May 27, 2020
1 parent 104b74f commit 3c0badc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/Jobs/Banking/CreateDocumentTransaction.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,6 @@ protected function checkAmount()
{
$currencies = Currency::enabled()->pluck('rate', 'code')->toArray();

$total_amount = $this->model->amount;

$default_amount = (double) $this->request['amount'];

if ($this->model->currency_code == $this->request['currency_code']) {
Expand All @@ -103,7 +101,7 @@ protected function checkAmount()
$amount = (double) $convert_amount_model->getAmountConvertedFromDefault();
}

$total_amount -= $this->model->paid;
$total_amount = $this->model->amount - $this->model->paid;
unset($this->model->reconciled);

// For amount cover integer
Expand Down

0 comments on commit 3c0badc

Please sign in to comment.