From b1f2cb998fad41982a8f3c52158dfc71fa22fac1 Mon Sep 17 00:00:00 2001 From: alex Date: Thu, 5 Nov 2009 23:29:06 +0000 Subject: [PATCH] Patch level : 10.0 504 Files correlati : ve1.exe Ricompilazione Demo : [ ] Commento Bug 0001489 Immettere un filtro sulla stampa dei documenti che mi permetta di stampare solo i non stampati La stampa definitiva ora stampa solo i documenti non stampati mentre quella provvisoria li stampa tutti git-svn-id: svn://10.65.10.50/trunk@19581 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- ve/ve1300.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ve/ve1300.cpp b/ve/ve1300.cpp index 3ed7352ec..0866eadae 100755 --- a/ve/ve1300.cpp +++ b/ve/ve1300.cpp @@ -298,10 +298,13 @@ bool TReport_doc::print(const TRecordset& doc, TReport_book& book, bool definiti const TString old_query = recordset()->query_text(); TDoc_recordset* rs = new TDoc_recordset(doc, old_query); - set_recordset(rs); + + if (definitive && !rs->doc().stampabile()) + return true; + set_recordset(rs); bool printed = false; - + for (int c = 1; c <= copie; c++) { set_copy(c, copie);