177 Commits

Auteur SHA1 Bericht Datum
6859409e93 reformat backend table 2025-05-17 22:24:32 +02:00
e1f8eb1376 fix development mode document type 2025-05-17 22:23:35 +02:00
f63b326415 development mode ask for document type 2025-05-17 22:22:37 +02:00
fdb05bcaed don't show unset information in document 2025-05-17 22:18:18 +02:00
5f0e1cb405 combine payable until text and date to one item 2025-05-17 22:17:46 +02:00
2bd2a150b1 fix typos 2025-05-17 22:16:41 +02:00
98bc9a889c make logo and background image configurable 2025-05-17 22:13:50 +02:00
79bed94a8b select included documents for generating 2025-05-17 22:12:02 +02:00
43c5492bd4 add extendable page settings block 2025-05-15 11:36:00 +02:00
0015d17dc2 add block around footer table 2025-05-15 07:58:19 +02:00
6cc376125a prevent malicious versions of HTML2PDF library 2025-05-14 22:13:26 +02:00
c097e06ac1 can add basic auth credentials to load image file from protected shop 2025-05-14 13:27:29 +02:00
10c08da415 register shop host as allowed to prevent security check issues 2025-05-14 13:22:59 +02:00
e9c88117da change case of 3rd party library methods 2025-05-14 13:22:10 +02:00
1bcad628ec OrderOverview controller show the PDF generator exception message 2025-05-14 13:20:06 +02:00
e9987b5221 adjust version informations 2023-12-22 10:57:04 +01:00
010dda9050 change to vector module icon 2023-12-05 10:01:57 +01:00
1e91990a28 handle unset order in order based document types 2023-09-19 23:32:55 +02:00
93fd76de19 make installable in 6.5.2 (v6.14) 2023-07-21 10:49:55 +02:00
da203be4f9 add product logo 2023-06-09 12:21:01 +02:00
e0ab753ef2 adjust version 2023-05-09 14:53:42 +02:00
34498edfa4 fix multiple documents at once
when generating several documents in a common call (e.g. order manager task), the contents of the later documents are appended to the earlier ones
2023-05-09 12:10:45 +02:00
88e3af9a51 make installable in OXID 6.4 + 6.5 2023-01-04 09:43:28 +01:00
d835b64fe3 make CLI check compatible to PHP internal server 2021-11-29 10:07:56 +01:00
66ff1aa732 make installable in OXID 6.3.1 2021-08-03 14:30:49 +02:00
31aa9ac3be Merge branch 'rel_1.x' of git.d3data.de:D3Public/pdfdokumente into rel_1.x 2021-08-03 14:30:10 +02:00
76aa27b843 complete changelog 2021-04-30 21:45:09 +02:00
57839562f2 complete changelog 2021-04-30 21:45:09 +02:00
2963aced46 adjust version informations 2021-04-30 21:42:31 +02:00
53048b0189 adjust version informations 2021-04-30 21:42:31 +02:00
ad00dfdea8 make installable in OXID 6.3.x 2021-04-26 08:41:13 +02:00
694fd9f142 make installable in OXID 6.3.x 2021-04-26 08:41:13 +02:00
d7b279a4aa use improved filename sanitizing methods of ModCfg 2021-02-22 10:07:26 +01:00
293a8a9427 use improved filename sanitizing methods of ModCfg 2021-02-22 10:07:26 +01:00
c82fa1f01f make installable in OXID 6.2.3 2020-11-24 20:55:54 +01:00
64c1d3f398 make installable in OXID 6.2.3 2020-11-24 20:55:54 +01:00
09f6111c4d don't reset new order state if bill number should set
this prevents required save in some cases
2020-11-20 11:52:59 +01:00
a8ef16a4b2 don't reset new order state if bill number should set
this prevents required save in some cases
2020-11-20 11:52:59 +01:00
720a506da3 adjust version informations 2020-08-20 08:53:11 +02:00
b506d4e7c7 adjust version informations 2020-08-20 08:53:11 +02:00
850976e386 change id of invoice without logo PDF 2020-08-13 16:29:25 +02:00
369eee2b5c change id of invoice without logo PDF 2020-08-13 16:29:25 +02:00
7d27e27764 add preAction and postAction calls to prevent wrong filenames because unset values 2020-08-13 14:50:48 +02:00
f0eb1423ee update documentation, remove external IntelliSenseHelper 2020-08-13 09:39:19 +02:00
282c7d1a12 change documentation content 2020-08-13 08:57:49 +02:00
f86633a260 divide multi language into different languages 2020-08-13 08:48:21 +02:00
c353175701 extend README 2020-08-13 08:42:51 +02:00
883b4b18d3 adjust README 2020-07-07 23:03:07 +02:00
5d54fa90b4 change license note in composer.json 2020-07-06 11:10:26 +02:00
201e713672 add license note to README 2020-07-05 22:41:26 +02:00
e1be86ca6b complete documentation and manual 2020-07-05 22:35:53 +02:00
caad509386 add basic manual structure 2020-07-05 14:14:55 +02:00
80df5f14cb change OXID contents to D3 contents 2020-07-05 14:08:51 +02:00
4a02e3fd86 remove README 2020-07-04 23:34:18 +02:00
52f904318e apply GPL v3 license 2020-07-04 23:25:24 +02:00
64ddda7825 change installation documentation 2020-07-03 22:24:50 +02:00
772ccfef19 add final changes 2020-07-03 21:59:18 +02:00
5541acaab0 change small syntax issues 2020-07-03 20:04:21 +02:00
242610a8cf change small syntax issues 2020-07-03 10:01:50 +02:00
9c3a2e5680 remove order class extension from metadata 2020-07-03 08:56:04 +02:00
0654ae6e26 change small syntax issues 2020-07-02 22:35:09 +02:00
28ad51b5e3 prevent docs dir from exporting and installing 2020-07-02 16:02:15 +02:00
cfc3d8104d Merge commit 'e10952828a3718cf047645ad9acc12a409826151' as 'docs/daux' 2020-07-02 15:57:09 +02:00
a2d5dbf6aa change small syntax issues 2020-07-02 10:35:56 +02:00
8d0a9e6fac add payment informations 2020-07-02 01:21:14 +02:00
f8f226914d set article summmary 2020-07-02 00:16:45 +02:00
7c3608efaf prevent page break in important chapters 2020-06-30 23:37:08 +02:00
2cf6ce6f4f change HTML structure for article costs area 2020-06-30 23:14:26 +02:00
2f1c256779 add auto colon suffix 2020-06-30 22:21:27 +02:00
9cd96631ad adjust multilang items 2020-06-30 10:33:23 +02:00
91dfce774f adjust translations 2020-06-30 00:44:07 +02:00
71d91b4136 cleanup 2020-06-29 10:52:29 +02:00
b73219f6b5 adjust invoice layout 2020-06-29 00:28:32 +02:00
484d85e431 adjust invoice layout 2020-06-28 01:03:15 +02:00
bac56b8c56 remove 3rd party module dependency 2020-06-27 21:47:43 +02:00
c7cf568e89 Merge remote-tracking branch 'remotes/current/modules/rel_mod_pdfDocumentsFull' into dev_initial
# Conflicts:
#	Application/views/tpl/documents/inc/header.tpl
#	Application/views/tpl/documents/invoice/includingFiles/pdfHeader.tpl
#	Application/views/tpl/documents/invoice/invoice.tpl
#	Modules/out/src/pdfStyling.css
#	metadata.php
2020-06-23 09:37:05 +02:00
c6e12da6d4 change metadata logo 2020-06-23 09:15:30 +02:00
c7da3e2b91 make available for OXID 6.2 2020-06-22 21:25:13 +02:00
bb1073b894 make valid filenames 2020-06-17 09:05:49 +02:00
b850cd11ec rm: unnecessary file 2020-06-16 16:08:09 +02:00
7de9a940cd change invoice templates 2020-06-14 00:46:17 +02:00
d06c822126 change invoice templates 2020-06-13 22:43:57 +02:00
a6b6918827 #9776 rm: spacing 2020-06-12 17:09:31 +02:00
83f58d806b #9764 rm: bug finding support 2020-06-12 17:01:27 +02:00
21e819afea rm: space 2020-06-12 16:51:25 +02:00
5db3bca501 add: css-classes 2020-06-12 16:22:17 +02:00
4c64993f03 add: css-classes 2020-06-12 14:51:19 +02:00
59b11667f8 add: css-classes 2020-06-12 13:38:31 +02:00
b3a8269fcd changed {if} 2020-06-12 13:38:07 +02:00
ea290f8bf2 add: css-classes, reordering article listing 2020-06-12 11:11:56 +02:00
2264fa99ca add: code - line breaks; rm unnecessary method 2020-06-12 10:27:21 +02:00
916e0807b4 add: include, Line breaks 2020-06-12 09:45:42 +02:00
007ea1a41f add: css-classes 2020-06-11 11:50:34 +02:00
b72f5088dd Merge branch 'modules/rel_mod_pdfDocumentsFull' of git.d3data.de:Customers/elektroversand-schmidt.de into modules/rel_mod_pdfDocumentsFull 2020-06-11 10:21:02 +02:00
9ca4b5c4ef add: css-classes; rm: unneseccary css-classes 2020-06-11 10:20:39 +02:00
0ea3f0e201 add: database require, nl2br 2020-06-11 10:19:31 +02:00
46f3285322 Merge branch 'modules/rel_mod_pdfDocumentsFull' of git.d3data.de:Customers/elektroversand-schmidt.de into modules/rel_mod_pdfDocumentsFull 2020-06-11 10:07:34 +02:00
adff842b8e change PDF logo resolution 2020-06-11 10:07:21 +02:00
56d4d08f89 add: smarty date generation, css-classes; rm unneseccary css-classes, metadata include; 2020-06-11 10:04:48 +02:00
7019053b50 change invoice pdf templates 2020-06-11 01:29:04 +02:00
d49135f6ee add dev mode 2020-06-11 01:26:16 +02:00
f9a0dd11e2 outsource article_cost_summary and included it + metadata entry 2020-06-10 15:36:22 +02:00
15f02f45f0 fix syntax error in invoice tpl template 2020-06-10 14:21:17 +02:00
3d0128ed0e Merge remote-tracking branch 'remotes/origin/modules/dev_mod_pdfDocumentsFull_ordermanager' into modules/rel_mod_pdfDocumentsFull 2020-06-10 13:47:58 +02:00
b20fb0db72 Merge branch 'modules/rel_mod_pdfDocumentsFull' of git.d3data.de:Customers/elektroversand-schmidt.de into modules/rel_mod_pdfDocumentsFull 2020-06-10 11:44:30 +02:00
334122ff3a adding new classes, changed classes 2020-06-10 11:42:47 +02:00
03984e39e9 add simple fold and punch marks 2020-06-09 23:44:33 +02:00
cf2c61078a set PDF metadata 2020-06-09 22:49:47 +02:00
4c561976a6 document can save to disc 2020-06-09 14:56:14 +02:00
7eb770440d add ordermanager combination 2020-06-08 16:39:33 +02:00
5232b1e5a5 Merge remote-tracking branch 'remotes/origin/modules/rel_mod_pdfDocumentsFull' into modules/dev_mod_pdfDocumentsFull_ordermanager 2020-06-08 16:36:20 +02:00
5e0b488ca8 Merge branch 'modules/rel_mod_pdfDocumentsFull' of git.d3data.de:Customers/elektroversand-schmidt.de into modules/rel_mod_pdfDocumentsFull 2020-06-08 16:35:22 +02:00
0fedcf4d9f reordering header 2020-06-08 10:30:35 +02:00
c5ef48d2fc added margin-bottom class 2020-06-08 08:45:47 +02:00
bdec638f14 implementation of smarty.now 2020-06-05 16:06:35 +02:00
b37280fcbf added getFieldData() and spacing 2020-06-05 15:54:16 +02:00
5135e63a6b Merge branch 'modules/rel_mod_pdfDocumentsFull' of git.d3data.de:Customers/elektroversand-schmidt.de into modules/rel_mod_pdfDocumentsFull 2020-06-05 14:45:15 +02:00
95a73b8ef8 adding new css classes and config spaces 2020-06-05 14:33:43 +02:00
0edb64153a add filename extension if it's missing 2020-06-05 10:06:58 +02:00
d13dda978d allow forced filename 2020-06-05 09:37:11 +02:00
015e85c942 use TCPDF functions instead of own implementations, use constants for configuration 2020-06-04 15:18:51 +02:00
0ccbcd07c6 remove isAdmin definition from orderOverview extension for generating pdf documents 2020-06-04 11:11:40 +02:00
157d9540b3 fix set billdate 2020-06-04 11:04:17 +02:00
8affd5e4ae prevent convert exception, if image couldn't loaded 2020-06-04 10:39:21 +02:00
ccb8ffe403 move pdf download to pdf models, use different (changeable) filenames for every document 2020-06-04 10:31:38 +02:00
6a931daa70 changed filename for exported pdfDocs 2020-06-03 15:56:12 +02:00
468339da09 rm unnecessary folder 2020-06-03 13:55:00 +02:00
109f248457 add cellspacing 2020-06-02 14:32:22 +02:00
e9ae890046 move offer templates to offer module 2020-06-02 11:25:00 +02:00
895ea19f89 improve code 2020-06-02 10:12:35 +02:00
efdc63225e simplify registry configuration 2020-06-02 10:04:19 +02:00
fa96df326d add documents without logo 2020-06-02 10:03:00 +02:00
3c2dc2df5f rename classses 2020-05-30 01:17:27 +02:00
0ecdc1281b rename registry classes 2020-05-30 01:02:50 +02:00
f7cfdccefd use registry instead of fix lists 2020-05-30 00:52:41 +02:00
3da3d1e3ab add documents and document classes 2020-05-30 00:48:43 +02:00
eddef3bbbf add exceptions 2020-05-30 00:46:30 +02:00
5b43b21df1 add generator registries 2020-05-30 00:45:18 +02:00
1abce50eda rename classes 2020-05-30 00:43:41 +02:00
226f56db2e change eShop dependency to compilation 6.1 because of used Logger function 2020-05-30 00:40:13 +02:00
0749221899 remove refund pdf templates to refund module 2020-05-29 15:25:55 +02:00
a6378dabe9 revert wrong composer requirements 2020-05-29 14:37:58 +02:00
caeaa02aa6 remove debug notes 2020-05-29 10:20:22 +02:00
5ffd071954 throw exception in case of undefined pdf request type 2020-05-29 09:58:53 +02:00
aa2072d985 prevent module extension from new method in other module extension
(depends difficult right order in extension list)
2020-05-29 09:41:17 +02:00
61f0823051 prevent block extension in block extension 2020-05-28 15:15:46 +02:00
85c8d76da3 use shared templates and template alias names 2020-05-28 14:58:42 +02:00
8437314019 add missing css files, change template aliases 2020-05-28 14:31:35 +02:00
02d16f4f5e fix namespaces 2020-05-28 13:32:34 +02:00
7357722a8f set missing requirements, refactor class structure 2020-05-28 12:21:11 +02:00
ac8498044d extract type specific lines from generic to specific clases 2020-05-27 09:46:44 +02:00
738f5ec772 refactor class structure 2020-05-26 16:32:22 +02:00
5465a7eebd refactor class structure 2020-05-26 16:12:17 +02:00
0c36330610 refector generic pdf documents interface 2020-05-26 15:59:10 +02:00
db13ac943c remove order confirmation pdf template 2020-05-26 15:52:30 +02:00
3969d3695e remove offer pdf templates 2020-05-26 15:50:39 +02:00
02a6022bb6 change folder structure to composer module 2020-05-26 15:45:07 +02:00
4eec91e84b adjusting: modifying files 2020-05-26 15:37:27 +02:00
3349b72a57 rm: unnecessary entries, changing modId in entry 2020-05-26 15:37:26 +02:00
4351677b6e mv: d3invoicePdf pdfDocuments 2020-05-26 15:37:25 +02:00
a7026c6b6c add: block and it's corresponding metadata entry 2020-05-26 15:37:25 +02:00
c9e9f8b8a6 rm: unneseccary interface file 2020-05-26 15:37:24 +02:00
af76a9f8f6 add: interface 2020-05-26 15:37:23 +02:00
d1a09fc220 add: new file; modified 2020-05-26 15:37:22 +02:00
bfe16ec517 rm: unneseccary table_rows and adding new oxmultilang ident 2020-05-26 15:37:20 +02:00
cdaad56455 reword module id in include request 2020-05-26 15:37:19 +02:00
c6d916fedd add: padding class
# Conflicts:
#	source/modules/d3/pdfdocuments/src/Modules/out/src/deliverynote.css
2020-05-26 15:36:45 +02:00
7258d22df1 rm: unneseccary folder 2020-05-26 15:36:25 +02:00
d8e0bda67e extended file 2020-05-26 15:36:24 +02:00
59798d12ec add: .css files 2020-05-26 15:36:23 +02:00
64988576c8 rm path routing misstakes 2020-05-26 15:36:23 +02:00
0e8737750c modifying path of included file's 2020-05-26 15:36:22 +02:00
9fdaecb37e rm unneseccary files and an unnesecarry folder 2020-05-26 15:36:21 +02:00
3aaa2f8e2c modifying path of inlcuded files 2020-05-26 15:36:21 +02:00
703a75962a changing included file's path; add: css classes; reorderung header; including new oxmultilang idents 2020-05-26 15:36:20 +02:00
59e49490b2 add: pdfDocuments_EVS module and it's correspoding files
# Conflicts:
#	source/modules/d3/pdfdocuments/src/Modules/Application/Model/d3_Order_PdfDocuments.php
#	source/modules/d3/pdfdocuments/src/Modules/out/src/deliverynote.css
2020-05-26 15:36:19 +02:00
e7ad653268 move files to current pdf documents branch structure 2020-05-26 15:28:36 +02:00
32 gewijzigde bestanden met toevoegingen van 468 en 167 verwijderingen

