Corretto MI2384 relativo al trasferimento campi EC101..EC106 Ec201..EC206.
Non sottraeva correttamente le fatture con scontrino. git-svn-id: svn://10.65.10.50/trunk@5640 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
66b38bf4cd
commit
5a93a9b074
@ -572,9 +572,9 @@ void TLiquidazione_app::recalc_att(int month, const char* codatt)
|
||||
if ((_cur->pos() & 0x7F) == 0)
|
||||
{
|
||||
#ifdef DBG
|
||||
msgdbg.format("Ricalcolo attivita': P=%ld/%ld",_cur->pos(),items);
|
||||
msgdbg.format("Ricalcolo attivita': %ld/%ld",_cur->pos(),items);
|
||||
freespace = GetFreeSpace(0);
|
||||
msgdbg << " Memoria libera(1): " << freespace/1024 << " Kbytes.";
|
||||
msgdbg << " Memoria libera: " << freespace/1024 << " Kbytes.";
|
||||
xvt_statbar_set(msgdbg);
|
||||
#endif
|
||||
do_events();
|
||||
@ -1874,7 +1874,7 @@ void TLiquidazione_app::iva11_set_arr_pim(const TString& codatt)
|
||||
cx._totale = 0;
|
||||
_CorrItem& ca = is_present ? (_CorrItem&) corr_ann[codiva] : cx;
|
||||
ca._totale += _pim->get_real("R3");
|
||||
if (!is_present) // se non c'e' lo aggiunge
|
||||
if (!is_present && ca._totale != ZERO) // se non c'e' lo aggiunge (evita i vuoti)
|
||||
{
|
||||
ca._aliquota = _iva->get_real("R0"); // Se e' nuovo setta l'aliquota
|
||||
corr_ann.add(codiva,ca);
|
||||
@ -1882,8 +1882,8 @@ void TLiquidazione_app::iva11_set_arr_pim(const TString& codatt)
|
||||
tt = _pim->get("S0");
|
||||
a13i = tt.get(0);
|
||||
a13v = tt.get(1);
|
||||
adf = imp - _pim->get_real("R7") - a13i;
|
||||
adi = iva - _pim->get_real("R8") - a13v;
|
||||
adf = imp - _pim->get_real("R7") - a13i + _pim->get_real("R5");
|
||||
adi = iva - _pim->get_real("R8") - a13v + _pim->get_real("R6");
|
||||
if (aliq == 4.00)
|
||||
{
|
||||
array.add(adf,TAB11_EC101);
|
||||
|
Loading…
x
Reference in New Issue
Block a user