Patch level : 10.0 212

Files correlati     : cg4.exe cg4300a.msk
Ricompilazione Demo : [ ]
Commento            :
Eliminato loop infinito per cui era impossibile uscire dall'applicazione
Aggiornata barra principale della maschera di liquidazione


git-svn-id: svn://10.65.10.50/trunk@18029 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 2009-01-15 16:22:41 +00:00
parent 3f1990ece6
commit 6053c3785c
3 changed files with 14 additions and 20 deletions

View File

@ -845,7 +845,7 @@ void TLiquidazione_app::build_ditte_sheet(wht what)
bool TLiquidazione_app::set_liquidazione()
{
TMask m("cg4300a.msk");
TMask m("cg4300a");
m.set_handler(CG43_FLD_DTO, to_ditt_handler);
m.set_handler(CG43_FLD_DFR, fr_ditt_handler);
@ -857,25 +857,20 @@ bool TLiquidazione_app::set_liquidazione()
m.set_handler(CG43_BUT_ANN, reset_button);
m.set_handler(CG43_CHK_FINAL, chk_final_handler);
m.set(CG43_FLD_SELECTED, _selected.ones());
m.set(CG43_FLD_ANNO, _year);
set_choice_limits(m);
KEY k;
// stampa abilitata per default
m.set(CG43_CHK_STAMPA,"X");
_month = m.get_int(CG43_LST_MESE);
do
{
m.set(CG43_RDB_VERS, _what);
k = m.run();
if (k == K_ESC)
break;
m.set(CG43_RDB_VERS, _what);
const KEY k = m.run();
if (k == K_ENTER)
{
// handlers have set everything
_month = _what == trimestre ? m.get_int(CG43_LST_TRIM) :
m.get_int(CG43_LST_MESE);
@ -888,9 +883,7 @@ bool TLiquidazione_app::set_liquidazione()
if (_isprint) printer().setdate(_date);
if (_printonly) _recalc = never;
}
while (k != K_ENTER && k != K_ESC);
}
return k == K_ENTER;
}

View File

@ -1,10 +1,10 @@
#include "cg4300a.h"
TOOLBAR "topbar" 0 0 0 2
#include <stdbar.h>
#include <printbar.h>
ENDPAGE
PAGE "Calcolo Liquidazioni" -1 -1 68 16
PAGE "Calcolo Liquidazioni" 0 2 0 0
RADIOBUTTON CG43_RDB_VERS 16
BEGIN

View File

@ -106,12 +106,13 @@ int analizza_IVA(const real& imptot, const real& ivatot, const real perc_ind,
// associato ad un motivo ed una percentuale di indetraibilita'
int get_tipodet_from_rmi(const TRectype& rmi, const TRectype& mov,real& percind)
{
const TCausale c(mov.get(MOV_CODCAUS));
const int annodoc = mov.get_date(MOV_DATAREG).year();
int tipodet;
const TCausale caus(mov.get(MOV_CODCAUS), annodoc);
int tipodet = 0;
percind = indetraibile_al(rmi.get(RMI_TIPODET), caus, annodoc, tipodet);
percind = indetraibile_al(rmi.get(RMI_TIPODET), c, annodoc, tipodet);
return tipodet;
return tipodet;
}
///////////////////////////////////