Bestand weergeven

@ -27,6 +27,10 @@ class orderOverviewPdfGenerator
{
$Pdf= $this->getPdfClass();
$Pdf->setDevelopmentMode(
Registry::getConfig()->getConfigParam('d3PdfDocumentsbDev') &&
Registry::getRequest()->getRequestEscapedParameter('devmode')
);
$Pdf->setOrder($order);
$Pdf->downloadPdf($iSelLang);
}

Bestand weergeven

@ -10,6 +10,8 @@
namespace D3\PdfDocuments\Application\Model\AbstractClasses;
use Assert\InvalidArgumentException;
use D3\ModCfg\Application\Model\d3filesystem;
use D3\PdfDocuments\Application\Model\Exceptions\pdfGeneratorExceptionAbstract;
use D3\PdfDocuments\Application\Model\Interfaces\pdfdocumentsGenericInterface as genericInterface;
use OxidEsales\Eshop\Core\Base;
@ -18,6 +20,7 @@ use OxidEsales\Eshop\Core\UtilsView;
use Smarty;
use Spipu\Html2Pdf\Exception\Html2PdfException;
use Spipu\Html2Pdf\Html2Pdf;
use Spipu\Html2Pdf\MyPdf;
abstract class pdfdocumentsGeneric extends Base implements genericInterface
{
@ -39,6 +42,8 @@ abstract class pdfdocumentsGeneric extends Base implements genericInterface
/** @var string */
public $filename;
protected $devMode = false;
/**
* pdfDocumentsGeneric constructor.
*/
@ -47,7 +52,12 @@ abstract class pdfdocumentsGeneric extends Base implements genericInterface
parent::__construct();
/** @var Smarty $oSmarty */
$this->oSmarty = Registry::getUtilsView()->getSmarty();
$this->oSmarty = Registry::getUtilsView()->getSmarty(true);
}
public function setDevelopmentMode(bool $devMode)
{
$this->devMode = $devMode;
}
public function runPreAction()
@ -70,11 +80,14 @@ abstract class pdfdocumentsGeneric extends Base implements genericInterface
$oPdf = oxNew(Html2Pdf::class, ...$this->getPdfProperties());
$oPdf->setTestIsImage(false);
$htmlContent = $this->getHTMLContent($iSelLang);
$oPdf->writeHTML($htmlContent);
$oPdf->pdf->SetAuthor(Registry::getConfig()->getActiveShop()->getFieldData('oxname'));
$oPdf->pdf->SetTitle(Registry::getLang()->translateString($this->getTitleIdent()));
$oPdf->pdf->SetCreator('D³ PDF Documents for OXID eShop');
$oPdf->pdf->SetSubject(NULL);
/** @var MyPdf $myPdf */
$myPdf = $oPdf->pdf;
$myPdf->setAuthor( Registry::getConfig()->getActiveShop()->getFieldData( 'oxname'));
$myPdf->setTitle( Registry::getLang()->translateString( $this->getTitleIdent()));
$myPdf->setCreator( 'D³ PDF Documents for OXID eShop');
$myPdf->setSubject( NULL);
return $this->output($oPdf, $sFilename, $target, $htmlContent);
}
@ -93,6 +106,9 @@ abstract class pdfdocumentsGeneric extends Base implements genericInterface
} catch (pdfGeneratorExceptionAbstract $e) {
Registry::get(UtilsView::class)->addErrorToDisplay($e);
Registry::getLogger()->error($e);
} catch (InvalidArgumentException $e) {
Registry::get(UtilsView::class)->addErrorToDisplay($e);
Registry::getLogger()->error($e);
}
}
@ -116,6 +132,9 @@ abstract class pdfdocumentsGeneric extends Base implements genericInterface
} catch (pdfGeneratorExceptionAbstract $e) {
Registry::get(UtilsView::class)->addErrorToDisplay($e);
Registry::getLogger()->error($e);
} catch (InvalidArgumentException $e) {
Registry::get(UtilsView::class)->addErrorToDisplay($e);
Registry::getLogger()->error($e);
}
}
@ -136,6 +155,9 @@ abstract class pdfdocumentsGeneric extends Base implements genericInterface
} catch (pdfGeneratorExceptionAbstract $e) {
Registry::get(UtilsView::class)->addErrorToDisplay($e);
Registry::getLogger()->error($e);
} catch (InvalidArgumentException $e) {
Registry::get(UtilsView::class)->addErrorToDisplay($e);
Registry::getLogger()->error($e);
}
return null;
@ -158,6 +180,7 @@ abstract class pdfdocumentsGeneric extends Base implements genericInterface
* @param int $iSelLang
*
* @return mixed
* @throws InvalidArgumentException
*/
public function getHTMLContent($iSelLang = 0)
{
@ -177,6 +200,27 @@ abstract class pdfdocumentsGeneric extends Base implements genericInterface
self::$_blIsAdmin = $blCurrentRenderFromAdmin;
$content = $this->addBasicAuth($content);
return $content;
}
protected function addBasicAuth($content)
{
$username = trim(Registry::getConfig()->getConfigParam('d3PdfDocumentsbasicAuthUserName'));
$password = trim(Registry::getConfig()->getConfigParam('d3PdfDocumentsbasicAuthPassword'));
if ($username && $password) {
$shopUrl = parse_url( Registry::getConfig()->getShopCurrentUrl() );
$pattern = '/(["|\'])'.
'(' . preg_quote( $shopUrl['scheme'], '/' ) . ':\/\/)'.
'(' . preg_quote( $shopUrl['host'], '/' ) . '.*?)'.
'\1/m';
$replace = "$1$2" . urlencode($username). ":" . urlencode($password) . "@$3$1";
$content = preg_replace( $pattern, $replace, $content );
}
return $content;
}
@ -218,15 +262,15 @@ abstract class pdfdocumentsGeneric extends Base implements genericInterface
{
// forced filename from setFilename()
if ($this->filename) {
return $this->addFilenameExtension(
$this->makeValidFileName(
return $this->makeValidFileName(
$this->addFilenameExtension(
$this->filename
)
);
}
return $this->addFilenameExtension(
$this->makeValidFileName(
return $this->makeValidFileName(
$this->addFilenameExtension(
$this->getTypeForFilename()
)
);
@ -241,7 +285,7 @@ abstract class pdfdocumentsGeneric extends Base implements genericInterface
{
$extension = $this->filenameExtension;
$extensionLength = (strlen($extension) + 1) * -1;
if ((bool) strlen($extension) && substr($filename, $extensionLength) != '.'.$extension) {
if (strlen($extension) && substr($filename, $extensionLength) != '.'.$extension) {
$filename .= '.'.$extension;
}
@ -257,10 +301,8 @@ abstract class pdfdocumentsGeneric extends Base implements genericInterface
*/
public function makeValidFileName($sFilename)
{
$sFilename = preg_replace('/[\s]+/', '_', $sFilename);
$sFilename = preg_replace('/[^a-zA-Z0-9_\.-]/', '', $sFilename);
return str_replace(' ', '_', $sFilename);
$fs = oxNew(d3filesystem::class);
return $fs->filterFilename($sFilename);
}
/**
@ -281,7 +323,7 @@ abstract class pdfdocumentsGeneric extends Base implements genericInterface
*/
public function output(Html2Pdf $oPdf, $sFilename, $target, $html)
{
if ((bool) Registry::getConfig()->getConfigParam('d3PdfDocumentsbDev') === true) {
if ($this->devMode) {
return $this->outputDev($oPdf, $sFilename, $target, $html);
} else {
return $oPdf->output($sFilename, $target);
@ -297,7 +339,7 @@ abstract class pdfdocumentsGeneric extends Base implements genericInterface
*/
public function outputDev(Html2Pdf $oPdf, $sFilename, $target, $html)
{
$sFilename = str_replace('.pdf', '.html', $sFilename);
$sFilename = str_replace('.pdf', '.sgml', $sFilename);
switch($target) {
case 'I': {
@ -305,7 +347,7 @@ abstract class pdfdocumentsGeneric extends Base implements genericInterface
if (ob_get_contents()) {
$oPdf->pdf->Error('Some data has already been output, can\'t send PDF file');
}
if (php_sapi_name() != 'cli') {
if (substr(php_sapi_name(), 0, 3) != 'cli') {
//We send to a browser
header('Content-Type: text/html');
if (headers_sent()) {
@ -322,7 +364,7 @@ abstract class pdfdocumentsGeneric extends Base implements genericInterface
break;
}
case 'D': {
// Download PDF as file
// Download PDF as a file
if (ob_get_contents()) {
$oPdf->pdf->Error('Some data has already been output, can\'t send PDF file');
}
@ -338,7 +380,7 @@ abstract class pdfdocumentsGeneric extends Base implements genericInterface
header('Content-Type: application/force-download');
header('Content-Type: application/octet-stream', false);
header('Content-Type: application/download', false);
header('Content-Type: text/html', false);
header('Content-Type: text/sgml', false);
// use the Content-Disposition header to supply a recommended filename
header('Content-Disposition: attachment; filename="'.basename($sFilename).'";');
header('Content-Transfer-Encoding: binary');
@ -367,4 +409,4 @@ abstract class pdfdocumentsGeneric extends Base implements genericInterface
return null;
}
}
}

Bestand weergeven

@ -10,9 +10,10 @@
namespace D3\PdfDocuments\Application\Model\AbstractClasses;
use D3\PdfDocuments\Application\Model\Exceptions\noBaseObjectSetException;
use Assert\Assert;
use Assert\InvalidArgumentException;
use D3\PdfDocuments\Application\Model\Interfaces\pdfdocumentsOrderInterface as orderInterface;
use \OxidEsales\Eshop\Application\Model\Order;
use OxidEsales\Eshop\Application\Model\Order;
use OxidEsales\Eshop\Application\Model\Payment;
use OxidEsales\Eshop\Application\Model\User;
use OxidEsales\Eshop\Core\Registry;
@ -22,6 +23,14 @@ abstract class pdfdocumentsOrder extends pdfdocumentsGeneric implements orderInt
/** @var Order */
public $oOrder;
/**
* don't use order as constructor argument because of same method interface for all document types
*/
public function __construct()
{
parent::__construct();
}
/**
* @param Order $order
*/
@ -31,15 +40,22 @@ abstract class pdfdocumentsOrder extends pdfdocumentsGeneric implements orderInt
}
/**
* @throws InvalidArgumentException
* @return Order
*/
public function getOrder()
{
Assert::lazy()
->that($this->oOrder)->isInstanceOf(Order::class, 'no order for pdf generator set')
->that($this->oOrder->isLoaded())->true('given order is not loaded')
->verifyNow();
return $this->oOrder;
}
/**
* @param int $iSelLang
* @throws InvalidArgumentException
*/
public function setSmartyVars($iSelLang)
{
@ -58,13 +74,14 @@ abstract class pdfdocumentsOrder extends pdfdocumentsGeneric implements orderInt
/**
* @return string
* @throws InvalidArgumentException
*/
public function getFilename()
{
// forced filename from setFilename()
if ($this->filename) {
return $this->addFilenameExtension(
$this->makeValidFileName(
return $this->makeValidFileName(
$this->addFilenameExtension(
$this->filename
)
);
@ -72,8 +89,8 @@ abstract class pdfdocumentsOrder extends pdfdocumentsGeneric implements orderInt
$sTrimmedBillName = trim($this->getOrder()->getFieldData('oxbilllname'));
return $this->addFilenameExtension(
$this->makeValidFileName(
return $this->makeValidFileName(
$this->addFilenameExtension(
implode(
'_',
[
@ -86,21 +103,6 @@ abstract class pdfdocumentsOrder extends pdfdocumentsGeneric implements orderInt
);
}
/**
* @param $sFilename
* @param int $iSelLang
* @param string $target
* @return mixed|string|null
*/
public function genPdf($sFilename, $iSelLang = 0, $target = 'I')
{
if (false == $this->getOrder()) {
throw oxNew(noBaseObjectSetException::class);
}
return parent::genPdf($sFilename, $iSelLang, $target);
}
/**
* @return int
*/
@ -115,6 +117,7 @@ abstract class pdfdocumentsOrder extends pdfdocumentsGeneric implements orderInt
/**
* @return false|string
* @throws InvalidArgumentException
*/
public function getPayableUntilDate()
{

Bestand weergeven

@ -10,10 +10,9 @@
namespace D3\PdfDocuments\Application\Model\Documents;
use Assert\InvalidArgumentException;
use D3\PdfDocuments\Application\Model\AbstractClasses\pdfdocumentsOrder;
use D3\PdfDocuments\Application\Model\Exceptions\noBaseObjectSetException;
use D3\PdfDocuments\Application\Model\Interfaces\pdfdocumentsOrderinvoiceInterface;
use Spipu\Html2Pdf\Exception\Html2PdfException;
class invoicePdf extends pdfdocumentsOrder implements pdfdocumentsOrderinvoiceInterface
{
@ -43,6 +42,10 @@ class invoicePdf extends pdfdocumentsOrder implements pdfdocumentsOrderinvoiceIn
return 'invoice';
}
/**
* @return void
* @throws InvalidArgumentException
*/
public function runPreAction()
{
parent::runPreAction();
@ -52,10 +55,12 @@ class invoicePdf extends pdfdocumentsOrder implements pdfdocumentsOrderinvoiceIn
$this->saveOrderOnChanges();
}
/**
* @return void
* @throws InvalidArgumentException
*/
public function setInvoiceNumber()
{
$this->blIsNewOrder = false;
if (!$this->getOrder()->getFieldData('oxbillnr')) {
$this->getOrder()->assign(['oxbillnr' => $this->getOrder()->getNextBillNum()]);
@ -63,6 +68,10 @@ class invoicePdf extends pdfdocumentsOrder implements pdfdocumentsOrderinvoiceIn
}
}
/**
* @return void
* @throws InvalidArgumentException
*/
public function setInvoiceDate()
{
if ($this->getOrder()->getFieldData('oxbilldate') == '0000-00-00') {
@ -74,6 +83,10 @@ class invoicePdf extends pdfdocumentsOrder implements pdfdocumentsOrderinvoiceIn
}
}
/**
* @return void
* @throws InvalidArgumentException
*/
public function saveOrderOnChanges()
{
if ($this->blIsNewOrder) {
@ -87,6 +100,7 @@ class invoicePdf extends pdfdocumentsOrder implements pdfdocumentsOrderinvoiceIn
/**
* @return string
* @throws InvalidArgumentException
*/
public function getFilename()
{

Bestand weergeven

@ -17,8 +17,7 @@ class invoicewithoutlogoPdf extends invoicePdf
*/
public function getRequestId()
{
// same like in OXID PDF module
return 'standart_without_logo';
return 'invoice_without_logo';
}
/**

Bestand weergeven

@ -1,21 +0,0 @@
<?php
/**
* See LICENSE file for license details.
*
* @copyright (C) D3 Data Development (Inh. Thomas Dartsch)
* @author D3 Data Development - Daniel Seifert <support@shopmodule.com>
* @link http://www.oxidmodule.com
*/
namespace D3\PdfDocuments\Application\Model\Exceptions;
use Exception;
class noBaseObjectSetException extends pdfGeneratorExceptionAbstract
{
public function __construct( $sMessage = "no base object (e.g. order) for pdf generator set", $iCode = 0, Exception $previous = null )
{
parent::__construct( $sMessage, $iCode, $previous );
}
}

Bestand weergeven

@ -10,10 +10,10 @@
namespace D3\PdfDocuments\Application\Model\Interfaces;
use D3\PdfDocuments\Application\Model\Exceptions\noBaseObjectSetException;
interface pdfdocumentsGenericInterface
{
public function setDevelopmentMode(bool $devMode);
/**
* @return string
*/
@ -58,7 +58,6 @@ interface pdfdocumentsGenericInterface
* @param string $target
*
* @return mixed
* @throws noBaseObjectSetException
*/
public function genPdf($sFilename, $iSelLang = 0, $target = 'I');

Bestand weergeven

@ -10,6 +10,7 @@
namespace D3\PdfDocuments\Application\Model\Interfaces;
use Assert\InvalidArgumentException;
use OxidEsales\Eshop\Application\Model\Order;
interface pdfdocumentsOrderInterface extends pdfdocumentsGenericInterface
@ -20,6 +21,7 @@ interface pdfdocumentsOrderInterface extends pdfdocumentsGenericInterface
public function setOrder(Order $order);
/**
* @throws InvalidArgumentException
* @return Order
*/
public function getOrder();

Bestand weergeven

@ -15,15 +15,21 @@ use D3\PdfDocuments\Application\Model\Documents\deliverynotewithoutlogoPdf;
use D3\PdfDocuments\Application\Model\Documents\invoicePdf;
use D3\PdfDocuments\Application\Model\Documents\invoicewithoutlogoPdf;
use D3\PdfDocuments\Application\Model\Interfaces\pdfdocumentsOrderInterface;
use OxidEsales\Eshop\Core\Registry;
class registryOrdermanagerActions extends registryAbstract implements registryOrdermanagerActionsInterface
{
public function __construct()
{
$this->addGenerator(invoicePdf::class);
$this->addGenerator(deliverynotePdf::class);
$this->addGenerator(invoicewithoutlogoPdf::class);
$this->addGenerator(deliverynotewithoutlogoPdf::class);
$config = Registry::getConfig();
if ($config->getConfigParam('d3PdfDocumentsDocInvoice'))
$this->addGenerator(invoicePdf::class);
if ($config->getConfigParam('d3PdfDocumentsDocDeliveryNote'))
$this->addGenerator(deliverynotePdf::class);
if ($config->getConfigParam('d3PdfDocumentsDocInvoiceNoLogo'))
$this->addGenerator(invoicewithoutlogoPdf::class);
if ($config->getConfigParam('d3PdfDocumentsDocDeliveryNoteNoLogo'))
$this->addGenerator(deliverynotewithoutlogoPdf::class);
}
/**

Bestand weergeven

@ -15,15 +15,21 @@ use D3\PdfDocuments\Application\Model\Documents\deliverynotewithoutlogoPdf;
use D3\PdfDocuments\Application\Model\Documents\invoicePdf;
use D3\PdfDocuments\Application\Model\Documents\invoicewithoutlogoPdf;
use D3\PdfDocuments\Application\Model\Interfaces\pdfdocumentsOrderInterface;
use OxidEsales\Eshop\Core\Registry;
class registryOrderoverview extends registryAbstract implements registryOrderoverviewInterface
{
public function __construct()
{
$this->addGenerator(invoicePdf::class);
$this->addGenerator(deliverynotePdf::class);
$this->addGenerator(invoicewithoutlogoPdf::class);
$this->addGenerator(deliverynotewithoutlogoPdf::class);
$config = Registry::getConfig();
if ($config->getConfigParam('d3PdfDocumentsDocInvoice'))
$this->addGenerator(invoicePdf::class);
if ($config->getConfigParam('d3PdfDocumentsDocDeliveryNote'))
$this->addGenerator(deliverynotePdf::class);
if ($config->getConfigParam('d3PdfDocumentsDocInvoiceNoLogo'))
$this->addGenerator(invoicewithoutlogoPdf::class);
if ($config->getConfigParam('d3PdfDocumentsDocDeliveryNoteNoLogo'))
$this->addGenerator(deliverynotewithoutlogoPdf::class);
}
/**

Bestand weergeven

@ -13,7 +13,7 @@ $aLang = array(
'charset' => 'utf-8',
'D3_PDFDOCUMENTS_THANKYOU_1' => 'Vielen Dank für Ihren Einkauf!',
'D3_PDFDOCUMENTS_THANKYOU_2' => 'Ihr Team von %1$s',
'D3_PDFDOCUMENTS_THANKYOU_2' => 'Ihr Team von %1$s.',
'D3_PDFDOCUMENTS_GET_IN_CONTACT' => 'So erreichen Sie uns:',
'D3_PDFDOCUMENTS_TELEFON' => 'Telefon',
@ -65,7 +65,7 @@ $aLang = array(
'D3_PDFDOCUMENTS_TOTALSUMBRUT' => 'Gesamtsumme (brutto)',
'D3_PDFDOCUMENTS_USED_PAYMENTMETHOD' => 'Ihre gewählte Zahlungsweise',
'D3_PDFDOCUMENTS_PAYABLEUNTIL' => 'Zahlbar bis zum',
'D3_PDFDOCUMENTS_PAYABLEUNTIL' => 'Zahlbar bis zum %s.',
'D3_PDFDOCUMENTS_RECEIVED_PAYMENT' => 'Den Rechnungsbetrag haben wir dankend erhalten.',
'D3_PDFDOCUMENTS_MANAGINGDIRECTOR' => 'Geschäftsführer',

Bestand weergeven

@ -12,7 +12,7 @@ $aLang = array(
'charset' => 'utf-8',
'D3_PDFDOCUMENTS_THANKYOU_1' => 'Many thanks for your purchase!',
'D3_PDFDOCUMENTS_THANKYOU_2' => 'Your team from %1$s',
'D3_PDFDOCUMENTS_THANKYOU_2' => 'Your team from %1$s.',
'D3_PDFDOCUMENTS_GET_IN_CONTACT' => 'You can contact us as follows',
'D3_PDFDOCUMENTS_TELEFON' => 'Telephone',
@ -33,8 +33,8 @@ $aLang = array(
'D3_PDFDOCUMENTS_INVOICE' => 'Invoice',
'D3_PDFDOCUMENTS_INVOICE_WITHOUT_LOGO' => 'Invoice without logo',
'D3_PDFDOCUMENTS_DELIVERYNOTE' => 'Deliverynote',
'D3_PDFDOCUMENTS_DELIVERYNOTE_WITHOUT_LOGO' => 'Deliverynote without logo',
'D3_PDFDOCUMENTS_DELIVERYNOTE' => 'Delivery note',
'D3_PDFDOCUMENTS_DELIVERYNOTE_WITHOUT_LOGO' => 'Delivery note without logo',
'D3_PDFDOCUMENTS_ORDERNR' => 'Order No.',
'D3_PDFDOCUMENTS_ORDER_FROM_AT' => 'Your order from %1$s at "%2$s"',
@ -64,7 +64,7 @@ $aLang = array(
'D3_PDFDOCUMENTS_TOTALSUMBRUT' => 'Total sum (gross)',
'D3_PDFDOCUMENTS_USED_PAYMENTMETHOD' => 'Your chosen payment method',
'D3_PDFDOCUMENTS_PAYABLEUNTIL' => 'Billing till',
'D3_PDFDOCUMENTS_PAYABLEUNTIL' => 'Billing till %s.',
'D3_PDFDOCUMENTS_RECEIVED_PAYMENT' => 'We have received the invoice amount with thanks.',
'D3_PDFDOCUMENTS_MANAGINGDIRECTOR' => 'Managing director',

Bestand weergeven

@ -9,11 +9,32 @@
*/
$sLangName = "Deutsch";
$basicAuthHelp = <<<HELP
Befindet sich der aktuelle Shop hinter einem BasicAuth, können beim Generieren des PDFs die Bilder nicht geladen werden. Tragen Sie hier die Zugangsdaten ein, um die Bilder zu sehen.
HELP;
$aLang = array(
'charset' => 'utf-8',
'SHOP_MODULE_GROUP_d3PdfDocumentsmain' => 'Grundeinstellungen',
'SHOP_MODULE_d3PdfDocumentsbDev' => 'Entwicklermodus',
'HELP_SHOP_MODULE_d3PdfDocumentsbDev' => 'Mit aktiviertem Entwicklermodus kann das Dokument im '.
'SGML-Format ausgegeben werden. Inhaltliche Fehler können so besser nachvollzogen werden.',
'SHOP_MODULE_d3PdfDocumentsbasicAuthUserName' => 'BasicAuth des Shops - Benutzername (optional)',
'HELP_SHOP_MODULE_d3PdfDocumentsbasicAuthUserName' => $basicAuthHelp,
'SHOP_MODULE_d3PdfDocumentsbasicAuthPassword' => 'BasicAuth des Shops - Passwort (optional)',
'HELP_SHOP_MODULE_d3PdfDocumentsbasicAuthPassword' => $basicAuthHelp,
'SHOP_MODULE_GROUP_d3PdfDocumentscontents' => 'Inhalte',
'SHOP_MODULE_d3PdfDocumentsLogoUrl' => 'Logo-Grafik URL',
'SHOP_MODULE_d3PdfDocumentsBackgroundUrl' => 'Hintergrund-Grafik URL',
'SHOP_MODULE_GROUP_d3PdfDocumentsdocuments' => 'Dokumente',
'SHOP_MODULE_d3PdfDocumentsDocInvoice' => 'Rechnung',
'SHOP_MODULE_d3PdfDocumentsDocInvoiceNoLogo' => 'Rechnung ohne Logo',
'SHOP_MODULE_d3PdfDocumentsDocDeliveryNote' => 'Lieferschein',
'SHOP_MODULE_d3PdfDocumentsDocDeliveryNoteNoLogo' => 'Lieferschein ohne Logo',
'D3_PDFDOCUMENTS' => 'PDF-Dokumente',
'D3_PDFDOCUMENTS_INVOICE' => 'Rechnung',
@ -23,5 +44,6 @@ $aLang = array(
'D3_PDFDOCUMENTS_PDF_TYPE' => 'Dokument',
'D3_PDFDOCUMENTS_LANGUAGE' => 'Sprache',
'D3_PDFDOCUMENTS_SGML_GENERATE' => 'SGML erstellen',
'D3_PDFDOCUMENTS_PDF_GENERATE' => 'Dokument erstellen',
);

Bestand weergeven

@ -9,19 +9,41 @@
*/
$sLangName = "English";
$basicAuthHelp = <<<HELP
If the current shop is protected by a BasicAuth, the images cannot be loaded when the PDF is generated. Enter the access data here to view the images.
HELP;
$aLang = array(
'charset' => 'utf-8',
'SHOP_MODULE_GROUP_d3PdfDocumentsmain' => 'Basic settings',
'SHOP_MODULE_d3PdfDocumentsbDev' => 'Developer mode',
'HELP_SHOP_MODULE_d3PdfDocumentsbDev' => 'If developer mode is activated, the document can exported '.
'in SGML format. This makes it much easier to trace content errors.',
'SHOP_MODULE_d3PdfDocumentsbasicAuthUserName' => 'BasicAuth of the shop - user name (optional)',
'HELP_SHOP_MODULE_d3PdfDocumentsbasicAuthUserName' => $basicAuthHelp,
'SHOP_MODULE_d3PdfDocumentsbasicAuthPassword' => 'BasicAuth of the shop - password (optional)',
'HELP_SHOP_MODULE_d3PdfDocumentsbasicAuthPassword' => $basicAuthHelp,
'SHOP_MODULE_GROUP_d3PdfDocumentscontents' => 'Contents',
'SHOP_MODULE_d3PdfDocumentsLogoUrl' => 'Logo image URL',
'SHOP_MODULE_d3PdfDocumentsBackgroundUrl' => 'Background image URL',
'SHOP_MODULE_GROUP_d3PdfDocumentsdocuments' => 'Documents',
'SHOP_MODULE_d3PdfDocumentsDocInvoice' => 'Invoice',
'SHOP_MODULE_d3PdfDocumentsDocInvoiceNoLogo' => 'Invoice without logo',
'SHOP_MODULE_d3PdfDocumentsDocDeliveryNote' => 'Delivery note',
'SHOP_MODULE_d3PdfDocumentsDocDeliveryNoteNoLogo' => 'Delivery note without logo',
'D3_PDFDOCUMENTS' => 'PDF Documents',
'D3_PDFDOCUMENTS_INVOICE' => 'Invoice',
'D3_PDFDOCUMENTS_INVOICE_WITHOUT_LOGO' => 'Invoice without logo',
'D3_PDFDOCUMENTS_DELIVERYNOTE' => 'Deliverynote',
'D3_PDFDOCUMENTS_DELIVERYNOTE_WITHOUT_LOGO' => 'Deliverynote without logo',
'D3_PDFDOCUMENTS_DELIVERYNOTE' => 'Delivery note',
'D3_PDFDOCUMENTS_DELIVERYNOTE_WITHOUT_LOGO' => 'Delivery note without logo',
'D3_PDFDOCUMENTS_PDF_TYPE' => 'Document',
'D3_PDFDOCUMENTS_LANGUAGE' => 'Language',
'D3_PDFDOCUMENTS_SGML_GENERATE' => 'Create SGML',
'D3_PDFDOCUMENTS_PDF_GENERATE' => 'Create Document',
);

Bestand weergeven

@ -1,10 +1,14 @@
[{if $edit && $oView->d3CanExport()}]
<br>
[{assign var="config" value=$oViewConf->getConfig()}]
[{assign var="devmode" value=$config->getConfigParam('d3PdfDocumentsbDev')}]
<form name="d3CreatePdf" id="d3CreatePdf" action="[{$oViewConf->getSelfLink()}]" method="post" target="d3ExpPDF">
[{$oViewConf->getHiddenSid()}]
<input type="hidden" name="cl" value="order_overview">
<input type="hidden" name="fnc" value="d3CreatePDF">
<input type="hidden" name="oxid" value="[{$oxid}]">
[{if $devmode}]<input type="hidden" id="devmode" name="devmode" value="0">[{/if}]
<fieldset style="padding: 5px">
<legend>[{oxmultilang ident="D3_PDFDOCUMENTS"}]</legend>
<table style="width: 100%">
@ -14,7 +18,7 @@
</td>
<td style="vertical-align: top; text-align: right" class="edittext">
<label for="pdftype">[{oxmultilang ident="D3_PDFDOCUMENTS_PDF_TYPE" suffix="COLON"}]</label>:&nbsp;
<select id="pdftype" name="pdftype" class="editinput" style="width:80px;">
<select id="pdftype" name="pdftype" class="editinput" style="min-width:80px;">
[{block name="d3_pdfdocuments_order_overview_pdfTypeOptions"}]
[{assign var="generatorList" value=$oView->d3getGeneratorList()}]
[{foreach from=$generatorList->getList() item="generator"}]
@ -27,7 +31,7 @@
<tr>
<td style="text-align: right" class="edittext">
<label for="pdflanguage">[{oxmultilang ident="D3_PDFDOCUMENTS_LANGUAGE" suffix="COLON"}]</label>
<select id="pdflanguage" name="pdflanguage" class="saveinnewlanginput" style="width:80px;">
<select id="pdflanguage" name="pdflanguage" class="saveinnewlanginput" style="width:150px;">
[{foreach from=$alangs key=lang item=slang}]
<option value="[{$lang}]" [{if $lang == "0"}]SELECTED[{/if}]>[{$slang}]</option>
[{/foreach}]
@ -35,8 +39,11 @@
</td>
</tr>
<tr>
<td style="text-align: right" class="edittext"><br/>
<input type="submit" class="edittext" name="save" value="[{oxmultilang ident="D3_PDFDOCUMENTS_PDF_GENERATE"}]">
<td style="text-align: right" class="edittext" colspan="2"><br/>
[{if $devmode}]
<input type="submit" class="edittext" name="save" value="[{oxmultilang ident="D3_PDFDOCUMENTS_SGML_GENERATE"}]" onclick="document.getElementById('devmode').value = 1;">
[{/if}]
<input type="submit" class="edittext" name="save" value="[{oxmultilang ident="D3_PDFDOCUMENTS_PDF_GENERATE"}]" [{if $devmode}] onclick="document.getElementById('devmode').value = 0;"[{/if}]>
<iframe name="d3ExpPDF" style="width: 0; height: 0; border: none; display:none;"></iframe>
</td>
</tr>

Bestand weergeven

@ -1,7 +1,7 @@
[{assign var="defaultPagePadding" value=","|explode:"45,15,25,25"}] [{* top, right, bottom, left *}]
[{assign var="pagePadding" value=$pagePadding|default:$defaultPagePadding}]
<style type="text/css">
<style>
.marks {
position: absolute;
left: [{math equation="left - padding" left=5 padding=$pagePadding.3}]mm ;

Bestand weergeven

@ -4,7 +4,7 @@
[{* rulers *}]
[{* include file="d3pdfrulers.tpl" pagePadding=$pagePadding *}]
<style type="text/css">
<style>
.rulerItemHorizontal {
position: absolute;
top: -[{$pagePadding.0}]mm;

Bestand weergeven

@ -4,13 +4,30 @@
[{assign var="defaultPagePadding" value=","|explode:"45,15,25,25"}] [{* top, right, bottom, left *}]
[{assign var="pagePadding" value=$pagePadding|default:$defaultPagePadding}]
<style type="text/css">
<style>
[{foreach from=$pdfBlock_style item="_block"}]
[{$_block}]
[{/foreach}]
</style>
<page backtop="[{$pagePadding.0}]mm" backright="[{$pagePadding.1}]mm" backbottom="[{$pagePadding.2}]mm" backleft="[{$pagePadding.3}]mm" pageset="[{$pageset}]" orientation="[{$orientation}]" format="[{$format}]">
<page
[{block name="pageSettings"}]
backtop="[{$pagePadding.0}]mm"
backright="[{$pagePadding.1}]mm"
backbottom="[{$pagePadding.2}]mm"
backleft="[{$pagePadding.3}]mm"
pageset="[{$pageset}]"
orientation="[{$orientation}]"
format="[{$format}]"
[{if $showLogo && $config->getConfigParam('d3PdfDocumentsBackgroundUrl')}]
backimg="[{$config->getConfigParam('d3PdfDocumentsBackgroundUrl')}]"
[{/if}]
[{* backcolor="#FFF" *}]
[{* backimgx="center" *}]
[{* backimgy="middle" *}]
[{* backimgw="100%" *}]
[{/block}]
>
<page_header>
[{foreach from=$pdfBlock_header item="_block"}]
[{$_block}]

Bestand weergeven

@ -3,36 +3,43 @@
[{block name="pdfFooter"}]
<div class="footer" style="margin: 0 [{$pagePadding.1}]mm 10mm [{$pagePadding.3}]mm">
<table>
<tr>
[{block name="pdfFooterLeft"}]
<td class="footerLeft">
<div>[{$shop->getFieldData('oxname')}]</div>
<div>[{$shop->getFieldData('oxstreet')}]</div>
<div>[{$shop->getFieldData('oxzip')}] [{$shop->getFieldData('oxcity')}]</div>
<div>[{$shop->getFieldData('oxcountry')}]</div>
<div>[{$shop->getFieldData('oxurl')}]</div>
<div>[{$shop->getFieldData('oxinfoemail')}]</div>
</td>
[{/block}]
[{block name="pdfFooterCenter"}]
<td class="footerCenter">
<div>[{oxmultilang ident="D3_PDFDOCUMENTS_MANAGINGDIRECTOR" suffix="COLON"}] [{$shop->getFieldData('oxfname')}] [{$shop->getFieldData('oxlname')}]</div>
<div>[{oxmultilang ident="D3_PDFDOCUMENTS_COURT" suffix="COLON"}] [{$shop->getFieldData('oxcourt')}]</div>
<div>[{oxmultilang ident="D3_PDFDOCUMENTS_HRBNR" suffix="COLON"}] [{$shop->getFieldData('oxhrbnr')}]</div>
<div>[{oxmultilang ident="D3_PDFDOCUMENTS_USTID" suffix="COLON"}] [{$shop->getFieldData('oxvatnumber')}]</div>
</td>
[{/block}]
[{block name="pdfFooterRight"}]
<td class="footerRight">
<div>[{oxmultilang ident="D3_PDFDOCUMENTS_BANK_ACCOUNT"}]</div>
<div>[{$shop->getFieldData('oxbankname')}]</div>
<div>[{oxmultilang ident="D3_PDFDOCUMENTS_BANK_ACCOUNTNR" suffix="COLON"}] [{$shop->getFieldData('oxibannumber')}]</div>
<div>[{oxmultilang ident="D3_PDFDOCUMENTS_BANK_BANKCODE" suffix="COLON"}] [{$shop->getFieldData('oxbiccode')}]</div>
</td>
[{/block}]
</tr>
</table>
[{block name="pdfFooterTable"}]
<table>
<tr>
[{block name="pdfFooterLeft"}]
<td class="footerLeft">
<div>[{$shop->getFieldData('oxname')}]</div>
<div>[{$shop->getFieldData('oxstreet')}]</div>
<div>[{$shop->getFieldData('oxzip')}] [{$shop->getFieldData('oxcity')}]</div>
<div>[{$shop->getFieldData('oxcountry')}]</div>
<div>[{$shop->getFieldData('oxurl')}]</div>
<div>[{$shop->getFieldData('oxinfoemail')}]</div>
</td>
[{/block}]
[{block name="pdfFooterCenter"}]
<td class="footerCenter">
<div>[{oxmultilang ident="D3_PDFDOCUMENTS_MANAGINGDIRECTOR" suffix="COLON"}] [{$shop->getFieldData('oxfname')}] [{$shop->getFieldData('oxlname')}]</div>
[{if $shop->getFieldData('oxcourt')}]
<div>[{oxmultilang ident="D3_PDFDOCUMENTS_COURT" suffix="COLON"}] [{$shop->getFieldData('oxcourt')}]</div>
[{/if}]
[{if $shop->getFieldData('oxhrbnr')}]
<div>[{oxmultilang ident="D3_PDFDOCUMENTS_HRBNR" suffix="COLON"}] [{$shop->getFieldData('oxhrbnr')}]</div>
[{/if}]
[{if $shop->getFieldData('oxvatnumber')}]
<div>[{oxmultilang ident="D3_PDFDOCUMENTS_USTID" suffix="COLON"}] [{$shop->getFieldData('oxvatnumber')}]</div>
[{/if}]
</td>
[{/block}]
[{block name="pdfFooterRight"}]
<td class="footerRight">
<div>[{oxmultilang ident="D3_PDFDOCUMENTS_BANK_ACCOUNT"}]</div>
<div>[{$shop->getFieldData('oxbankname')}]</div>
<div>[{oxmultilang ident="D3_PDFDOCUMENTS_BANK_ACCOUNTNR" suffix="COLON"}] [{$shop->getFieldData('oxibannumber')}]</div>
<div>[{oxmultilang ident="D3_PDFDOCUMENTS_BANK_BANKCODE" suffix="COLON"}] [{$shop->getFieldData('oxbiccode')}]</div>
</td>
[{/block}]
</tr>
</table>
[{/block}]
</div>
[{/block}]

Bestand weergeven

@ -6,7 +6,8 @@
[{* pdf logo is available only in non admin theme *}]
[{assign var="isAdmin" value=$viewConfig->isAdmin()}]
[{$viewConfig->setAdminMode(false)}]
<img class="logo" alt="Logo" src="[{$viewConfig->getImageUrl('pdf_logo.jpg')}]">
[{assign var="logoUrl" value=$config->getConfigParam('d3PdfDocumentsLogoUrl')|default:$viewConfig->getImageUrl('pdf_logo.jpg')}]
<img class="logo" alt="Logo" src="[{$logoUrl}]">
[{$viewConfig->setAdminMode($isAdmin)}]
[{/if}]
</div>

Bestand weergeven

@ -11,9 +11,11 @@
[{assign var="dateFormat" value='D3_PDFDOCUMENTS_DATE_FORMAT'|oxmultilangassign}]
[{oxmultilang ident="D3_PDFDOCUMENTS_DATE" suffix="COLON"}] [{$order->getFieldData('oxbilldate')|date_format:$dateFormat}]
</div>
<div>
[{oxmultilang ident="D3_PDFDOCUMENTS_USTIDNR" suffix="COLON"}] [{$shop->getFieldData('oxvatnumber')}]
</div>
[{if $shop->getFieldData('oxvatnumber')}]
<div>
[{oxmultilang ident="D3_PDFDOCUMENTS_USTIDNR" suffix="COLON"}] [{$shop->getFieldData('oxvatnumber')}]
</div>
[{/if}]
[{/block}]
</div>
[{/block}]

Bestand weergeven

@ -2,8 +2,7 @@
[{if $payment->getId() == 'oxidinvoice'}]
[{block name="payinfo_billable_till"}]
[{assign var="dateFormat" value='D3_PDFDOCUMENTS_DATE_FORMAT'|oxmultilangassign}]
[{oxmultilang ident="D3_PDFDOCUMENTS_PAYABLEUNTIL"}]
[{$document->getPayableUntilDate()|date_format:$dateFormat}]
[{oxmultilang ident="D3_PDFDOCUMENTS_PAYABLEUNTIL" args=$document->getPayableUntilDate()|date_format:$dateFormat}]
[{/block}]
[{elseif $payment->getId() == 'oxidpayadvance' || $payment->getId() == 'oxidcreditcard'}]
[{block name="payinfo_payed"}]

8
IntelliSenseHelper.php Normal file
Bestand weergeven

@ -0,0 +1,8 @@
<?php
namespace D3\PdfDocuments\Modules\Application\Controller {
use OxidEsales\EshopCommunity\Application\Controller\Admin\OrderOverview;
class d3_overview_controller_pdfdocuments_parent extends OrderOverview{}
}

Bestand weergeven

@ -11,11 +11,10 @@
namespace D3\PdfDocuments\Modules\Application\Controller;
use D3\PdfDocuments\Application\Controller\orderOverviewPdfGenerator;
use D3\PdfDocuments\Application\Model\Exceptions\noBaseObjectSetException;
use D3\PdfDocuments\Application\Model\Exceptions\noPdfHandlerFoundException;
use D3\PdfDocuments\Application\Model\Exceptions\pdfGeneratorExceptionAbstract;
use D3\PdfDocuments\Application\Model\Registries\registryOrderoverview;
use D3\PdfDocuments\Modules\Application\Model\d3_Order_PdfDocuments;
use Exception;
use OxidEsales\Eshop\Application\Controller\Admin\OrderOverview;
use OxidEsales\Eshop\Application\Model\Order;
use OxidEsales\Eshop\Core\DatabaseProvider;
@ -23,15 +22,36 @@ use OxidEsales\Eshop\Core\Exception\DatabaseConnectionException;
use OxidEsales\Eshop\Core\Registry;
use OxidEsales\Eshop\Core\TableViewNameGenerator;
if (false) {
class_alias(
d3_overview_controller_pdfdocuments_parent::class,
OrderOverview::class
);
}
class d3_overview_controller_pdfdocuments extends d3_overview_controller_pdfdocuments_parent
{
private $generatorError = false;
public function render()
{
if ($this->generatorError) {
echo <<<HTML
<html lang="de">
<body>
<script>
let form = top.basefrm.edit.document.getElementById("transfer");
let input = document.createElement("input");
input.setAttribute("type", "hidden");
input.setAttribute("name", "generatorError");
input.setAttribute("value", encodeURIComponent('{$this->generatorError}'));
form.appendChild(input);
form.submit();
</script>
</body>
</html>
HTML;
Registry::getUtils()->showMessageAndExit('PDF-Datei konnte nicht erstellt werden');
} elseif ($generatorError = Registry::getRequest()->getRequestParameter('generatorError')) {
Registry::getUtilsView()->addErrorToDisplay(urldecode($generatorError));
}
return parent::render();
}
/**
* @return bool
* @throws DatabaseConnectionException
@ -45,25 +65,29 @@ class d3_overview_controller_pdfdocuments extends d3_overview_controller_pdfdocu
$viewNameGenerator = Registry::get(TableViewNameGenerator::class);
$sTable = $viewNameGenerator->getViewName("oxorderarticles");
$sQ = "select count(oxid) from {$sTable} where oxorderid = " . $masterDb->quote($sOrderId) . " and oxstorno = 0";
$sQ = "select count(oxid) from $sTable where oxorderid = " . $masterDb->quote($sOrderId) . " and oxstorno = 0";
return (bool) $masterDb->getOne($sQ);
}
/**
* @throws noBaseObjectSetException
* @throws noPdfHandlerFoundException
* @throws pdfGeneratorExceptionAbstract
*/
public function d3CreatePDF()
{
$soxId = $this->getEditObjectId();
if ($soxId != "-1" && isset($soxId)) {
/** @var d3_Order_PdfDocuments $oOrder */
$oOrder = oxNew(Order::class);
if ($oOrder->load($soxId)) {
$generator = oxNew( orderOverviewPdfGenerator::class );
$generator->generatePdf($oOrder, Registry::getRequest()->getRequestEscapedParameter("pdflanguage"));
try {
$soxId = $this->getEditObjectId();
if ( $soxId != "-1" && isset( $soxId ) ) {
/** @var Order $oOrder */
$oOrder = oxNew( Order::class );
if ( $oOrder->load( $soxId ) ) {
$generator = oxNew( orderOverviewPdfGenerator::class );
$generator->generatePdf( $oOrder, Registry::getRequest()->getRequestEscapedParameter( "pdflanguage" ) );
}
}
} catch ( Exception $exception) {
Registry::getLogger()->error($exception->getMessage(), [ 'exception' => $exception ] );
$this->generatorError = 'PDF documents: ' . $exception->getMessage();
}
}

Bestand weergeven

@ -13,7 +13,7 @@ The module can be easily extended to adapt existing documents or add new ones. E
## System requirements:
- installed OXID eShop version from 6.1
- PHP version for which installation packages are available (PHP 7)
- PHP version for which installation packages are available (PHP 7 + 8)
- Installation via Composer
## Compatibility:

Bestand weergeven

@ -4,16 +4,16 @@
PDF-Dokumentgenerator für OXID eShop
Erstellen Sie unterschiedlichste statische oder dynamische PDF-Dokument auf Kopfdruck. Der Dokumentinhalt wird aus Smartytemplates erstellt.
Erstellen Sie unterschiedliche statische oder dynamische PDF-Dokumente auf Kopfdruck. Der Dokumentinhalt wird aus Smartytemplates erstellt.
An den Bestellungen Ihres OXID-Shops steht Ihnen die Erstellung von Rechnung und Lieferschein zur Verfügung.
Das Modul kann einfach erweitert werden, um bestehende Dokumente anzupassen oder Neue hinzuzufügen. Auch komplett andere Dokumentarten (z.B. Artikeldatenblätter) sind einfach möglich.
Das Modul kann einfach erweitert werden, um bestehende Dokumente anzupassen oder neue hinzuzufügen. Auch komplett andere Dokumentarten (z.B. Artikeldatenblätter) sind einfach möglich.
## Systemanforderungen:
- installierter OXID eShop in Version ab 6.1
- PHP-Version, für die Installationspakete verfügbar sind (PHP 7)
- PHP-Version, für die Installationspakete verfügbar sind (PHP 7 + 8)
- Installation via Composer
## Kompatibilität:

Bestand weergeven

@ -31,9 +31,11 @@
}
},
"require": {
"php": "^7.0",
"oxid-esales/oxideshop-ce": "6.3 - 6.5",
"spipu/html2pdf": "^5.2"
"php": "^7.0 || ^8.0",
"oxid-esales/oxideshop-ce": "6.3 - 6.14",
"spipu/html2pdf": "~5.2.8",
"d3/modcfg": "^5.3.6.000 || ^6",
"beberlei/assert": "^3.3.2"
},
"autoload": {
"psr-4": {

Bestand weergeven

@ -2,12 +2,42 @@
title: Changelog
---
## noch nicht veröffentlicht
All notable changes to this project will be documented in this file.
---
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## 1.0.0.0 - (2020-08-13)
## [Unreleased](https://git.d3data.de/D3Public/pdfdokumente/compare/1.0.4.0...rel_1.x)
## [1.0.4.0](https://git.d3data.de/D3Public/pdfdokumente/compare/1.0.3.1...1.0.4.0) - 2023-12-22
### Added
- installierbar in OXID 6.5.2 + 6.5.3 (CE 6.14)
- Modullogo
### Changed
- behandelt fehlende Bestellung bei auf Bestellungen basierenden Dokumenten
## [1.0.3.1](https://git.d3data.de/D3Public/pdfdokumente/compare/1.0.3.0...1.0.3.1) - 2023-05-09
### Fixed
- kann mehrere Dokumente auf einmal generieren
## [1.0.3.0](https://git.d3data.de/D3Public/pdfdokumente/compare/1.0.2.0...1.0.3.0) - 2023-01-04
### Added
- installierbar in OXID 6.4 und 6.5
## [1.0.2.0](https://git.d3data.de/D3Public/pdfdokumente/compare/1.0.1.0...1.0.2.0) - 2021-04-30
### Added
- installierbar in OXID 6.2.4 und 6.3.0
- Dateinamen werden auf Gültigkeit hin korrigiert
### Fixed
- Setzen der Rechnungsnummer setzt den "neue Bestellung"-Status nicht zurück
## [1.0.1.0](https://git.d3data.de/D3Public/pdfdokumente/compare/1.0.0.0...1.0.1.0) - 2020-08-20
### Changed
- Dokumentid für "Rechnung ohne Logo" angepasst
## [1.0.1.0](https://git.d3data.de/D3Public/pdfdokumente/tag/1.0.0.0) - 2020-08-13
#### Added
- Framework zur Erstellung unterschiedlichster PDF Dokumente
- ermöglicht Generierung von Rechnungen und Lieferscheinen für Bestellungen aus dem Adminbereich

Bestand weergeven

@ -1,9 +1,9 @@
{
"title": "<i class='fab fa-d3 d3fa-color-blue'></i> PDF Dokumente",
"moduleversion": "1.0.0.0",
"moduleversion": "1.0.4.0",
"titledesc": "für den Oxid eShop",
"author": "D³ Data Development",
"moduledate": "13.08.2020",
"moduledate": "22.12.2023",
"editors": "",
"tagline": "",
"image": "",

Bestand weergeven

@ -3,13 +3,17 @@ title: Systemanforderungen
---
* PHP Version
* 7.0.x bis 7.4.x
* 7.0.x bis 8.x
* Shopversionen / -editionen
* OXID eShop Community Edition (CE), Professional Edition (PE) oder Enterprise Edition (EE) in Compilation Version
* 6.1.x
* 6.2.x
* 6.3.x
* 6.4.x
* 6.5.x
* Themes
* Diese Modul bindet sich nicht in Frontendthemes ein und ist daher davon unabhängig
* (D3) Modul-Connector ([kostenfrei bei D3 erhältlich](https://www.oxidmodule.com/connector/)) ab Version 5.3.6.0
* Template-Engine
* Smarty
* Installation via [Composer](https://getcomposer.org)

Bestand weergeven

@ -28,15 +28,16 @@ $aModule = [
'de' => $logo.' PDF-Dokumente',
'en' => $logo.' PDF documents',
],
'version' => '1.0',
'version' => '1.0.4.0',
'author' => 'D&sup3; Data Development (Inh.: Thomas Dartsch)',
'email' => 'support@shopmodule.com',
'url' => 'http://www.oxidmodule.com/',
'url' => 'https://www.oxidmodule.com/',
'extend' => [
OrderOverview::class => d3_overview_controller_pdfdocuments::class
],
'controllers' => [],
'templates' => [
'controllers' => [],
'thumbnail' => 'picture.svg',
'templates' => [
'd3orderoverview_pdfform.tpl' => 'd3/pdfdocuments/Application/views/tpl/admin/orderoverview_pdfform.tpl',
'd3deliverynote_pdf.tpl' => 'd3/pdfdocuments/Application/views/tpl/documents/deliverynote/deliverynote.tpl',
@ -84,6 +85,50 @@ $aModule = [
'name' => $sModuleId.'bDev',
'type' => 'bool',
'value' => false
],
[
'group' => $sModuleId.'main',
'name' => $sModuleId.'basicAuthUserName',
'type' => 'str'
],
[
'group' => $sModuleId.'main',
'name' => $sModuleId.'basicAuthPassword',
'type' => 'password'
],
[
'group' => $sModuleId.'contents',
'name' => $sModuleId.'LogoUrl',
'type' => 'str'
],
[
'group' => $sModuleId.'contents',
'name' => $sModuleId.'BackgroundUrl',
'type' => 'str'
],
[
'group' => $sModuleId.'documents',
'name' => $sModuleId.'DocInvoice',
'type' => 'bool',
'value' => true
],
[
'group' => $sModuleId.'documents',
'name' => $sModuleId.'DocInvoiceNoLogo',
'type' => 'bool',
'value' => true
],
[
'group' => $sModuleId.'documents',
'name' => $sModuleId.'DocDeliveryNote',
'type' => 'bool',
'value' => true
],
[
'group' => $sModuleId.'documents',
'name' => $sModuleId.'DocDeliveryNoteNoLogo',
'type' => 'bool',
'value' => true
]
]
];

57
picture.svg Normal file
Bestand weergeven

@ -0,0 +1,57 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 14.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 43363) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Ebene_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="201px" height="124px" viewBox="0 0 201 124" enable-background="new 0 0 201 124" xml:space="preserve">
<g>
<linearGradient id="SVGID_1_" gradientUnits="userSpaceOnUse" x1="47.0591" y1="67.5117" x2="47.0591" y2="54.6143">
<stop offset="0.0056" style="stop-color:#3266A9"/>
<stop offset="1" style="stop-color:#0099FF"/>
</linearGradient>
<path fill="url(#SVGID_1_)" d="M50.282,55.502c-0.784-0.592-2.104-0.888-3.961-0.888h-1.376l-2.283,12.898h1.779
c3.76,0,6.032-2.245,6.815-6.733c0.134-0.871,0.202-1.642,0.202-2.313C51.457,57.081,51.064,56.093,50.282,55.502z"/>
<linearGradient id="SVGID_2_" gradientUnits="userSpaceOnUse" x1="65.9609" y1="49.104" x2="65.9609" y2="36.9434">
<stop offset="0.0056" style="stop-color:#3266A9"/>
<stop offset="1" style="stop-color:#0099FF"/>
</linearGradient>
<path fill="url(#SVGID_2_)" d="M65.72,40.482c1.074,0,1.611,0.381,1.611,1.143c0,0.701-0.321,1.201-0.962,1.5
c-0.209,0.119-0.366,0.194-0.471,0.224c-0.065,0.019-0.158,0.037-0.271,0.056c1.98,1.621,3.702,3.544,5.097,5.699
c0.117-0.321,0.21-0.658,0.277-1.013l0.09-1.008c0-1.223-0.568-2.081-1.701-2.574c0.776-0.402,1.376-0.94,1.801-1.611
c0.425-0.672,0.638-1.418,0.638-2.239c0-0.642-0.198-1.265-0.593-1.868c-0.396-0.605-0.98-1.049-1.757-1.333
c-0.433-0.193-0.876-0.328-1.332-0.402c-0.456-0.075-1.003-0.113-1.645-0.113c-0.82,0-1.663,0.124-2.529,0.37
c-0.865,0.246-1.6,0.563-2.204,0.952s-1.13,0.907-1.578,1.557c-0.036,0.052-0.066,0.109-0.101,0.163
c1.196,0.534,2.341,1.163,3.426,1.874C63.947,40.943,64.68,40.482,65.72,40.482z"/>
<linearGradient id="SVGID_3_" gradientUnits="userSpaceOnUse" x1="50.0576" y1="87.0566" x2="50.0576" y2="37.8525">
<stop offset="0.0056" style="stop-color:#3266A9"/>
<stop offset="1" style="stop-color:#0099FF"/>
</linearGradient>
<path fill="url(#SVGID_3_)" d="M70.725,49.104c-0.433,1.189-1.208,2.147-2.331,2.871c-1.425,0.918-3.182,1.377-5.271,1.377
c-1.179,0-2.175-0.176-2.988-0.525c-0.813-0.35-1.444-0.864-1.891-1.543c-0.448-0.678-0.671-1.481-0.671-2.405l0.022-0.694
l0.156-0.693h4.367l-0.028,0.179v0.179v0.246c0,1.164,0.628,1.746,1.884,1.746c0.635,0,1.201-0.217,1.696-0.649
c0.495-0.434,0.742-0.94,0.742-1.522c0-0.522-0.194-0.887-0.582-1.097c-0.329-0.208-1.007-0.313-2.036-0.313l0.47-2.754
l1.141-0.067c0.083-0.011,0.154-0.022,0.221-0.033c-0.674-0.551-1.378-1.067-2.11-1.546c-0.044,0.096-0.087,0.195-0.125,0.302
h-4.185c0.192-0.837,0.49-1.56,0.884-2.175c-3.064-1.372-6.46-2.133-10.034-2.133c-13.588,0-24.603,11.014-24.603,24.601
c0,13.59,11.015,24.604,24.603,24.604S74.66,76.043,74.66,62.453C74.66,57.532,73.214,52.949,70.725,49.104z M59.413,59.233
l-0.168,1.275c-0.538,2.953-1.511,5.404-2.921,7.35c-1.298,1.835-3.016,3.179-5.153,4.028c-2.138,0.851-4.494,1.274-7.067,1.274
H33.731l4.264-24.198h10.441c1.141,0,2.204,0.073,3.189,0.218c0.984,0.146,1.868,0.364,2.651,0.655
c1.611,0.537,2.887,1.471,3.827,2.802c0.94,1.332,1.41,2.992,1.41,4.984L59.413,59.233z"/>
</g>
<linearGradient id="SVGID_4_" gradientUnits="userSpaceOnUse" x1="107.3027" y1="105.8555" x2="93.0727" y2="16.0106">
<stop offset="0" style="stop-color:#B2B2B2;stop-opacity:0"/>
<stop offset="0.2" style="stop-color:#B2B2B2"/>
<stop offset="0.8" style="stop-color:#B2B2B2"/>
<stop offset="1" style="stop-color:#B2B2B2;stop-opacity:0"/>
</linearGradient>
<rect x="99.875" y="14.933" fill="url(#SVGID_4_)" width="0.625" height="92"/>
<script xmlns=""></script>
<path d="M126.531,43.25c0-3.446,2.801-6.25,6.25-6.25h15.624v12.5c0,1.729,1.398,3.125,3.126,3.125h12.5v14.063h-20.313
c-3.448,0-6.25,2.801-6.25,6.25V87h-4.688c-3.449,0-6.25-2.801-6.25-6.248V43.25z M164.031,49.5h-12.5V37L164.031,49.5z
M143.719,71.375h3.125c3.018,0,5.469,2.451,5.469,5.469s-2.451,5.471-5.469,5.471h-1.563v3.123c0,0.861-0.702,1.563-1.563,1.563
c-0.861,0-1.563-0.701-1.563-1.563v-4.686v-7.814C142.156,72.076,142.857,71.375,143.719,71.375z M146.844,79.188
c1.3,0,2.343-1.043,2.343-2.344c0-1.299-1.043-2.344-2.343-2.344h-1.563v4.688H146.844z M156.218,71.375h3.125
c2.589,0,4.688,2.102,4.688,4.688v6.252c0,2.586-2.1,4.686-4.688,4.686h-3.125c-0.86,0-1.562-0.701-1.562-1.563v-12.5
C154.656,72.076,155.357,71.375,156.218,71.375z M159.343,83.875c0.861,0,1.563-0.703,1.563-1.561v-6.252
c0-0.861-0.702-1.563-1.563-1.563h-1.563v9.375H159.343z M167.155,72.938c0-0.861,0.703-1.563,1.563-1.563h4.688
c0.861,0,1.563,0.701,1.563,1.563s-0.701,1.563-1.563,1.563h-3.124v3.125h3.124c0.861,0,1.563,0.703,1.563,1.563
s-0.701,1.564-1.563,1.564h-3.124v4.686c0,0.861-0.703,1.563-1.563,1.563c-0.859,0-1.563-0.701-1.563-1.563v-6.25V72.938z"/>
</svg>

Na

Breedte:  |  Hoogte:  |  Grootte: 4.8 KiB