git-svn-id: svn://10.65.10.50/trunk@2243 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
villa 1995-12-06 09:08:35 +00:00
parent a4271cdf75
commit e81e9347a6
2 changed files with 10 additions and 4 deletions

View File

@ -268,7 +268,13 @@ bool TPrimanota_application::recalc_handler(TMask_field& f, KEY key)
const bool on = f.get().not_empty();
const TMask& m = f.mask();
TSheet_field& ps = (TSheet_field&)m.field(FS_RATESHEET);
ps.enable_column(3, on);
ps.enable_column(3, on);
TPagamento* pag = app().pagamento();
if (pag->tipo_prima_rata() >= 4)
{
ps.enable_cell(0, 1, on);
ps.enable_cell(0, 2, on);
}
}
return TRUE;

View File

@ -654,8 +654,8 @@ word TPagamento::recalc_rate(int row, bool is_perc_modified,
}
if (oldscad <= 0) oldscad = 30;
if (oldtype <= 0) oldtype = 1;
if (oldscad <= 0) oldscad = _int_rate;
if (oldtype <= 0) oldtype = _def_tpr;
if (new_value != NULL)
{
@ -1110,7 +1110,7 @@ word TPagamento::recalc_rate(int row, bool is_perc_modified,
lastdate = data_rata(i);
oldtype = tipo_rata(i);
oldscad = scad_rata(i);
if (scad_rata(i) > 0) oldscad = scad_rata(i);
if (_inited && i > 0)
{
if (data_rata(i) <= data_rata(i-1))