IDEMPIERE-2570 Form reports stacking on same page when issued for several records

This commit is contained in:
Carlos Ruiz 2015-04-08 16:18:34 -05:00
parent 9fee5d028e
commit 35abd70d8a
1 changed files with 3 additions and 0 deletions

View File

@ -1009,6 +1009,9 @@ public class LayoutEngine implements Pageable, Printable, Doc
{
if (log.isLoggable(Level.INFO)) log.info("Row=" + row);
m_data.setRowIndex(row);
if (row > 0)
newPage(true, false); // break page per record when the report is a form
boolean somethingPrinted = true; // prevent NL of nothing printed and supress null
// for every item
for (int i = 0; i < m_format.getItemCount(); i++)