Patch level : 10.0

Files correlati     : ha2.exe
Ricompilazione Demo : [ ]
Commento            :
Corretto campo aliquota IVA con 4 decimali


git-svn-id: svn://10.65.10.50/branches/R_10_00@22494 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 2011-11-18 09:58:52 +00:00
parent 0bc5bd8846
commit 62fcca5419

View File

@ -541,7 +541,8 @@ void THardy_esselunga_fat::add_rec_sommario(TFatture_recordset& fat, TDocumento&
tipo_hardy = "E";
fat.set("IVA.CATIMP", tipo_hardy);
fat.set("IVA.ALIQIVA", ri->cod_iva().percentuale());
const TString8 aliquota = real(ri->cod_iva().percentuale()*10000).string(7,0,0);
fat.set("IVA.ALIQIVA", aliquota);
fat.set("IVA.SIMPONIB", ri->imponibile());
fat.set("IVA.SIMPORTO", ri->imposta());
}
@ -593,7 +594,8 @@ void THardy_esselunga_fat::add_recs_dettaglio(TFatture_recordset& fat, TDocument
//fat.new_rec("RFN"); // solo per note di debito e di credito (chiedere a Robbi)
fat.new_rec("TAX");
fat.set("TAX.ALIQIVA", rigadoc->iva().percentuale());
const TString8 aliquota = real(rigadoc->iva().percentuale()*10000).string(7,0,0);
fat.set("TAX.ALIQIVA", aliquota);
fat.set("TAX.DESCRIZ", rigadoc->iva().descrizione());
fat.set("TAX.IMPORTO", rigadoc->imposta());
const TString4& tipo = rigadoc->iva().tipo();