Patch level 10.0:
Files correlati :lv2.exe Ricompilazione Demo : [ ] Commento : Gestione Val convenzionale in fatturazione git-svn-id: svn://10.65.10.50/trunk@18701 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
d9c712e2f9
commit
2405e00496
@ -208,8 +208,25 @@ void TFatturazione_lavanderie::post_process_output(TLista_documenti& doc_out)
|
||||
break;
|
||||
case 4:
|
||||
{
|
||||
rout.put(RDOC_PREZZO, rcont.get_real(LVRCONDV_VALCONV));
|
||||
rout.put(RDOC_QTA, dot*rcont.get_real(LVRCONDV_FORFPERCL));
|
||||
const real qta=rout.get(RDOC_QTA);
|
||||
const real consumo=qta * rout.get_real(RDOC_PREZZO);
|
||||
const real impconv=dot * rcont.get_real(LVRCONDV_VALCONV) * rcont.get_real(LVRCONDV_FORFPERCL);
|
||||
if (consumo<impconv)
|
||||
{
|
||||
const bool cicl2rig=contr.get_bool(LVCONDV_CICLAGGIO);
|
||||
if (cicl2rig)
|
||||
{
|
||||
TRiga_documento& congrow=doc.insert_row(++i, "01");
|
||||
doc.copy_data(congrow,rout);
|
||||
congrow.put(RDOC_DESCR,"Conguaglio valore convenzionale");
|
||||
congrow.put(RDOC_PREZZO, rcont.get_real(LVRCONDV_PREZZO));
|
||||
}
|
||||
else
|
||||
{
|
||||
rout.put(RDOC_QTA, UNO);
|
||||
rout.put(RDOC_PREZZO, impconv);
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 5:
|
||||
|
Loading…
x
Reference in New Issue
Block a user