Patch level : 12.0
Files correlati : Commento: In Archiviazione sostitutiva affinata la procedura di abbinamento di TD24 e TD04 (note di credito con importo negativo)
This commit is contained in:
parent
eb06dc642f
commit
8c7161ea13
@ -62,7 +62,11 @@ bool TFppro::guess_the_doc(const TLocalisamfile& mov)
|
||||
query << " AND \n" << "P2_FISCIVACOD = '" << forn.get(CLI_PAIV) << "'";
|
||||
if (forn.gruppo_IVA())
|
||||
query << " AND \n" "P2_COCAZZO = '" << forn.get(CLI_COFI) << "'"; // cazzo;
|
||||
query << " AND \n" "PQ_IMPTOTDOC = " << tot;
|
||||
if (tot < 0)
|
||||
query << " AND \n" "(PQ_IMPTOTDOC = " << tot << " OR PQ_IMPTOTDOC = " << abs(tot) << ")";
|
||||
else
|
||||
query << " AND \n" "PQ_IMPTOTDOC = " << tot;
|
||||
|
||||
|
||||
if (_db->sq_set_exec(query) && _db->sq_items() == 1)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user