changed filename for exported pdfDocs

This commit is contained in:
MaxBUhe 2020-06-03 15:37:47 +02:00
parent 468339da09
commit 6a931daa70

View File

@ -54,7 +54,8 @@ class d3_overview_controller_pdfdocuments extends d3_overview_controller_pdfdocu
self::$_blIsAdmin = 0; self::$_blIsAdmin = 0;
$oUtils = Registry::getUtils(); $oUtils = Registry::getUtils();
$sTrimmedBillName = trim($oOrder->oxorder__oxbilllname->getRawValue()); $sTrimmedBillName = trim($oOrder->oxorder__oxbilllname->getRawValue());
$sFilename = $oOrder->oxorder__oxordernr->value . "_" . $sTrimmedBillName . ".pdf"; //oxbillr nicht so eingeschrieben lassen
$sFilename = $oOrder->oxorder__oxbillnr->value . "_" . $sTrimmedBillName . ".pdf";
$sFilename = $this->makeValidFileName($sFilename); $sFilename = $this->makeValidFileName($sFilename);
ob_start(); ob_start();
$oOrder->genPdf($sFilename, Registry::getConfig()->getRequestParameter("pdflanguage")); $oOrder->genPdf($sFilename, Registry::getConfig()->getRequestParameter("pdflanguage"));