IDEMPIERE-2570 Form reports stacking on same page when issued for several records
This commit is contained in:
parent
9fee5d028e
commit
35abd70d8a
|
@ -1009,6 +1009,9 @@ public class LayoutEngine implements Pageable, Printable, Doc
|
||||||
{
|
{
|
||||||
if (log.isLoggable(Level.INFO)) log.info("Row=" + row);
|
if (log.isLoggable(Level.INFO)) log.info("Row=" + row);
|
||||||
m_data.setRowIndex(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
|
boolean somethingPrinted = true; // prevent NL of nothing printed and supress null
|
||||||
// for every item
|
// for every item
|
||||||
for (int i = 0; i < m_format.getItemCount(); i++)
|
for (int i = 0; i < m_format.getItemCount(); i++)
|
||||||
|
|
Loading…
Reference in New Issue