Patch level : 10.0 NO PATCH
Files correlati : ps0713 Ricompilazione Demo : [ ] Commento : Aggiunto filtro sulle date pagamento (deve essere minore o uguale alla data passata sulla maschera) git-svn-id: svn://10.65.10.50/branches/R_10_00@20823 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
0772ccb84b
commit
f329667a22
@ -76,16 +76,16 @@ protected:
|
|||||||
virtual const char * extra_modules() const {return "cg";}
|
virtual const char * extra_modules() const {return "cg";}
|
||||||
virtual void main_loop();
|
virtual void main_loop();
|
||||||
|
|
||||||
bool test_partita(const long numreg, TDate& last_data_pag) const;
|
bool test_partita(const long numreg, TDate& last_data_pag, const TDate& data) const;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
void esporta_righe_iva(const TMask& msk) const;
|
void esporta_righe_iva(const TMask& msk) const;
|
||||||
void set_inviva(TISAM_recordset& rmoviva) const;
|
void set_inviva(TISAM_recordset& rmoviva, const TDate& data) const;
|
||||||
};
|
};
|
||||||
|
|
||||||
//TEST_PARTITA: metodo che cerca l'ultima data pagamento delle partite relative ad un numreg (la maggiore)
|
//TEST_PARTITA: metodo che cerca l'ultima data pagamento delle partite relative ad un numreg (la maggiore)
|
||||||
//il metodo restiruisce true se esiste almeno una partita per il numreg indicato
|
//il metodo restiruisce true se esiste almeno una partita per il numreg indicato
|
||||||
bool TEsporta_dativa_app::test_partita(const long numreg, TDate& last_data_pag) const
|
bool TEsporta_dativa_app::test_partita(const long numreg, TDate& last_data_pag, const TDate& data) const
|
||||||
{
|
{
|
||||||
TPartite_array torneo;
|
TPartite_array torneo;
|
||||||
//aggiungo all'array tutte le partite con quel numreg
|
//aggiungo all'array tutte le partite con quel numreg
|
||||||
@ -110,7 +110,7 @@ bool TEsporta_dativa_app::test_partita(const long numreg, TDate& last_data_pag)
|
|||||||
last_data_pag = datadoc;
|
last_data_pag = datadoc;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return last_data_pag <= data ? true : false;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -163,7 +163,7 @@ void TEsporta_dativa_app::esporta_righe_iva(const TMask& m) const
|
|||||||
|
|
||||||
TDate last_data_pag;
|
TDate last_data_pag;
|
||||||
const long numreg = rmoviva.get(RMI_NUMREG).as_int();
|
const long numreg = rmoviva.get(RMI_NUMREG).as_int();
|
||||||
bool partita_chiusa = test_partita(numreg, last_data_pag);
|
bool partita_chiusa = test_partita(numreg, last_data_pag, adata);
|
||||||
|
|
||||||
if (partita_chiusa)
|
if (partita_chiusa)
|
||||||
{
|
{
|
||||||
@ -245,11 +245,11 @@ void TEsporta_dativa_app::esporta_righe_iva(const TMask& m) const
|
|||||||
msg << "Si conferma l'esportazione definitiva dei movimenti IVA fino al ";
|
msg << "Si conferma l'esportazione definitiva dei movimenti IVA fino al ";
|
||||||
msg << m.get(F_ADATA);
|
msg << m.get(F_ADATA);
|
||||||
if (yesno_box(msg))
|
if (yesno_box(msg))
|
||||||
set_inviva(rmoviva); //mette il flag di "INVIVA" alla testata movimento
|
set_inviva(rmoviva, dadata); //mette il flag di "INVIVA" alla testata movimento
|
||||||
}
|
}
|
||||||
|
|
||||||
//SET_INVIA: metodo che mette il flag di "INVIVA" alla testata movimento
|
//SET_INVIA: metodo che mette il flag di "INVIVA" alla testata movimento
|
||||||
void TEsporta_dativa_app::set_inviva(TISAM_recordset& rmoviva) const
|
void TEsporta_dativa_app::set_inviva(TISAM_recordset& rmoviva, const TDate& data) const
|
||||||
{
|
{
|
||||||
long last_numreg = 0L;
|
long last_numreg = 0L;
|
||||||
|
|
||||||
@ -267,7 +267,7 @@ void TEsporta_dativa_app::set_inviva(TISAM_recordset& rmoviva) const
|
|||||||
if (curr_numreg != last_numreg)
|
if (curr_numreg != last_numreg)
|
||||||
{
|
{
|
||||||
TDate last_data_pag;
|
TDate last_data_pag;
|
||||||
bool partita_chiusa = test_partita(curr_numreg, last_data_pag);
|
bool partita_chiusa = test_partita(curr_numreg, last_data_pag, data);
|
||||||
//controllo che la partita sia chiusa
|
//controllo che la partita sia chiusa
|
||||||
if (partita_chiusa)
|
if (partita_chiusa)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user