Corretto il filtro sui documenti e la lettura dalla tabella spese
e prestazioni. git-svn-id: svn://10.65.10.50/trunk@3858 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
620c0d1df6
commit
7f36c49017
@ -983,7 +983,7 @@ error_type TContabilizzazione_app::search_costo_ricavo(TBill& conto, const TRiga
|
||||
{
|
||||
TTable* tab = t == 'P' ? _prs : _spp;
|
||||
tab->put("CODTAB",r.get("CODART"));
|
||||
if (tab->read())
|
||||
if (tab->read()==NOERR)
|
||||
{
|
||||
gr = tab->get_int(is_cli ? "I0" : "I3");
|
||||
co = tab->get_int(is_cli ? "I1" : "I4");
|
||||
@ -1489,7 +1489,6 @@ void TContabilizzazione_app::calc_pagament()
|
||||
TRectype& head = _movimento->lfile().curr();
|
||||
TString16 codpag(head.get(MOV_CODPAG));
|
||||
TString16 data(_doc->get("DATAINSC"));
|
||||
if (data.empty()) data = _doc->get("DATADOC");
|
||||
_pagamento = new TPagamento(codpag, data);
|
||||
real totspese = _doc->spese();
|
||||
real totimposte = _doc->imposta();
|
||||
@ -1819,6 +1818,7 @@ void TContabilizzazione_app::contabilize()
|
||||
p.setstatus(j+1);
|
||||
doc_cur = j;
|
||||
_doc->read(doc_cur.curr()); // legge il documento
|
||||
if (codnum != _doc->get("CODNUM")) continue; // patch del cazzo
|
||||
if (doc_tipo_stato_ok()) // controlla che il tipo documento e lo stato siano coerenti con la ELD selezionata
|
||||
contabilize_document();
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user