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:
parent
ad9ffaad02
commit
11de434c46
@ -144,22 +144,11 @@ void TFatturazione_lavanderie::post_process_output(TLista_documenti& doc_out)
|
|||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
{
|
{
|
||||||
int tipolist=contr.get_int(LVCONDV_TIPOLIS);
|
TRiga_documento& nolorow=doc.insert_row(++i, "01");
|
||||||
|
doc.copy_data(nolorow,rout);
|
||||||
if (tipolist==0)
|
nolorow.put(RDOC_DESCR,"Nolo per");
|
||||||
rout.put(RDOC_PREZZO, rcont.get_real(LVRCONDV_PREZZO));
|
rout.put(RDOC_QTA, dot);
|
||||||
else
|
nolorow.put(RDOC_PREZZO, rcont.get_real(LVRCONDV_PREZNOL));
|
||||||
{
|
|
||||||
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);
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
@ -298,7 +287,7 @@ void TFatturazione_lavanderie::create_row(TDocumento& doc_out, const TRiga_docum
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
prezzo=rcont.get_real(LVRCONDV_PREZZO);
|
prezzo=rcont.get_real(LVRCONDV_PREZZO);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Guardo se è una causale di rotto e se è abilitato nella testata del contratto la fatturazione dei rotti
|
// 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())
|
if (cau.get_bool("B3") && contr.get_int(LVCONDV_ADDCAPROT) && !qta1.is_zero())
|
||||||
|
@ -30,5 +30,6 @@
|
|||||||
#define LVRCONDV_NOLCIC "NOLCIC"
|
#define LVRCONDV_NOLCIC "NOLCIC"
|
||||||
#define LVRCONDV_VCARTCLI "VCARTCLI"
|
#define LVRCONDV_VCARTCLI "VCARTCLI"
|
||||||
#define LVRCONDV_CAUSLAV "CAUSLAV"
|
#define LVRCONDV_CAUSLAV "CAUSLAV"
|
||||||
|
#define LVRCONDV_PREZNOL "PREZNOL"
|
||||||
|
|
||||||
#endif
|
#endif
|
Loading…
x
Reference in New Issue
Block a user