Patch level : 12.0 454
Files correlati : cg0.exe Il programma di stampa progressivi IVA andava in loop. git-svn-id: svn://10.65.10.50/branches/R_10_00@24121 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
b61eb97d74
commit
d24ca9c577
@ -5,10 +5,8 @@
|
||||
// funzione per classificare i PIM e sommare tutto cio' che contengono
|
||||
#include "cgpim.h"
|
||||
|
||||
bool classify_pim(const TRectype& pimr, real& imp, real& iva, tiporec& t, bool tipost)
|
||||
bool classify_pim(const TRectype& pimr, real& imp, real& iva, tiporec& t, bool tipost, int & last_tiporec)
|
||||
{
|
||||
int last_checked = 0;
|
||||
|
||||
// parse CODTAB of pim record
|
||||
const TString80 ctab = pimr.get("CODTAB");
|
||||
|
||||
@ -27,7 +25,7 @@ bool classify_pim(const TRectype& pimr, real& imp, real& iva, tiporec& t, bool t
|
||||
imp = ZERO; iva = ZERO;
|
||||
bool found = false;
|
||||
|
||||
for (int i = 0; i <= stop_tiporec; i++)
|
||||
for (int i = last_tiporec + 1; i <= stop_tiporec; i++)
|
||||
{
|
||||
tiporec tocheck = (tiporec)i;
|
||||
|
||||
@ -239,6 +237,7 @@ bool classify_pim(const TRectype& pimr, real& imp, real& iva, tiporec& t, bool t
|
||||
if (found)
|
||||
{
|
||||
t = tocheck;
|
||||
last_tiporec = i;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -79,6 +79,6 @@ enum tiporec { acq_norm = 0, vend_norm = 1, // acquisti e vendite normali
|
||||
// CONTENTA? ciao, f. :)
|
||||
// -----------------------------------------------------------
|
||||
|
||||
bool classify_pim(const TRectype& pimr, real& imp, real& iva, tiporec& t, bool ts);
|
||||
bool classify_pim(const TRectype& pimr, real& imp, real& iva, tiporec& t, bool ts, int & last_tiporec);
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user