Patch level : 12.0 594
Files correlati : ve0.exe ve1.exe ve5.exe ve6.exe Corretta generazione dei movimenti di differenza inventariale dai documenti. Riferimento stampa inventari Diana 2000
This commit is contained in:
parent
3fa352baf2
commit
16b6e7db08
@ -633,7 +633,25 @@ bool iva_handler( TMask_field& f, KEY key )
|
||||
if (required)
|
||||
return f.error_box(TR("Il codice IVA è obbligatorio."));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
if (key == K_ENTER)
|
||||
{
|
||||
TVariable_sheet_field * sf = (TVariable_sheet_field *)f.mask().get_sheet();
|
||||
|
||||
if (sf != NULL)
|
||||
{
|
||||
TDocumento_mask & docmask = (TDocumento_mask&)sf->mask();
|
||||
|
||||
if (docmask.is_running() && f.dirty())
|
||||
{
|
||||
TCodiceIVA i(f.get());
|
||||
|
||||
if (i.sospeso())
|
||||
return f.error_box(FR("Il codice IVA %s è sospeso e non può essere utilizzato."), (const char *) f.get());
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user