Fix [2870450] - 2pack - cannot export a printformat with two print details
https://sourceforge.net/tracker/?func=detail&aid=2870450&group_id=176962&atid=879332
This commit is contained in:
parent
042d2b249c
commit
a0e6fcd1aa
|
@ -193,10 +193,10 @@ public class PrintFormatElementHandler extends AbstractElementHandler {
|
|||
String sql = null;
|
||||
sql = "SELECT AD_PrintFormat_ID "
|
||||
+ "FROM AD_PrintFormat "
|
||||
+ "WHERE AD_PrintFormat_ID in "
|
||||
+ "(( select AD_PrintFormatChild_ID from AD_PrintFormatItem WHERE AD_PrintFormat_ID = "
|
||||
+ AD_PrintFormat_ID + " AND PrintFormatType = 'P' GROUP BY AD_PrintFormatChild_ID ), "
|
||||
+ AD_PrintFormat_ID + ") ";
|
||||
+ "WHERE (AD_PrintFormat_ID IN "
|
||||
+ "(SELECT AD_PrintFormatChild_ID FROM AD_PrintFormatItem WHERE AD_PrintFormat_ID = "
|
||||
+ AD_PrintFormat_ID + " AND PrintFormatType = 'P' GROUP BY AD_PrintFormatChild_ID) OR AD_PrintFormat_ID = "
|
||||
+ AD_PrintFormat_ID + ")";
|
||||
|
||||
PreparedStatement pstmt = null;
|
||||
pstmt = DB.prepareStatement(sql, getTrxName(ctx));
|
||||
|
|
Loading…
Reference in New Issue