Patch level : 10.0 1164
Files correlati : ha2.exe Ricompilazione Demo : [ ] Commento : Corretto invio record sconti ad Esselunga git-svn-id: svn://10.65.10.50/branches/R_10_00@22502 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
d132aa9af8
commit
ae155f5dbb
@ -610,12 +610,17 @@ void THardy_esselunga_fat::add_recs_dettaglio(TFatture_recordset& fat, TDocument
|
||||
tipo_hardy = "E";
|
||||
fat.set("TAX.CATIMP", tipo_hardy);
|
||||
// gestione sconto riga
|
||||
real sconto = rigadoc->sconto();
|
||||
const real sconto = rigadoc->sconto();
|
||||
if (!sconto.is_zero())
|
||||
{
|
||||
fat.new_rec("ALD");
|
||||
TString8 str = sconto.stringa(8,4,'0');
|
||||
str.strip(",");
|
||||
fat.set("ALD.IMPORTO", sconto);
|
||||
|
||||
TString80 str;
|
||||
real perc;
|
||||
scontoexpr2perc(rigadoc->get(RDOC_SCONTO), false, str, perc);
|
||||
str = perc.string(8,4,'0');
|
||||
str.strip("." );
|
||||
fat.set("ALD.PERC", str);
|
||||
}
|
||||
fat.new_rec("NAD");
|
||||
|
Loading…
x
Reference in New Issue
Block a user