IDEMPIERE-4113 Print Color and Print Font of Format item is not assigned to Report that is first view

This commit is contained in:
Hideaki Hagiwara 2019-11-23 20:31:18 +09:00
parent 3975bacc99
commit 28cd219450
1 changed files with 14 additions and 6 deletions

View File

@ -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)
{