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)
|
||||
{
|
||||
appendInlineCss(doc);
|
||||
//IDEMPIERE-4113
|
||||
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();
|
||||
MPrintTableFormat tf = m_printFormat.getTableFormat();
|
||||
|
@ -920,11 +932,7 @@ queued-job-count = 0 (class javax.print.attribute.standard.QueuedJobCount)
|
|||
td.setClass(cssPrefix + "-date");
|
||||
else
|
||||
td.setClass(cssPrefix + "-text");
|
||||
}
|
||||
//just run with on record
|
||||
if (row == 0)
|
||||
addCssInfo(item, printColIndex);
|
||||
|
||||
}
|
||||
}
|
||||
else if (obj instanceof PrintData)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue