Patch level :
Files correlati : Ricompilazione Demo : [ ] Commento : Correzioni varie ed eventuali git-svn-id: svn://10.65.10.50/branches/R_10_00@22393 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
7a187457cf
commit
a438b82a35
@ -732,7 +732,6 @@ bool TGestione_bolle_msk::lv_codart_handler(TMask_field& f, KEY k)
|
|||||||
default: break;
|
default: break;
|
||||||
}
|
}
|
||||||
|
|
||||||
//if (ok && (k == K_ENTER || k == K_TAB))
|
|
||||||
if (ok && f.to_check(k))
|
if (ok && f.to_check(k))
|
||||||
{
|
{
|
||||||
TMask& msk = f.mask();
|
TMask& msk = f.mask();
|
||||||
@ -864,7 +863,23 @@ bool TGestione_bolle_msk::lv_codart_handler(TMask_field& f, KEY k)
|
|||||||
trvlst = true;
|
trvlst = true;
|
||||||
}
|
}
|
||||||
rdoc.put(RDOC_PREZZO, prezzo);
|
rdoc.put(RDOC_PREZZO, prezzo);
|
||||||
|
msk.set(FR_PREZZO, prezzo);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
real prezzo;
|
||||||
|
const int tplis = cont.get_int(LVCONDV_TIPOLIS); //tipo listino
|
||||||
|
if (tplis == 0)
|
||||||
|
prezzo = rcont.get_real(LVRCONDV_PREZZO);
|
||||||
|
else
|
||||||
|
{
|
||||||
|
const TRectype& anamag = cache().get(LF_ANAMAG,codart);
|
||||||
|
prezzo = anamag.get_real(ANAMAG_COSTSTD);
|
||||||
|
}
|
||||||
|
rdoc.put(RDOC_PREZZO, prezzo);
|
||||||
|
msk.set(FR_PREZZO, prezzo);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//controllo se si vuole aggiungere un eventuale nuovo articolo al contratto
|
//controllo se si vuole aggiungere un eventuale nuovo articolo al contratto
|
||||||
if (cont.get_int(LVCONDV_CODCONT) <= 0)
|
if (cont.get_int(LVCONDV_CODCONT) <= 0)
|
||||||
@ -1129,6 +1144,19 @@ bool TGestione_bolle_msk::lv_causale_handler(TMask_field& f, KEY k)
|
|||||||
msk.field(FR_QTA).set("");
|
msk.field(FR_QTA).set("");
|
||||||
msk.field(FR_QTA).disable();
|
msk.field(FR_QTA).disable();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
real prezzo;
|
||||||
|
if(cau.is_rotto())
|
||||||
|
{
|
||||||
|
prezzo = rcont.get_real(LVRCONDV_PREZDAN);
|
||||||
|
if(prezzo > ZERO)
|
||||||
|
msk.field(FR_PREZZO).set(prezzo.string());
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
prezzo = rcont.get_real(LVRCONDV_PREZZO);
|
||||||
|
msk.field(FR_PREZZO).set(prezzo.string());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user