Puttanatiella credito precedente non notificata, aggiustata visualizzazione
git-svn-id: svn://10.65.10.50/trunk@842 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
d15ac0013b
commit
b082989fc2
@ -380,8 +380,6 @@ void TLiquidazione_app::recalc_att(int month, const char* codatt)
|
||||
{
|
||||
look_iva(_rmoviva->get("CODIVA"));
|
||||
|
||||
// TBI settare _isrimborso
|
||||
|
||||
TString codiva = _iva->get("CODTAB");
|
||||
TString tipoiva = _iva->get("S1");
|
||||
int tipoes_v = (int)_iva->get_long("I3");
|
||||
|
@ -354,33 +354,30 @@ real TLiquidazione_app::credito_prec(int month)
|
||||
{
|
||||
look_lia();
|
||||
if (_lia->status() == NOERR)
|
||||
{
|
||||
c = _lia->get_real("R0");
|
||||
if (!c.is_zero()) return c;
|
||||
}
|
||||
int yr = atoi(_year) - 1;
|
||||
_lim->zero();
|
||||
*_lim_anno = yr;
|
||||
*_lim_mese = 12;
|
||||
if (_lim->read() == NOERR)
|
||||
// int yr = atoi(_year) - 1;
|
||||
// _lim->zero();
|
||||
// *_lim_anno = yr;
|
||||
// *_lim_mese = 12;
|
||||
// if (_lim->read() == NOERR)
|
||||
// considera anche il rimborso
|
||||
c = _lim->get_real("R0") + _lim->get_real("R1");
|
||||
// c = _lim->get_real("R0") + _lim->get_real("R1");
|
||||
// e le eventuali rettifiche
|
||||
real rett = _lim->get_real("R5");
|
||||
c += rett;
|
||||
// real rett = _lim->get_real("R5");
|
||||
// c += rett;
|
||||
// e le ulteriori detrazioni
|
||||
real detr = _lim->get_real("R6");
|
||||
c -= detr;
|
||||
// real detr = _lim->get_real("R6");
|
||||
// c -= detr;
|
||||
// e l'acconto versato a dicembre
|
||||
_del->zero();
|
||||
// _del->zero();
|
||||
|
||||
TString ditta = _nditte->curr().get("CODDITTA");
|
||||
*_del_ditta = ditta;
|
||||
*_del_anno = yr;
|
||||
*_del_mese = 12;
|
||||
*_del_tipo = 7;
|
||||
if (_del->read() == NOERR)
|
||||
c -= _del->get_real("R0");
|
||||
// TString ditta = _nditte->curr().get("CODDITTA");
|
||||
// *_del_ditta = ditta;
|
||||
// *_del_anno = yr;
|
||||
// *_del_mese = 12;
|
||||
// *_del_tipo = 7;
|
||||
// if (_del->read() == NOERR)
|
||||
// c -= _del->get_real("R0");
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -187,6 +187,14 @@ bool Visliq_app::sel_mese_sh1 (TMask_field& f, KEY k)
|
||||
((Visliq_app&)main_app()).vis_one(month);
|
||||
((Visliq_app&)main_app()).look_lim(month);
|
||||
((Visliq_app&)main_app()).update_sheet_row(tt);
|
||||
TMask& sm = sh.sheet_mask();
|
||||
|
||||
sm.field(103).set(tt.get(2));
|
||||
sm.field(104).set(tt.get(3));
|
||||
sm.field(105).set(tt.get(4));
|
||||
sm.field(106).set(tt.get(5));
|
||||
sm.field(107).set(tt.get(6));
|
||||
|
||||
sh.force_update();
|
||||
return TRUE;
|
||||
}
|
||||
@ -205,11 +213,11 @@ bool Visliq_app::sel_mese_sh2 (TMask_field& f, KEY k)
|
||||
|
||||
void Visliq_app::update_sheet_row(TToken_string& t)
|
||||
{
|
||||
t.add(abs(_lim->get_real("R0")).string(),2);
|
||||
t.add((_lim->get_real("R0")).sign() > 0 ? "D" : "C", 3);
|
||||
// t.add(abs(_lim->get_real("R0")).string(),2);
|
||||
// t.add((_lim->get_real("R0")).sign() > 0 ? "D" : "C", 3);
|
||||
t.add((_lim->get_real("R1")).string(),4);
|
||||
t.add(abs(_lim->get_real("R5")).string(),5);
|
||||
t.add((_lim->get_real("R5")).sign() > 0 ? "D" : "C", 3);
|
||||
t.add((_lim->get_real("R5")).sign() > 0 ? "D" : "C", 6);
|
||||
}
|
||||
|
||||
bool Visliq_app::vis_liq()
|
||||
@ -443,9 +451,7 @@ bool Visliq_app::vis_one(int m)
|
||||
|
||||
for(;;)
|
||||
{
|
||||
begin_wait();
|
||||
KEY k = msk.run();
|
||||
end_wait();
|
||||
|
||||
if (k == K_INS || k == K_SAVE) // TBI registra: dovra' essere RICALCOLA
|
||||
{
|
||||
@ -469,7 +475,7 @@ bool Visliq_app::vis_one(int m)
|
||||
}
|
||||
else
|
||||
{
|
||||
vsw->replace(ll, n_rettifica.string("###.###.###.###"), 58);
|
||||
vsw->replace(ll, n_rettifica.string("###.###.###.### "), 58);
|
||||
vsw->replace(ll2, " ", 75);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user