mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-06-05 22:09:38 +02:00
Merge branch 'master' of https://github.com/devcode-it/openstamanager
This commit is contained in:
@@ -83,7 +83,7 @@ class Anagrafica extends Model
|
|||||||
|
|
||||||
public static function fromTipo($type)
|
public static function fromTipo($type)
|
||||||
{
|
{
|
||||||
$tipologia = Tipo::where('descrizione', 'Tecnico')->first();
|
$tipologia = Tipo::where('descrizione', $type)->first();
|
||||||
|
|
||||||
$anagrafiche = self::whereHas('tipi', function ($query) use ($tipologia) {
|
$anagrafiche = self::whereHas('tipi', function ($query) use ($tipologia) {
|
||||||
$query->where('an_tipianagrafiche.idtipoanagrafica', '=', $tipologia->id);
|
$query->where('an_tipianagrafiche.idtipoanagrafica', '=', $tipologia->id);
|
||||||
|
@@ -43,8 +43,10 @@ switch (filter('op')) {
|
|||||||
], ['id' => $id_record]);
|
], ['id' => $id_record]);
|
||||||
|
|
||||||
// Messaggio di avvertenza
|
// Messaggio di avvertenza
|
||||||
if ($codice_natura == 'N6' && $esigibilita == 'S') {
|
if ((stripos("N6", $codice_natura) === 0) && $esigibilita == 'S') {
|
||||||
flash()->warning(tr('Combinazione di natura IVA N6 ed esigibilità non compatibile'));
|
flash()->warning(tr('Combinazione di natura IVA _TYPE_ ed esigibilità non compatibile', [
|
||||||
|
'_TYPE_' => $codice_natura,
|
||||||
|
]));
|
||||||
}
|
}
|
||||||
|
|
||||||
flash()->info(tr('Salvataggio completato!'));
|
flash()->info(tr('Salvataggio completato!'));
|
||||||
|
Reference in New Issue
Block a user