IDEMPIERE-4113 Print Color and Print Font of Format item is not assigned to Report that is first view
This commit is contained in:
parent
3975bacc99
commit
28cd219450
|
@ -687,8 +687,20 @@ queued-job-count = 0 (class javax.print.attribute.standard.QueuedJobCount)
|
||||||
|
|
||||||
if (doc != null)
|
if (doc != null)
|
||||||
{
|
{
|
||||||
appendInlineCss(doc);
|
//IDEMPIERE-4113
|
||||||
mapCssInfo.clear();
|
mapCssInfo.clear();
|
||||||
|
MPrintFormatItem item = null;
|
||||||
|
int printColIndex = -1;
|
||||||
|
for(int col = 0; col < m_printFormat.getItemCount(); col++)
|
||||||
|
{
|
||||||
|
item = m_printFormat.getItem(col);
|
||||||
|
if(item.isPrinted())
|
||||||
|
{
|
||||||
|
printColIndex++;
|
||||||
|
addCssInfo(item, printColIndex);
|
||||||
|
}
|
||||||
|
}//IDEMPIERE-4113
|
||||||
|
appendInlineCss(doc);
|
||||||
|
|
||||||
StringBuilder styleBuild = new StringBuilder();
|
StringBuilder styleBuild = new StringBuilder();
|
||||||
MPrintTableFormat tf = m_printFormat.getTableFormat();
|
MPrintTableFormat tf = m_printFormat.getTableFormat();
|
||||||
|
@ -921,10 +933,6 @@ queued-job-count = 0 (class javax.print.attribute.standard.QueuedJobCount)
|
||||||
else
|
else
|
||||||
td.setClass(cssPrefix + "-text");
|
td.setClass(cssPrefix + "-text");
|
||||||
}
|
}
|
||||||
//just run with on record
|
|
||||||
if (row == 0)
|
|
||||||
addCssInfo(item, printColIndex);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
else if (obj instanceof PrintData)
|
else if (obj instanceof PrintData)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue