Invoice transactions Doc Report not working
http://sourceforge.net/tracker/?func=detail&atid=879332&aid=2794932&group_id=176962 Cuase when the LayoutEngine found the isPrinted then try show the Background Image for Document Printed, So now only the check when is table and do not a view. Bug introduced BF [ 2011567 ] kind regards Victor Perez www.e-evolution.com
This commit is contained in:
parent
7067b7b2f7
commit
5d1a38bb16
|
@ -479,7 +479,7 @@ public class LayoutEngine implements Pageable, Printable, Doc
|
||||||
Image image = null;
|
Image image = null;
|
||||||
MPrintTableFormat tf = m_format.getTableFormat();
|
MPrintTableFormat tf = m_format.getTableFormat();
|
||||||
MTable table = MTable.get(getCtx(), getPrintInfo().getAD_Table_ID());
|
MTable table = MTable.get(getCtx(), getPrintInfo().getAD_Table_ID());
|
||||||
if(table.getColumn("IsPrinted") != null)
|
if(table.getColumn("IsPrinted") != null && !table.isView())
|
||||||
{
|
{
|
||||||
String tableName = table.getTableName();
|
String tableName = table.getTableName();
|
||||||
final String sql = "SELECT IsPrinted FROM "+tableName+" WHERE "+tableName+"_ID=?";
|
final String sql = "SELECT IsPrinted FROM "+tableName+" WHERE "+tableName+"_ID=?";
|
||||||
|
|
Loading…
Reference in New Issue