Patch level : 10.0 888

Files correlati     : cg2.exe
Ricompilazione Demo : [ ]
Commento            :

Il test di documento già esistente e' stato attivato anche per le vendite (CHIMA)


git-svn-id: svn://10.65.10.50/branches/R_10_00@21484 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
alex 2011-01-20 12:15:30 +00:00
parent 612fff1822
commit 1c6184d03e

View File

@ -2428,7 +2428,7 @@ bool TPrimanota_application::numdoc_handler(TMask_field& f, KEY key)
}
// Controllo documenti duplicati
if (key == K_ENTER && !f.empty() && app().iva() == iva_acquisti)
if (key == K_ENTER && !f.empty() && app().iva() != nessuna_iva)
{
TMask& m = f.mask();
@ -2452,7 +2452,7 @@ bool TPrimanota_application::numdoc_handler(TMask_field& f, KEY key)
TRectype& rec = rel.curr();
TRectype recfrom(rec);
recfrom.put(MOV_TIPO, "F");
recfrom.put(MOV_TIPO, app().iva() == iva_acquisti ? "F" : "C");
recfrom.put(MOV_CODCF, fornitore);
recfrom.put(MOV_DATAREG, TDate(1, 1, annodoc));