|
|
@@ -6,7 +6,7 @@ use Livewire\Component;
|
|
|
|
|
|
class Causal extends Component
|
|
|
{
|
|
|
- public $recordsIn, $recordsOut, $parent_id, $name, $enabled, $corrispettivo_fiscale, $no_receipt, $money, $user_status, $no_first, $no_records, $type, $dataId, $update = false, $add = false;
|
|
|
+ public $recordsIn, $recordsOut, $parent_id, $name, $enabled, $corrispettivo_fiscale, $no_receipt, $money, $user_status, $no_first, $no_records, $no_reports, $type, $dataId, $update = false, $add = false;
|
|
|
|
|
|
public $corrispettivo_causal_id = 0;
|
|
|
|
|
|
@@ -43,6 +43,7 @@ class Causal extends Component
|
|
|
$this->user_status = false;
|
|
|
$this->no_first = false;
|
|
|
$this->no_records = false;
|
|
|
+ $this->no_reports = false;
|
|
|
$this->enabled = true;
|
|
|
}
|
|
|
|
|
|
@@ -85,6 +86,7 @@ class Causal extends Component
|
|
|
'user_status' => $this->user_status,
|
|
|
'no_first' => $this->no_first,
|
|
|
'no_records' => $this->no_records,
|
|
|
+ 'no_reports' => $this->no_reports,
|
|
|
'enabled' => $this->enabled
|
|
|
]);
|
|
|
session()->flash('success','Causale creata');
|
|
|
@@ -107,6 +109,7 @@ class Causal extends Component
|
|
|
$this->user_status = $causal->user_status;
|
|
|
$this->no_first = $causal->no_first;
|
|
|
$this->no_records = $causal->no_records;
|
|
|
+ $this->no_reports = $causal->no_reports;
|
|
|
$this->enabled = $causal->enabled;
|
|
|
$this->type = $causal->type;
|
|
|
$this->parent_id = $causal->parent_id;
|
|
|
@@ -130,6 +133,7 @@ class Causal extends Component
|
|
|
'user_status' => $this->user_status,
|
|
|
'no_first' => $this->no_first,
|
|
|
'no_records' => $this->no_records,
|
|
|
+ 'no_reports' => $this->no_reports,
|
|
|
'money' => $this->money,
|
|
|
'no_receipt' => $this->no_receipt,
|
|
|
'corrispettivo_fiscale' => $this->corrispettivo_fiscale,
|