Skip to content

Commit

Permalink
fixed api send different currency add payment
Browse files Browse the repository at this point in the history
  • Loading branch information
cuneytsenturk committed Oct 8, 2021
1 parent 9ad3d8d commit 771ae64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Jobs/Banking/CreateBankingDocumentTransaction.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ protected function prepareRequest(): void
$this->request['payment_method'] = isset($this->request['payment_method']) ? $this->request['payment_method'] : setting('default.payment_method');
$this->request['notify'] = isset($this->request['notify']) ? $this->request['notify'] : 0;

if ($this->request['mark_paid'] || ($this->request['account_id'] == setting('default.account'))) {
if ($this->request['mark_paid'] && ($this->request['account_id'] == setting('default.account'))) {
$account = Account::find((int) $this->request['account_id']);

$code = $account->currency_code;
Expand Down

0 comments on commit 771ae64

Please sign in to comment.