mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-06-05 22:09:38 +02:00
Fix alert nel modulo Fatture
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
|
||||
use Carbon\Carbon;
|
||||
use Modules\Anagrafiche\Anagrafica;
|
||||
use Modules\Anagrafiche\Nazione;
|
||||
use Modules\Fatture\Gestori\Bollo;
|
||||
use Modules\Interventi\Intervento;
|
||||
use Modules\Iva\Aliquota;
|
||||
@@ -137,9 +138,10 @@ if ($dir == 'entrata') {
|
||||
array_push($campi_mancanti, 'Partita IVA');
|
||||
array_push($campi_mancanti, 'Codice fiscale');
|
||||
}
|
||||
|
||||
|
||||
$nazione = Nazione::find($rs2[0]['id_nazione']);
|
||||
//se è un privato o un ente pubblico controllo il codice fiscale
|
||||
if (($rs2[0]['tipo'] == 'Privato' or $rs2[0]['tipo'] == 'Ente pubblico') and empty($rs2[0]['codice_fiscale'])) {
|
||||
if ((($rs2[0]['tipo'] == 'Privato' && $nazione->iso2 == 'IT') or $rs2[0]['tipo'] == 'Ente pubblico') and empty($rs2[0]['codice_fiscale'])) {
|
||||
array_push($campi_mancanti, 'Codice fiscale');
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user