Patch level : 2.2 34

Files correlati     : batbnum.msk ve0.exe
Ricompilazione Demo : [ ]
Commento          :
Possilbiltrà diu avere numerazioni che non controllano làesercizio contabile


git-svn-id: svn://10.65.10.50/trunk@12394 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
alex 2004-10-13 09:01:46 +00:00
parent 3f591d7b80
commit 0ee519a646
4 changed files with 12 additions and 2 deletions

View File

@ -74,3 +74,4 @@
#define F_NUMAUTO 271
#define F_ULTDATAPROV 272
#define F_EMRI 273
#define F_CNTES 274

View File

@ -930,6 +930,12 @@ PAGE "Tipi documento validi" -1 -1 60 14
FIELD B3
END
BOOLEAN F_CNTES
BEGIN
PROMPT 2 18 "Nessun controllo sull'esercizio"
FIELD B4
END
ENDPAGE
ENDMASK

View File

@ -329,7 +329,7 @@ public:
const bool auto_num() const { return get_bool("B1"); }
const bool dont_test_datadoc() const { return get_bool("B2"); }
const bool fattura_emettere_ricevere() const { return get_bool("B3"); }
const bool test_eser() const { return ! get_bool("B4"); }
const TString & tipo_doc(int i) const;
int ntipi_doc() const;

View File

@ -234,6 +234,9 @@ bool data_hndl( TMask_field& field, KEY key )
if (!datadoc.ok())
return field.error_box("La data documento deve essere comunque indicata.");
const TCodice_numerazione codnum(m.get(F_CODNUM));
if (codnum.test_eser())
{
TEsercizi_contabili esc;
if (esc.date2esc(datadoc) <= 0)
return field.error_box("La data documento non appartiene ad un esercizio valido.");
@ -254,8 +257,8 @@ bool data_hndl( TMask_field& field, KEY key )
return FALSE; // L'errore viene segnalato nella read
}
}
}
const TCodice_numerazione codnum(m.get(F_CODNUM));
if (codnum.dont_test_datadoc())
return TRUE; // Non devo fare altri test