Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix invoice layout (#6305)
Tomasz Szymańskid0a16134f83b
diff --git a/locale/en/LC_MESSAGES/django.po b/locale/en/LC_MESSAGES/django.poindex a01d15edfd..c4e06b476d 100644--- a/locale/en/LC_MESSAGES/django.po+++ b/locale/en/LC_MESSAGES/django.po@@ -8,7 +8,7 @@ msgid ""msgstr """Project-Id-Version: master\n""Report-Msgid-Bugs-To: \n"-"POT-Creation-Date: 2020-09-11 12:15+0000\n"+"POT-Creation-Date: 2020-10-23 07:04+0000\n""PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n""Last-Translator: FULL NAME <EMAIL@ADDRESS>\n""Language-Team: LANGUAGE <[email protected]>\n"@@ -32,52 +32,57 @@ msgid """%(street_address_2)s"msgstr ""-#: templates/invoices/invoice.html:218+#: templates/invoices/invoice.html:210msgctxt "Invoice PDF header"msgid "INVOICE INFORMATION"msgstr ""-#: templates/invoices/invoice.html:221+#: templates/invoices/invoice.html:213msgctxt "Invoice PDF header: Invoice number"msgid "Invoice number:"msgstr ""-#: templates/invoices/invoice.html:227+#: templates/invoices/invoice.html:219msgctxt "Invoice PDF header: order number"msgid "Order:"msgstr ""-#: templates/invoices/invoice.html:233+#: templates/invoices/invoice.html:225msgctxt "Invoice PDF header"msgid "Date:"msgstr ""-#: templates/invoices/invoice.html:239+#: templates/invoices/invoice.html:231msgctxt "Invoice PDF amount (price)"msgid "Amount:"msgstr ""-#: templates/invoices/invoice.html:248+#: templates/invoices/invoice.html:240msgctxt "Invoice PDF"msgid "BILLING ADDRESS"msgstr ""-#: templates/invoices/invoice.html:277+#: templates/invoices/invoice.html:269msgctxt "Invoice PDF"msgid "SHIPMENT ADDRESS"msgstr ""-#: templates/invoices/invoice.html:308+#: templates/invoices/invoice.html:300msgctxt "Invoice PDF"msgid "PAYMENT METHOD"msgstr ""-#: templates/invoices/invoice.html:316+#: templates/invoices/invoice.html:306+msgctxt "Invoice PDF: Payment method value"+msgid "Unpaid"+msgstr ""++#: templates/invoices/invoice.html:314msgctxt "Invoice PDF"msgid "SHIPMENT METHOD"msgstr ""-#: templates/invoices/invoice.html:326+#: templates/invoices/invoice.html:324msgctxt "Invoice PDF table header"msgid "ITEMS ORDERED"msgstr ""diff --git a/templates/invoices/invoice.html b/templates/invoices/invoice.htmlindex b28f1d02d9..cf550adb5f 100644--- a/templates/invoices/invoice.html+++ b/templates/invoices/invoice.html@@ -29,7 +29,7 @@.section-header,.section-invoice-info {background-color: #EFF5F8;- height: 235px;+ height: 255px;}.section-left {@@ -107,12 +107,6 @@line-height: normal;}- .logo-placeholder {- height: 30px;- width: 78px;- padding-bottom: 20px;- }-.padded-font {margin-top: 10px;}@@ -190,8 +184,6 @@<body><div class="section-header section-left"><div class="content-padded">- <div class="logo-placeholder"></div>- <br /><span class="normal-text">{{ order.billing_address.company_name }}</span><br /><span class="normal-text">{{ order.billing_address.street_address_1 }}</span>@@ -307,7 +299,13 @@<div class="content-tight-padded padded-top"><span class="header-title">{% trans "PAYMENT METHOD" context "Invoice PDF" %}</span><br />- <span class="normal-text">{{ order.get_last_payment.gateway }}</span>+ {% if order.get_last_payment %}+ <span class="normal-text">{{ order.get_last_payment.gateway }}</span>+ {% else %}+ <span class="normal-text">+ {% trans "Unpaid" context "Invoice PDF: Payment method value" %}+ </span>+ {% endif %}<br /></div></div>