Patch level :10.0

Files correlati     :lv2.exe
Ricompilazione Demo : [ ]
Commento            :
gstito il nolo nella fatturazione


git-svn-id: svn://10.65.10.50/trunk@18663 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
rajitgill 2009-04-03 15:17:33 +00:00
parent ad9ffaad02
commit 11de434c46
2 changed files with 7 additions and 17 deletions

View File

@ -144,22 +144,11 @@ void TFatturazione_lavanderie::post_process_output(TLista_documenti& doc_out)
break;
case 2:
{
int tipolist=contr.get_int(LVCONDV_TIPOLIS);
if (tipolist==0)
rout.put(RDOC_PREZZO, rcont.get_real(LVRCONDV_PREZZO));
else
{
TString query;
query << "USE UMART KEY 2 \n"
<< "FROM " << "CODART=#CODART UM=#UM \n"
<< "TO " << "TCODART=#CODART UM=#UM \n";
TISAM_recordset recset(query);
recset.set_var("#CODART",clifo);
recset.set_var("#UM",rcont.get(LVRCONDV_UM));
rout.put(RDOC_PREZZO,recset.get(UMART_PREZZO).as_real());
}
rout.put(RDOC_QTA, dot);
TRiga_documento& nolorow=doc.insert_row(++i, "01");
doc.copy_data(nolorow,rout);
nolorow.put(RDOC_DESCR,"Nolo per");
rout.put(RDOC_QTA, dot);
nolorow.put(RDOC_PREZZO, rcont.get_real(LVRCONDV_PREZNOL));
}
break;
case 3:
@ -298,7 +287,7 @@ void TFatturazione_lavanderie::create_row(TDocumento& doc_out, const TRiga_docum
}
else
prezzo=rcont.get_real(LVRCONDV_PREZZO);
}
}
// Guardo se è una causale di rotto e se è abilitato nella testata del contratto la fatturazione dei rotti
if (cau.get_bool("B3") && contr.get_int(LVCONDV_ADDCAPROT) && !qta1.is_zero())

View File

@ -30,5 +30,6 @@
#define LVRCONDV_NOLCIC "NOLCIC"
#define LVRCONDV_VCARTCLI "VCARTCLI"
#define LVRCONDV_CAUSLAV "CAUSLAV"
#define LVRCONDV_PREZNOL "PREZNOL"
#endif