Fixed default account issue..

This commit is contained in:
Cüneyt Şentürk
2022-06-09 15:54:03 +03:00
parent 5faa63e3d5
commit cec31b4f43
6 changed files with 10 additions and 32 deletions

View File

@ -13,22 +13,6 @@ class Account extends Form
public $accounts;
/** @var bool */
public $hideCurrency;
/** @var string */
public $formGroupClass;
/**
* Create a new component instance.
*
* @return void
*/
public function __construct(bool $hideCurrency = false, string $formGroupClass = 'sm:col-span-3') {
$this->hideCurrency = $hideCurrency;
$this->formGroupClass = $formGroupClass;
}
/**
* Get the view / contents that represent the component.
*

View File

@ -52,7 +52,7 @@ class Contact extends Form
$this->contacts = Model::customer()->enabled()->orderBy('name')->take(setting('default.select_limit'))->get();
if (!empty($model) && $model->customer && ! $this->contacts->has($model->contact_id)) {
if (! empty($model) && $model->customer && ! $this->contacts->has($model->contact_id)) {
$this->contacts->put($model->customer->id, $model->customer->name);
}
}
@ -69,7 +69,7 @@ class Contact extends Form
$this->contacts = Model::vendor()->enabled()->orderBy('name')->take(setting('default.select_limit'))->get();
if (!empty($model) && $model->vendor && ! $this->contacts->has($model->contact_id)) {
if (! empty($model) && $model->vendor && ! $this->contacts->has($model->contact_id)) {
$this->contacts->put($model->vendor->id, $model->vendor->name);
}
}

View File

@ -8,18 +8,6 @@ class Country extends Form
{
public $type = 'country';
/** @var string */
public $formGroupClass;
/**
* Create a new component instance.
*
* @return void
*/
public function __construct(string $formGroupClass = 'sm:col-span-3') {
$this->formGroupClass = $formGroupClass;
}
/**
* Get the view / contents that represent the component.
*