From 5c0af15c441fc4d6404ca1e646dce04ce19943cc Mon Sep 17 00:00:00 2001 From: Alessandro Bonazzi Date: Thu, 24 Aug 2023 01:01:33 +0200 Subject: [PATCH] Patch level : 12.00 1278 Files correlati : ca3.exe ca3*.msk Commento : La stampa del bilancio di commessa non considerava bene le fatturre da ricevere evase. --- src/include/brwbut.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/include/brwbut.cpp b/src/include/brwbut.cpp index 5eac80b60..27d6907da 100644 --- a/src/include/brwbut.cpp +++ b/src/include/brwbut.cpp @@ -1741,6 +1741,8 @@ bool TReport_select::check(CheckTime ct) TToken_string * row = (TToken_string *)obj; found = (repdescr == row->get(0)); + if (_type == 'D' && !found) + found = (repdescr == row->get(1)); if (found) { name = row->get(descr_type() ? 1 : 0); @@ -1784,7 +1786,7 @@ const TString & TReport_select::get_path(const char * name) found = (repdescr == row->get(0)); if (found) { - path = row->get(0); + path = _type =="D" ? row->get(1) : row->get(0); break; } }