Patch level :
Files correlati : cg2.exe Ricompilazione Demo : [ ] Commento : Corretta gestione cambio causale in fase di inserimento. git-svn-id: svn://10.65.10.50/trunk@20412 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
bc7596afcb
commit
cbd452f110
@ -464,16 +464,13 @@ void TPrimanota_application::cgs_pack()
|
||||
|
||||
bool TPrimanota_application::ci_sono_importi(const TSheet_field& s) const
|
||||
{
|
||||
if (s.items() > 0)
|
||||
TImporto imp;
|
||||
FOR_EACH_SHEET_ROW(s, r, riga) if (riga && !riga->empty_items())
|
||||
{
|
||||
TImporto imp;
|
||||
FOR_EACH_SHEET_ROW(s, r, riga);
|
||||
{
|
||||
imp = *riga;
|
||||
if (!imp.is_zero())
|
||||
return true;
|
||||
}
|
||||
}
|
||||
imp = *riga;
|
||||
if (!imp.is_zero())
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -3230,16 +3227,19 @@ bool TPrimanota_application::quadratura_handler(TMask_field& f, KEY key)
|
||||
TSheet_field& shiva = m.sfield(F_SHEETIVA);
|
||||
|
||||
const real totdoc = app().totale_documento();
|
||||
real totdist;
|
||||
TGeneric_distrib distrib(totdoc, TCurrency::get_firm_dec());
|
||||
FOR_EACH_SHEET_ROW(shiva, o, orow)
|
||||
real totdist;
|
||||
if (!shiva.empty())
|
||||
{
|
||||
const real o_imponibile = orow->get(0);
|
||||
const real o_imposta = orow->get(3);
|
||||
FOR_EACH_SHEET_ROW(shiva, o, orow)
|
||||
{
|
||||
const real o_imponibile = orow->get(0);
|
||||
const real o_imposta = orow->get(3);
|
||||
|
||||
if (!o_imponibile.is_zero() || !o_imposta.is_zero())
|
||||
distrib.add(o_imponibile + o_imposta);
|
||||
totdist += o_imponibile + o_imposta;
|
||||
if (!o_imponibile.is_zero() || !o_imposta.is_zero())
|
||||
distrib.add(o_imponibile + o_imposta);
|
||||
totdist += o_imponibile + o_imposta;
|
||||
}
|
||||
}
|
||||
if (app()._perc_attesa_fld.full())
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user