fixed api send different currency add payment

This commit is contained in:
Cüneyt Şentürk 2021-10-08 17:34:15 +03:00
parent 9ad3d8d731
commit 771ae64f0e

View File

@ -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;