Corretta la set rate differenziate perche' non gestiva tutti i casi
git-svn-id: svn://10.65.10.50/trunk@1924 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
4922e73b4d
commit
faaecf5c85
@ -70,7 +70,7 @@ void TPagamento::set_mese_commerciale(bool v, int& sscad)
|
|||||||
void TPagamento::set_rate_differenziate(int v)
|
void TPagamento::set_rate_differenziate(int v)
|
||||||
{
|
{
|
||||||
_dirty = FALSE;
|
_dirty = FALSE;
|
||||||
if (!_rdiff && v == 2) return;
|
if (_rdiff ^ v == 2) return;
|
||||||
|
|
||||||
if (v == 2 && (100 % n_rate()) == 0)
|
if (v == 2 && (100 % n_rate()) == 0)
|
||||||
{
|
{
|
||||||
@ -80,9 +80,9 @@ void TPagamento::set_rate_differenziate(int v)
|
|||||||
TToken_string& tt = rata(i);
|
TToken_string& tt = rata(i);
|
||||||
tt.add(p,1);
|
tt.add(p,1);
|
||||||
}
|
}
|
||||||
_rdiff = (v != 2);
|
|
||||||
_dirty = TRUE;
|
|
||||||
}
|
}
|
||||||
|
_rdiff = (v != 2);
|
||||||
|
_dirty = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
void TPagamento::set_tipo_prima_rata(int v, int sscad)
|
void TPagamento::set_tipo_prima_rata(int v, int sscad)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user