From 9eff4e32ac256e4a2faf5e29b42a91546f908e76 Mon Sep 17 00:00:00 2001 From: Dmitri Perunov Date: Thu, 5 Mar 2020 22:55:35 +0700 Subject: [PATCH] Minor restyle of order credit memo list ui --- README.md | 14 ++++---- .../views/Download/creditMemo.html.twig | 3 +- .../Order/Admin/CreditMemo/_header.html.twig | 5 ++- .../Order/Admin/CreditMemo/details.html.twig | 4 +-- .../Order/Admin/CreditMemo/list.html.twig | 35 ++++++++++--------- .../views/Order/Shop/_creditMemos.html.twig | 2 +- src/Resources/views/_header.html.twig | 2 +- .../Page/Admin/CreditMemoDetailsPage.php | 4 ++- 8 files changed, 36 insertions(+), 33 deletions(-) diff --git a/README.md b/README.md index 5ef375a9..af14df25 100644 --- a/README.md +++ b/README.md @@ -18,21 +18,21 @@ ## Business value -In contrast to basic Refund functionality delivered by core Sylius bundles, Refund Plugin offers much wider range of +In contrast to basic Refund functionality delivered by core Sylius bundles, Refund Plugin offers much wider range of possibilities and business scenarios. Once an Order is paid, an Administrator is able to access Refunds section of a given Order and perform a Refund of chosen items or shipments. What's more, if a more detailed scenario occurs, an Administrator is able to refund an item partially. -From Administrator's point of view, every Refund request results in creating two entities: +From Administrator's point of view, every Refund request results in creating two entities: * Credit Memo - a document representing a list of refunded items (downloadable and sent to Customer via .pdf file) * Refund Payment - entity representing payment in favour of the Customer ## Pre - requirements In order to be able to generate PDF files of refunds, [wkhtmltopdf](https://wkhtmltopdf.org/) must be installed. -It is used by `KnpSnappyBundle` and can be configured according to [their docummentation](https://github.com/KnpLabs/KnpSnappyBundle#configuration). +It is used by `KnpSnappyBundle` and can be configured according to [their docummentation](https://github.com/KnpLabs/KnpSnappyBundle#configuration). ## Installation @@ -41,7 +41,7 @@ It is used by `KnpSnappyBundle` and can be configured according to [their documm ```bash composer require sylius/refund-plugin ``` - + > Remember to allow community recipes with `composer config extra.symfony.allow-contrib true` or during plugin installation process 2. Copy plugin migrations to your migrations directory (e.g. `src/Migrations`) and apply them to your database: @@ -108,12 +108,12 @@ as shown below: stripe - ``` + ``` Online refund logic should be implemented if you need it. As the first try for the possible customization, you can check out `Sylius\RefundPlugin\Event\UnitsRefunded` event. - + ## Security issues -If you think that you have found a security issue, please do not use the issue tracker and do not post it publicly. +If you think that you have found a security issue, please do not use the issue tracker and do not post it publicly. Instead, all security issues must be sent to `security@sylius.com`. diff --git a/src/Resources/views/Download/creditMemo.html.twig b/src/Resources/views/Download/creditMemo.html.twig index 841b2449..5e9882c8 100644 --- a/src/Resources/views/Download/creditMemo.html.twig +++ b/src/Resources/views/Download/creditMemo.html.twig @@ -1,7 +1,7 @@ {% set to = creditMemo.to %} {% set from = creditMemo.from %} - +