Cosucce
git-svn-id: svn://10.65.10.50/trunk@1740 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
0650c31be0
commit
77c46f0582
@ -536,7 +536,7 @@ int TPartita::mov2rig(long numreg, int rm) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Trova la prima riga della partita contenente una fattura
|
// Trova la prima riga della partita contenente una fattura
|
||||||
int TPartita::prima_fattura() const
|
int TPartita::prima_fattura(long nreg) const
|
||||||
{
|
{
|
||||||
const int lastrow = last();
|
const int lastrow = last();
|
||||||
for (int r = first(); r <= lastrow; r = succ(r))
|
for (int r = first(); r <= lastrow; r = succ(r))
|
||||||
@ -544,6 +544,22 @@ int TPartita::prima_fattura() const
|
|||||||
const TRiga_partite& row = riga(r);
|
const TRiga_partite& row = riga(r);
|
||||||
const int tipomov = row.get_int(PART_TIPOMOV);
|
const int tipomov = row.get_int(PART_TIPOMOV);
|
||||||
if (tipomov == 1 || tipomov == 2)
|
if (tipomov == 1 || tipomov == 2)
|
||||||
|
if (nreg == -1 || nreg == row.get_long(PART_NREG))
|
||||||
|
return r;
|
||||||
|
}
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Trova la prima riga della partita contenente una fattura
|
||||||
|
int TPartita::primo_pagamento(long nreg) const
|
||||||
|
{
|
||||||
|
const int lastrow = last();
|
||||||
|
for (int r = first(); r <= lastrow; r = succ(r))
|
||||||
|
{
|
||||||
|
const TRiga_partite& row = riga(r);
|
||||||
|
const int tipomov = row.get_int(PART_TIPOMOV);
|
||||||
|
if (tipomov == 3) // TBI controllare per insoluti (tipomov == 6)
|
||||||
|
if (nreg == -1 || nreg == row.get_long(PART_NREG))
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user