Patch level : 10.0 300

Files correlati     :
Ricompilazione Demo : [ ]
Commento            :

controllo di esistenza del codice esercizio coripondente alla data di sistema


git-svn-id: svn://10.65.10.50/trunk@18034 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
alex 2009-01-16 23:18:15 +00:00
parent 94f58f866c
commit 6645f09573

View File

@ -28,12 +28,10 @@ bool TContratti_msk::on_art_select()
const long codcf = get_long(F_CODCF);
const int indsped = get_int(F_INDSPED);
TArticolo_lavanderie & artrec = cached_article_laundry(codart, 'C', codcf, indsped);
TDate datasc = get_date(F_DATASC);
if (!datasc.ok())
datasc = TDate(TODAY);
TDate datasc(TODAY);
const int annoes = esercizi().date2esc(datasc);
int index = artrec.find_clifomag(annoes);
int index = artrec.find_clifomag(annoes);
if (index > 0)
{
@ -156,6 +154,10 @@ bool TContratti_app:: user_create()
_rel=new TRelation (LF_LVCONDV);
_msk= new TContratti_msk;
TDate datasc(TODAY);
if (esercizi().date2esc(datasc) == 0)
return message_box("Attenzione non esiste l'esercizio corrispondente al %s", datasc.string());
TSheet_field& ss=_msk->sfield(F_RIGHE);
ss.set_auto_append();