{#** * Copyright since 2007 PrestaShop SA and Contributors * PrestaShop is an International Registered Trademark & Property of PrestaShop SA * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is bundled with this package in the file LICENSE.md. * It is also available through the world-wide-web at this URL: * https://opensource.org/licenses/OSL-3.0 * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@prestashop.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to https://devdocs.prestashop.com/ for more information. * * @author PrestaShop SA and Contributors * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) *#}

{{ 'Payment'|trans({}, 'Admin.Global') }} ({{ orderForViewing.payments.payments|length }})

{% include '@PrestaShop/Admin/Sell/Order/Order/Blocks/View/payments_alert.html.twig' with { 'payments': orderForViewing.payments, 'linkedOrders': orderForViewing.linkedOrders } %} {% for payment in orderForViewing.payments.payments %} {% endfor %} {{ form_start(addOrderPaymentForm, {'action': path('admin_orders_add_payment', {'orderId': orderForViewing.id})}) }} {{ form_end(addOrderPaymentForm) }}
{{ 'Date'|trans({}, 'Admin.Global') }} {{ 'Payment method'|trans({}, 'Admin.Orderscustomers.Feature') }} {{ 'Transaction ID'|trans({}, 'Admin.Orderscustomers.Feature') }} {{ 'Amount'|trans({}, 'Admin.Global') }} {{ 'Invoice'|trans({}, 'Admin.Global') }} {{ 'Employee'|trans({}, 'Admin.Global') }}
{{ payment.date|date_format_full }} {{ payment.paymentMethod }} {{ payment.transactionId }} {{ payment.amount }} {% if payment.invoiceNumber %}{{ payment.invoiceNumber }}{% endif %} {% if payment.employeeName %}{{ payment.employeeName }}{% else %}-{% endif %}

{{ 'Card number'|trans({}, 'Admin.Orderscustomers.Feature') }} {% if payment.cardNumber %} {{ payment.cardNumber }} {% else %} {{ 'Not defined'|trans({}, 'Admin.Orderscustomers.Feature') }} {% endif %}

{{ 'Card type'|trans({}, 'Admin.Orderscustomers.Feature') }}  {% if payment.cardBrand %} {{ payment.cardBrand }} {% else %} {{ 'Not defined'|trans({}, 'Admin.Orderscustomers.Feature') }} {% endif %}

{{ 'Expiration date'|trans({}, 'Admin.Catalog.Feature') }}  {% if payment.cardExpiration %} {{ payment.cardExpiration }} {% else %} {{ 'Not defined'|trans({}, 'Admin.Orderscustomers.Feature') }} {% endif %}

{{ 'Cardholder name'|trans({}, 'Admin.Orderscustomers.Feature') }}  {% if payment.cardHolder %} {{ payment.cardHolder }} {% else %} {{ 'Not defined'|trans({}, 'Admin.Orderscustomers.Feature') }} {% endif %}

{{ form_widget(addOrderPaymentForm.date) }} {{ form_widget(addOrderPaymentForm.payment_method) }} {{ form_widget(addOrderPaymentForm.transaction_id) }} {{ form_widget(addOrderPaymentForm.amount_currency) }}
{{ form_widget(addOrderPaymentForm.id_invoice) }}
{% if not orderForViewing.valid and changeOrderCurrencyForm.new_currency_id.vars.choices|length %} {{ form_start(changeOrderCurrencyForm, {'action': path('admin_orders_change_currency', {'orderId': orderForViewing.id})}) }}
{{ form_widget(changeOrderCurrencyForm.new_currency_id) }}
{{ form_rest(changeOrderCurrencyForm) }}
{{ 'Do not forget to update your exchange rate before making this change.'|trans({}, 'Admin.Orderscustomers.Help') }}
{{ form_end(changeOrderCurrencyForm) }} {% endif %}