-
- [{block name="conclusion_paymethod"}]
-
-
- [{oxmultilang ident="D3_PDFDOCUMENTS_USED_PAYMENTMETHOD" suffix="COLON"}]
- [{$payment->getFieldData('oxdesc')}]
- |
-
- [{/block}]
-
-
- [{oxmultilang ident="D3_PDFDOCUMENTS_THANKYOU_1"}]
- |
-
-
-
- [{oxmultilang ident="D3_PDFDOCUMENTS_THANKYOU_2" args=$shop->getFieldData('oxname')}]
- |
-
-
+ [{block name="conclusion_paymethod"}]
+
+ [{oxmultilang ident="D3_PDFDOCUMENTS_USED_PAYMENTMETHOD" suffix="COLON"}]
+ [{$payment->getFieldData('oxdesc')}]
+
+ [{include file="d3invoice_pdf_payinfo.tpl"}]
+
+ [{/block}]
+
+ [{block name="conclusion_thankyou"}]
+
+ [{oxmultilang ident="D3_PDFDOCUMENTS_THANKYOU_1"}]
+ [{oxmultilang ident="D3_PDFDOCUMENTS_THANKYOU_2" args=$shop->getFieldData('oxname')}]
+
+ [{/block}]
[{/block}]
diff --git a/Application/views/tpl/documents/invoice/inc/payinfo.tpl b/Application/views/tpl/documents/invoice/inc/payinfo.tpl
new file mode 100644
index 0000000..01c6918
--- /dev/null
+++ b/Application/views/tpl/documents/invoice/inc/payinfo.tpl
@@ -0,0 +1,16 @@
+[{block name="payinfo"}]
+ [{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}]
+ [{/block}]
+ [{elseif $payment->getId() == 'oxidpayadvance' || $payment->getId() == 'oxidcreditcard'}]
+ [{block name="payinfo_payed"}]
+ [{oxmultilang ident="D3_PDFDOCUMENTS_RECEIVED_PAYMENT"}]
+ [{/block}]
+ [{else}]
+ [{block name="payinfo_other"}]
+ [{/block}]
+ [{/if}]
+[{/block}]
diff --git a/Application/views/tpl/documents/invoice/invoice.tpl b/Application/views/tpl/documents/invoice/invoice.tpl
index 748ffa8..999559a 100644
--- a/Application/views/tpl/documents/invoice/invoice.tpl
+++ b/Application/views/tpl/documents/invoice/invoice.tpl
@@ -1,4 +1,4 @@
-[{assign var="pagePadding" value=","|explode:"45,15,25,25"}] [{* top, right, bottom, left *}]
+[{assign var="pagePadding" value=","|explode:"45,15,30,25"}] [{* top, right, bottom, left *}]
[{assign var="showLogo" value=$showLogo|default:true}]
[{capture append="pdfBlock_style"}]
diff --git a/metadata.php b/metadata.php
index 022bc2d..5952b46 100644
--- a/metadata.php
+++ b/metadata.php
@@ -61,6 +61,7 @@ $aModule = [
'd3invoice_pdf_informations.tpl'=> 'd3/pdfdocuments/Application/views/tpl/documents/invoice/inc/informations.tpl',
'd3invoice_pdf_salutation.tpl' => 'd3/pdfdocuments/Application/views/tpl/documents/invoice/inc/salutation.tpl',
'd3invoice_pdf_conclusion.tpl' => 'd3/pdfdocuments/Application/views/tpl/documents/invoice/inc/conclusion.tpl',
+ 'd3invoice_pdf_payinfo.tpl' => 'd3/pdfdocuments/Application/views/tpl/documents/invoice/inc/payinfo.tpl',
'd3pdfbase.tpl' => 'd3/pdfdocuments/Application/views/tpl/documents/inc/page/base.tpl',
'd3pdfheader.tpl' => 'd3/pdfdocuments/Application/views/tpl/documents/inc/page/header.tpl',
diff --git a/out/src/css/pdfStyling.css b/out/src/css/pdfStyling.css
index a841539..97f079c 100644
--- a/out/src/css/pdfStyling.css
+++ b/out/src/css/pdfStyling.css
@@ -189,13 +189,9 @@ table{
font-weight: bold;
}
-.conclusion_table {
- width: 100%;
- border-spacing: 0;
- border-collapse: collapse;
- padding-top: 10mm
-}
-.conclusion_table td {
+.conclusion_payment,
+.conclusion_thankyou {
+ margin-top: 5mm;
font-size: 12px;
}