FSN#37586 Totaal bedragen bij facturen verkeerd uitgelijnd

svn path=/Website/trunk/; revision=30806
This commit is contained in:
Erik Groener
2016-09-22 06:54:27 +00:00
parent cc44adbdcf
commit 1a164940c5
2 changed files with 26 additions and 2 deletions

View File

@@ -565,6 +565,26 @@ function addFlexKenmerkHeader(oRsFlexData, lthis)
return lhtml;
}
function addFlexKenmerkFooter(oRsFlexData, lthis)
{
with(lthis)
{
var lhtml = "";
if ((isPrinting || showProperties) && lthis.printFlex)
{
lhtml += "<td></td>";
}
else if (isExcel && lthis.printFlex)
{
for (var i=0; i < oRsFlexData.length; i++)
{
lhtml += "<td></td>";
}
}
}
return lhtml;
}
function OpenFlexFile(Module, Niveau, Key, Kenmerk_key, fname)
{
// Lever code op voor tonen van een bepaalde flexfile streaming

View File

@@ -867,7 +867,7 @@ function __rsProcessResultset(processParams) // processParams wordt blind aan al
// Dit hoort eigenlijk niet zo.
var htmlFoot = "";
if (oRs.EOF)
htmlFoot += makeTableFootnote(anyMultiActions);
htmlFoot += makeTableFootnote(anyMultiActions, oRsFlexData);
if (anyMultiActions && !inline)
{
@@ -1349,7 +1349,7 @@ function __rsMakeTableRow(oRs, oRsFlexData, cnt, anyMultiActions, noFlexResult)
return html;
}
function __rsMakeTableFootnote(anyMultiActions)
function __rsMakeTableFootnote(anyMultiActions, oRsFlexData)
{
var html = "";
with(this)
@@ -1376,6 +1376,10 @@ function __rsMakeTableFootnote(anyMultiActions)
{
if (!columns[i].combine || isPrinting || showProperties || isExcel) // Bij isPrinting, isExcel of showProperties niet combineren.
{
// Nog kolommen toevoegen voor flexkenmerken
if (propertiesColumn == i)
html_f += addFlexKenmerkFooter(oRsFlexData, this);
html_f += "<td";
var sort_class = columns[i].thClass? " " + columns[i].thClass : "";
if (sort_class != null)