FSN#39809 cust.xsl en xust.css mogen nu ook aanwezig zijn als customerId + .xsl of .css

svn path=/Website/trunk/; revision=33577
This commit is contained in:
2017-04-24 13:32:53 +00:00
parent 1ba6437383
commit 468f7c99ea
2 changed files with 21 additions and 5 deletions

View File

@@ -275,9 +275,19 @@ function send1Order(Bedrijf_key, prs_loc_key, XMLnode, OpdrKey, ordernr, Sender,
function getXslNode(pXslFile, pNode)
{
var fso = new ActiveXObject("Scripting.FileSystemObject");
var custIDxsl = "xsl/" + customerId.toLowerCase() + ".xsl";
if (pXslFile && pXslFile == "xsl/cust.xsl")
{
var fso = Server.CreateObject("Scripting.FileSystemObject");
var xslFile = custabspath + "/" + custIDxsl;
if (fso.FileExists(xslFile))
pXslFile = custIDxsl;
}
var vFile = pXslFile;
if (vFile == "xsl/cust.xsl")
if (vFile == "xsl/cust.xsl" || vFile == custIDxsl)
{
vFile = "xsl/" + pNode + ".xsl";
if (!fso.FileExists(custabspath + "/" + vFile))

View File

@@ -596,13 +596,19 @@ function notificationSYS(rec, params)
function getXslName(pNode)
{
var fso = new ActiveXObject("Scripting.FileSystemObject");
var resxslsheet = S("puo_notificationxsl");
var resxslsheet = S("puo_notificationxsl").toLowerCase() || "";
if (resxslsheet == "xsl/cust.xsl")
{
var fso = Server.CreateObject("Scripting.FileSystemObject");
var custIDxsl = "xsl/" + customerId.toLowerCase() + ".xsl";
if (fso.FileExists(custabspath + "/" + custIDxsl))
resxslsheet = custIDxsl;
}
if (pNode)
{
resxslsheet = "xsl/" + pNode + ".xsl";
if (!fso.FileExists(custabspath + "/" + resxslsheet))
resxslsheet = S("puo_notificationxsl");
if (fso.FileExists(custabspath + "/xsl/" + pNode + ".xsl"))
resxslsheet = "xsl/" + pNode + ".xsl";
}
if (!fso.FileExists(custabspath + "/" + resxslsheet))