add auto colon suffix

This commit is contained in:
Daniel Seifert 2020-06-30 22:21:27 +02:00
parent 9cd96631ad
commit 2f1c256779
Signed by: DanielS
GPG Key ID: 6A513E13AEE66170
11 changed files with 41 additions and 37 deletions

View File

@ -35,6 +35,8 @@ $aLang = array(
'D3_PDFDOCUMENTS_DATE_FORMAT' => '%d.%m.%Y',
'D3_PDFDOCUMENTS_USTIDNR' => 'Ust.-ID-Nr.',
'D3_PDFDOCUMENTS_DELIVERYADDRESS' => 'Lieferadresse',
'D3_PDFDOCUMENTS_INVOICE' => 'Rechnung',
'D3_PDFDOCUMENTS_DELIVERYNOTE' => 'Lieferschein',
'D3_PDFDOCUMENTS_ORDERNR' => 'Bestellnr.',

View File

@ -22,21 +22,23 @@ $aLang = array(
'D3_PDFDOCUMENTS_GET_IN_CONTACT' => 'You can contact us as follows',
'D3_PDFDOCUMENTS_TELEFON' => 'Telephone',
'D3_PDFDOCUMENTS_FAX' => 'Fax',
'D3_PDFDOCUMENTS_EMAIL' => 'email',
'D3_PDFDOCUMENTS_EMAIL' => 'Email',
'D3_PDFDOCUMENTS_BANK_ACCOUNT' => 'Bank account',
'D3_PDFDOCUMENTS_BANK_ACCOUNT' => 'Bank Account',
'D3_PDFDOCUMENTS_BANK_ACCOUNTNR' => 'IBAN',
'D3_PDFDOCUMENTS_BANK_BANKCODE_HEADER' => 'BIC',
'D3_PDFDOCUMENTS_ORDERBILLNR' => 'Invoice no.',
'D3_PDFDOCUMENTS_CUSTOMERNR' => 'Customer no.',
'D3_PDFDOCUMENTS_ORDERBILLNR' => 'Invoice No.',
'D3_PDFDOCUMENTS_CUSTOMERNR' => 'Customer No.',
'D3_PDFDOCUMENTS_DATE' => 'Date',
'D3_PDFDOCUMENTS_DATE_FORMAT' => '%Y-%m-%d',
'D3_PDFDOCUMENTS_USTIDNR' => 'VAT ID no.',
'D3_PDFDOCUMENTS_USTIDNR' => 'VAT ID No.',
'D3_PDFDOCUMENTS_DELIVERYADDRESS' => 'Shipping Address',
'D3_PDFDOCUMENTS_INVOICE' => 'Invoice',
'D3_PDFDOCUMENTS_DELIVERYNOTE' => 'Deliverynote',
'D3_PDFDOCUMENTS_ORDERNR' => 'Order no.',
'D3_PDFDOCUMENTS_ORDERNR' => 'Order No.',
'D3_PDFDOCUMENTS_ORDER_FROM_AT' => 'Your order from %1$s at "%2$s"',
'D3_PDFDOCUMENTS_AMOUNT' => 'Amount',
@ -45,7 +47,7 @@ $aLang = array(
'D3_PDFDOCUMENTS_UNITPRICE' => 'Unit Price',
'D3_PDFDOCUMENTS_TOTALPRICE' => 'Total',
'D3_PDFDOCUMENTS_ARTNR' => 'Item no.',
'D3_PDFDOCUMENTS_ARTNR' => 'Item No.',
'D3_PDFDOCUMENTS_SUMBRUTTO' => 'Total products (incl. tax)',
'D3_PDFDOCUMENTS_DISCOUNT' => 'Discount',
@ -57,10 +59,10 @@ $aLang = array(
'D3_PDFDOCUMENTS_USED_PAYMENTMETHOD' => 'Your chosen payment method',
'D3_PDFDOCUMENTS_RECEIVED_PAYMENT' => 'We have received the invoice amount with thanks.',
'D3_PDFDOCUMENTS_MANAGINGDIRECTOR' => 'managing director',
'D3_PDFDOCUMENTS_COURT' => 'local court',
'D3_PDFDOCUMENTS_MANAGINGDIRECTOR' => 'Managing director',
'D3_PDFDOCUMENTS_COURT' => 'Local court',
'D3_PDFDOCUMENTS_HRBNR' => 'HRB',
'D3_PDFDOCUMENTS_USTID' => 'VAT ID',
'D3_PDFDOCUMENTS_BANK_BANKCODE' => 'BIC/SWIFT-Code',
'D3_PDFDOCUMENTS_BANK_BANKCODE' => 'BIC/SWIFT Code',
);

View File

@ -3,7 +3,7 @@
[{block name="pdfDocumentInformations"}]
<div>
[{assign var="dateFormat" value='D3_PDFDOCUMENTS_DATE_FORMAT'|oxmultilangassign}]
[{oxmultilang ident="D3_PDFDOCUMENTS_DATE"}] [{$smarty.now|date_format:$dateFormat}]
[{oxmultilang ident="D3_PDFDOCUMENTS_DATE" suffix="COLON"}] [{$smarty.now|date_format:$dateFormat}]
</div>
[{/block}]
</div>

View File

@ -1,7 +1,7 @@
[{block name="salutation"}]
<div class="salutation">
<div class="documenttype">[{oxmultilang ident="D3_PDFDOCUMENTS_DELIVERYNOTE"}]</div>
<div class="documentnumber">[{oxmultilang ident="D3_PDFDOCUMENTS_ORDERNR"}] [{$order->getFieldData('oxordernr')}]</div>
<div class="documentnumber">[{oxmultilang ident="D3_PDFDOCUMENTS_ORDERNR" suffix="COLON"}] [{$order->getFieldData('oxordernr')}]</div>
[{assign var="dateFormat" value='D3_PDFDOCUMENTS_DATE_FORMAT'|oxmultilangassign}]
[{assign var="sArgs" value=$order->getFieldData('oxorderdate')|date_format:$dateFormat|cat:"//"|cat:$shop->getFieldData('oxname')}]

View File

@ -1,28 +1,28 @@
<td class="description">
<div class="sumbrutto">
[{oxmultilang ident="D3_PDFDOCUMENTS_SUMBRUTTO"}]
[{oxmultilang ident="D3_PDFDOCUMENTS_SUMBRUTTO" suffix="COLON"}]
</div>
[{if $order->getFormattedDiscount() != 0}]
<div class="discount">
[{oxmultilang ident="D3_PDFDOCUMENTS_DISCOUNT"}]
[{oxmultilang ident="D3_PDFDOCUMENTS_DISCOUNT" suffix="COLON"}]
</div>
[{/if}]
<div class="sumnetto">
[{oxmultilang ident="D3_PDFDOCUMENTS_SUMNETTO"}]
[{oxmultilang ident="D3_PDFDOCUMENTS_SUMNETTO" suffix="COLON"}]
</div>
[{foreach from=$productVats key=VatKey item=oVat}]
<div class="producttax">
[{oxmultilang ident="D3_PDFDOCUMENTS_TAX" args=$VatKey}]
[{oxmultilang ident="D3_PDFDOCUMENTS_TAX" args=$VatKey suffix="COLON"}]
</div>
[{/foreach}]
<div class="delivery">
[{oxmultilang ident="D3_PDFDOCUMENTS_DELIVERY"}]
[{oxmultilang ident="D3_PDFDOCUMENTS_DELIVERY" suffix="COLON"}]
</div>
<div class="deliverytax">
[{oxmultilang ident="D3_PDFDOCUMENTS_TAX" args=$VatKey}]
[{oxmultilang ident="D3_PDFDOCUMENTS_TAX" args=$VatKey suffix="COLON"}]
</div>
<div class="totalsum">
[{oxmultilang ident="D3_PDFDOCUMENTS_TOTALSUMBRUT"}]
[{oxmultilang ident="D3_PDFDOCUMENTS_TOTALSUMBRUT" suffix="COLON"}]
</div>
</td>
<td class="values">

View File

@ -2,7 +2,7 @@
[{if $order->getFieldData('oxdelstreet')}]
<div class="deliveryaddress">
<div class="headline">
[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_DELIVERYADDRESS"}]
[{oxmultilang ident="D3_PDFDOCUMENTS_DELIVERYADDRESS" suffix="COLON"}]
</div>
[{if $order->getFieldData('oxdelcompany')}]
<div class="company">[{$order->getFieldData('oxdelcompany')}]</div>

View File

@ -5,13 +5,13 @@
[{oxmultilang ident="D3_PDFDOCUMENTS_GET_IN_CONTACT"}]
</div>
<div>
[{oxmultilang ident="D3_PDFDOCUMENTS_TELEFON"}] [{$shop->getFieldData('oxtelefon')}]
[{oxmultilang ident="D3_PDFDOCUMENTS_TELEFON" suffix="COLON"}] [{$shop->getFieldData('oxtelefon')}]
</div>
<div>
[{oxmultilang ident="D3_PDFDOCUMENTS_FAX"}] [{$shop->getFieldData('oxtelefax')}]
[{oxmultilang ident="D3_PDFDOCUMENTS_FAX" suffix="COLON"}] [{$shop->getFieldData('oxtelefax')}]
</div>
<div>
[{oxmultilang ident="D3_PDFDOCUMENTS_EMAIL"}] [{$shop->getFieldData('oxinfoemail')}]
[{oxmultilang ident="D3_PDFDOCUMENTS_EMAIL" suffix="COLON"}] [{$shop->getFieldData('oxinfoemail')}]
</div>
[{/block}]
</div>
@ -25,10 +25,10 @@
[{$shop->getFieldData('oxbankname')}]
</div>
<div>
[{oxmultilang ident="D3_PDFDOCUMENTS_BANK_ACCOUNTNR"}] [{$shop->getFieldData('oxibannumber')}]
[{oxmultilang ident="D3_PDFDOCUMENTS_BANK_ACCOUNTNR" suffix="COLON"}] [{$shop->getFieldData('oxibannumber')}]
</div>
<div>
[{oxmultilang ident="D3_PDFDOCUMENTS_BANK_BANKCODE_HEADER"}] [{$shop->getFieldData('oxbiccode')}]
[{oxmultilang ident="D3_PDFDOCUMENTS_BANK_BANKCODE_HEADER" suffix="COLON"}] [{$shop->getFieldData('oxbiccode')}]
</div>
[{/block}]
</div>

View File

@ -17,18 +17,18 @@
[{/block}]
[{block name="pdfFooterCenter"}]
<td class="footerCenter">
<div>[{oxmultilang ident="D3_PDFDOCUMENTS_MANAGINGDIRECTOR"}] [{$shop->getFieldData('oxfname')}] [{$shop->getFieldData('oxlname')}]</div>
<div>[{oxmultilang ident="D3_PDFDOCUMENTS_COURT"}] [{$shop->getFieldData('oxcourt')}]</div>
<div>[{oxmultilang ident="D3_PDFDOCUMENTS_HRBNR"}] [{$shop->getFieldData('oxhrbnr')}]</div>
<div>[{oxmultilang ident="D3_PDFDOCUMENTS_USTID"}] [{$shop->getFieldData('oxvatnumber')}]</div>
<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"}] [{$shop->getFieldData('oxibannumber')}]</div>
<div>[{oxmultilang ident="D3_PDFDOCUMENTS_BANK_BANKCODE"}] [{$shop->getFieldData('oxbiccode')}]</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>

View File

@ -3,7 +3,7 @@
[{block name="conclusion_paymethod"}]
<tr>
<td>
[{oxmultilang ident="D3_PDFDOCUMENTS_USED_PAYMENTMETHOD"}]
[{oxmultilang ident="D3_PDFDOCUMENTS_USED_PAYMENTMETHOD" suffix="COLON"}]
[{$payment->getFieldData('oxdesc')}]
</td>
</tr>

View File

@ -2,17 +2,17 @@
<div class="documentinformations">
[{block name="pdfDocumentInformations"}]
<div>
[{oxmultilang ident="D3_PDFDOCUMENTS_ORDERBILLNR"}] [{$order->getFieldData('oxbillnr')}]
[{oxmultilang ident="D3_PDFDOCUMENTS_ORDERBILLNR" suffix="COLON"}] [{$order->getFieldData('oxbillnr')}]
</div>
<div>
[{oxmultilang ident="D3_PDFDOCUMENTS_CUSTOMERNR"}] [{$user->getFieldData('oxcustnr')}]
[{oxmultilang ident="D3_PDFDOCUMENTS_CUSTOMERNR" suffix="COLON"}] [{$user->getFieldData('oxcustnr')}]
</div>
<div>
[{assign var="dateFormat" value='D3_PDFDOCUMENTS_DATE_FORMAT'|oxmultilangassign}]
[{oxmultilang ident="D3_PDFDOCUMENTS_DATE"}] [{$order->getFieldData('oxbilldate')|date_format:$dateFormat}]
[{oxmultilang ident="D3_PDFDOCUMENTS_DATE" suffix="COLON"}] [{$order->getFieldData('oxbilldate')|date_format:$dateFormat}]
</div>
<div>
[{oxmultilang ident="D3_PDFDOCUMENTS_USTIDNR"}] [{$shop->getFieldData('oxvatnumber')}]
[{oxmultilang ident="D3_PDFDOCUMENTS_USTIDNR" suffix="COLON"}] [{$shop->getFieldData('oxvatnumber')}]
</div>
[{/block}]
</div>

View File

@ -1,7 +1,7 @@
[{block name="salutation"}]
<div class="salutation">
<div class="documenttype">[{oxmultilang ident="D3_PDFDOCUMENTS_INVOICE"}]</div>
<div class="documentnumber">[{oxmultilang ident="D3_PDFDOCUMENTS_ORDERNR"}] [{$order->getFieldData('oxordernr')}]</div>
<div class="documentnumber">[{oxmultilang ident="D3_PDFDOCUMENTS_ORDERNR" suffix="COLON"}] [{$order->getFieldData('oxordernr')}]</div>
[{assign var="dateFormat" value='D3_PDFDOCUMENTS_DATE_FORMAT'|oxmultilangassign}]
[{assign var="sArgs" value=$order->getFieldData('oxorderdate')|date_format:$dateFormat|cat:"//"|cat:$shop->getFieldData('oxname')}]