Ultima correzione scadenze mese commerciale

git-svn-id: svn://10.65.10.50/trunk@2501 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
villa 1996-01-25 08:47:50 +00:00
parent 4ad371e1ec
commit b2e3c720ba

View File

@ -430,8 +430,10 @@ void TPagamento::adjust_importo_lire()
}
void TPagamento::next_scad(TDate& d, int scad, bool mcomm, int rata)
{
if (mcomm && rata > 0)
{
if (rata == 0 || !mcomm) d += scad;
if (mcomm)
{
int nm = scad / 30;
int ny = nm / 12;
@ -459,8 +461,6 @@ void TPagamento::next_scad(TDate& d, int scad, bool mcomm, int rata)
if (!last && dy < d.day())
d.set_day(dy);
}
else d += scad;
}
void TPagamento::set_default_type(int type, bool change_existing)