Patch level : 10.0

Files correlati     : lv3
Ricompilazione Demo : [ ]
Commento            :
Corretta gestione Dotazione odierna e dotazione temporanea


git-svn-id: svn://10.65.10.50/trunk@18104 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
luca83 2009-01-24 14:39:15 +00:00
parent 9b10ce1dc0
commit 3dedcf97cc
2 changed files with 9 additions and 3 deletions

View File

@ -141,8 +141,12 @@ bool TGiac_per_cli::load_row(const TRiga_documento& rdoc)
vartmp += real(st) * consegnato;
vardot += real(so) * consegnato;
}
dotmp -= vartmp;
dotazione -= vardot;
if (rdoc.get_int(RDOC_MOVMAG) != ZERO)
{
dotmp -= vartmp;
dotazione -= vardot;
}
return true;
}
@ -361,7 +365,7 @@ bool TGestione_bolle_msk::lv_bolla_handler(TMask_field& f, KEY k)
TString4 causale = rcont.get(LVRCONDV_CAUSLAV).as_string();
if (causale.blank() || causale == "000")
if (causale.blank() || atoi(causale) == 0)
{
TConfig* configlv = new TConfig(CONFIG_DITTA,"lv");
causale = configlv->get("CAUSLAV");

View File

@ -1,8 +1,10 @@
NUMBER FR_JOLLY1 5
BEGIN
PROMPT 2 13 "Dot.od "
FIELD DOTOD
END
NUMBER FR_JOLLY2 5
BEGIN
PROMPT 20 13 "Dot.temp "
FIELD DOTMP
END