diff --git a/app/Abstracts/View/Components/Documents/Form.php b/app/Abstracts/View/Components/Documents/Form.php index 25fc6b3a0..decc23649 100644 --- a/app/Abstracts/View/Components/Documents/Form.php +++ b/app/Abstracts/View/Components/Documents/Form.php @@ -289,9 +289,11 @@ abstract class Form extends Component $this->model = ! empty($model) ? $model : $document; $this->document = $this->model; - $this->currencies = $this->getCurrencies($currencies); - $this->currency = $this->getCurrency($document, $currency, $currency_code); + $this->currency_code = ! empty($this->currency) ? $this->currency->code : default_currency(); + $this->currency = $this->getCurrency($document, $currency, $currency_code); + $this->currencies = $this->getCurrencies($currencies); + $this->taxes = Tax::enabled()->orderBy('name')->get()->pluck('title', 'id'); /* -- Content Start -- */