Patch level : 12.00 1364
Files correlati : ba0.exe cg0.exe cg1.exe cg1309.msk Commento: Eliminata la password di sercizio, ora i programmi protetti possono essere esguiti solo dagli utenti supervisori (campo sugli utenti). Anche la partita IVA e il codice fiscale errati sono controllati da OnlyOnePAIV. Controllo partita IVA e codice fiscale aggiunto ordinamento per codice partita IVA e codice fiscale e i campo codice allegato e tipo persona.
This commit is contained in:
parent
24665f92bc
commit
3f9d7fcdd0
@ -1,3 +1,4 @@
|
|||||||
|
#include <config.h>
|
||||||
#include <diction.h>
|
#include <diction.h>
|
||||||
#include <expr.h>
|
#include <expr.h>
|
||||||
#include <mask.h>
|
#include <mask.h>
|
||||||
@ -191,8 +192,15 @@ HIDDEN bool _pi_val(TMask_field& f, KEY)
|
|||||||
if (stato.blank() || stato == "IT")
|
if (stato.blank() || stato == "IT")
|
||||||
len_error = pi.len() != 11;
|
len_error = pi.len() != 11;
|
||||||
TString msg = len_error ? TR("Lunghezza partita IVA errata") : TR("Partita IVA errata");
|
TString msg = len_error ? TR("Lunghezza partita IVA errata") : TR("Partita IVA errata");
|
||||||
msg << ": " << TR("proseguire ugualmente?");
|
const bool only_one_paiv = ini_get_bool(CONFIG_DITTA, "cg", "OnlyOnePaIV");
|
||||||
ok = f.yesno_box(msg);
|
|
||||||
|
if (only_one_paiv && !supervisor())
|
||||||
|
ok = f.error_box(msg);
|
||||||
|
else
|
||||||
|
{
|
||||||
|
msg << ": " << TR("si desidera proseguire ugualmente?");
|
||||||
|
ok = f.yesno_box(msg);
|
||||||
|
}
|
||||||
if (ok) f.set_dirty(false);
|
if (ok) f.set_dirty(false);
|
||||||
}
|
}
|
||||||
else ok = true; // Era gia' errata e la ho accettata
|
else ok = true; // Era gia' errata e la ho accettata
|
||||||
@ -309,8 +317,18 @@ HIDDEN bool _cf_val(TMask_field& f, KEY key)
|
|||||||
{
|
{
|
||||||
if(f.dirty() && (stato.empty() || stato == "IT"))
|
if(f.dirty() && (stato.empty() || stato == "IT"))
|
||||||
{
|
{
|
||||||
ok = f.yesno_box(TR("Codice fiscale errato: si desidera accettarlo ugualmente?"));
|
const bool only_one_paiv = ini_get_bool(CONFIG_DITTA, "cg", "OnlyOnePaIV");
|
||||||
if (ok) f.set_dirty(false);
|
TString msg(TR("Codice fiscale errato"));
|
||||||
|
|
||||||
|
if (only_one_paiv && !supervisor())
|
||||||
|
ok = f.error_box(msg);
|
||||||
|
else
|
||||||
|
{
|
||||||
|
msg << TR(": si desidera accettarlo ugualmente?");
|
||||||
|
ok = f.yesno_box(msg);
|
||||||
|
}
|
||||||
|
if (ok)
|
||||||
|
f.set_dirty(false);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
ok = true; // Era gia' errato al caricamento quindi lo accetto
|
ok = true; // Era gia' errato al caricamento quindi lo accetto
|
||||||
|
Loading…
x
Reference in New Issue
Block a user