Patch level : 10.0

Files correlati     : ve0.exe
Ricompilazione Demo : [ ]
Commento            :
Tolta generazione file di debug conai


git-svn-id: svn://10.65.10.50/trunk@19833 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 2009-12-22 17:29:07 +00:00
parent c6ed5a8d50
commit b9c8acabc4

View File

@ -2737,26 +2737,11 @@ void TDocumento::update_spese_aut(TString_array & spese_aut, bool preserve_old,
real TDocumento::calc_conai_qta(TCONAI_class type) real TDocumento::calc_conai_qta(TCONAI_class type)
{ {
real qta; real qta;
if (type == CONAI_CARTA)
{
ofstream dbg("conai.caz");
FOR_EACH_PHYSICAL_RDOC(*this, i, r) if (r->is_merce() || r->is_omaggio())
{
const real row_qta = r->calc_conai_qta(type);
qta += row_qta;
dbg << i << '\t' << row_qta.string() << endl;
}
}
else
{
FOR_EACH_PHYSICAL_RDOC(*this, i, r) if (r->is_merce() || r->is_omaggio()) FOR_EACH_PHYSICAL_RDOC(*this, i, r) if (r->is_merce() || r->is_omaggio())
{ {
const real row_qta = r->calc_conai_qta(type); const real row_qta = r->calc_conai_qta(type);
qta += row_qta; qta += row_qta;
} }
}
return qta; return qta;
} }
@ -2802,8 +2787,7 @@ void TDocumento::update_conai()
real qta = calc_conai_qta(pos); real qta = calc_conai_qta(pos);
if (dataes.ok() && datadoc > dataes) if (dataes.ok() && datadoc > dataes)
perc_esenz = ZERO; perc_esenz = ZERO;
const bool cli_esente = (esponi_esenti) && (perc_esenz == CENTO); const bool cli_esente = esponi_esenti && (perc_esenz >= CENTO);
if (!cli_esente && !perc_esenz.is_zero()) if (!cli_esente && !perc_esenz.is_zero())
qta = qta * (CENTO - perc_esenz) / CENTO; // More precise qta = qta * (CENTO - perc_esenz) / CENTO; // More precise
if (qta > ZERO) if (qta > ZERO)
@ -2828,9 +2812,7 @@ void TDocumento::update_conai()
const TString4 cod_iva_cli = codesiva() ; const TString4 cod_iva_cli = codesiva() ;
TSpesa_prest sp; TSpesa_prest sp;
FOR_EACH_CONAI_CLASS(ct) FOR_EACH_CONFIGURED_CONAI_CLASS(ct) if (!updated[ct])
{
if (!updated[ct])
{ {
const real perc_esenz = cfven.get_real(__conai_cf_names[ct]); const real perc_esenz = cfven.get_real(__conai_cf_names[ct]);
const bool cli_esente = (esponi_esenti) && (perc_esenz == CENTO); const bool cli_esente = (esponi_esenti) && (perc_esenz == CENTO);
@ -2874,7 +2856,6 @@ void TDocumento::update_conai()
} }
} }
} }
}
} }
bool TDocumento::is_evaso() const bool TDocumento::is_evaso() const