|
|
@@ -1107,9 +1107,12 @@ class Report extends Component
|
|
|
'segnaletica_orizzontale_4_linea_mezzeria_specifica' => $this->segnaletica_orizzontale_4_linea_mezzeria_specifica,
|
|
|
'segnaletica_orizzontale_4_altro' => $this->segnaletica_orizzontale_4_altro,
|
|
|
'segnaletica_orizzontale_4_direzione' => $this->segnaletica_orizzontale_4_direzione,
|
|
|
- 'validated' => $validate
|
|
|
+ //'validated' => $validate
|
|
|
];
|
|
|
|
|
|
+ if (!$print)
|
|
|
+ $reportData['validated'] = $validate;
|
|
|
+
|
|
|
if (str_pad($this->protocollo_num, 3, '0', STR_PAD_LEFT) != "000")
|
|
|
{
|
|
|
\App\Models\Report::whereId($this->dataId)->update($reportData);
|
|
|
@@ -1366,6 +1369,19 @@ class Report extends Component
|
|
|
return "";
|
|
|
}
|
|
|
|
|
|
+ public function getResidenza($residenza)
|
|
|
+ {
|
|
|
+ return "CIAO" . $residenza;
|
|
|
+ /*if ($localita > 0) {
|
|
|
+ $ret = \App\Models\LocationTown::where('id', $localita)->first();
|
|
|
+ if ($ret)
|
|
|
+ return $ret->title;
|
|
|
+ else
|
|
|
+ return "";
|
|
|
+ }
|
|
|
+ return "";*/
|
|
|
+ }
|
|
|
+
|
|
|
public function getStradario($stradario)
|
|
|
{
|
|
|
if ($stradario > 0) {
|
|
|
@@ -1810,7 +1826,10 @@ class Report extends Component
|
|
|
$s->toponimo = "";//$x[0];
|
|
|
$s->descrizione = $text;
|
|
|
$s->save();
|
|
|
- $this->$value = $s->id;
|
|
|
+ if ($value == 'anag_residenza_address')
|
|
|
+ $this->$value = $text;
|
|
|
+ else
|
|
|
+ $this->$value = $s->id;
|
|
|
}
|
|
|
|
|
|
public function reloadMarche($id)
|