From 771ae64f0eb6bc78e7fe460dc4493a0beeedc41e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=BCneyt=20=C5=9Eent=C3=BCrk?= Date: Fri, 8 Oct 2021 17:34:15 +0300 Subject: [PATCH] fixed api send different currency add payment --- app/Jobs/Banking/CreateBankingDocumentTransaction.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Jobs/Banking/CreateBankingDocumentTransaction.php b/app/Jobs/Banking/CreateBankingDocumentTransaction.php index 57d43d7cd..b60f2ed66 100644 --- a/app/Jobs/Banking/CreateBankingDocumentTransaction.php +++ b/app/Jobs/Banking/CreateBankingDocumentTransaction.php @@ -72,7 +72,7 @@ class CreateBankingDocumentTransaction extends Job implements ShouldCreate $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;