Skip to content

Commit 2038bbf

Browse files
committed
- updated email templates with name variable for ProductUnit
- updated migration version for the application to load the new templates
1 parent 536043b commit 2038bbf

19 files changed

Lines changed: 19 additions & 19 deletions

src/Marello/Bundle/InvoiceBundle/Migrations/Data/ORM/UpdateEmailTemplates.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,6 @@ public function getEmailsDir()
4343
*/
4444
public function getVersion()
4545
{
46-
return '1.1';
46+
return '1.2';
4747
}
4848
}

src/Marello/Bundle/InvoiceBundle/Migrations/Data/ORM/data/email_templates/marello_send_invoice.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@
512512
{{ item.quantity }}
513513
</td>
514514
<td class="item-info" style="border-top: 1px solid #d6d7d7; font-family: Roboto Condensed, Arial Narrow, Arial, sans-serif; padding: 10px 8px; font-size:13px; font-weight: 300;">
515-
{{ item.productUnit|marello_format_product_unit }}
515+
{{ item.productUnit.name }}
516516
</td>
517517
<td class="item-info" style="border-top: 1px solid #d6d7d7; font-family: Roboto Condensed, Arial Narrow, Arial, sans-serif; padding: 10px 8px; font-size:13px; text-align:right; font-weight: 300;">
518518
{{ item.price|oro_format_currency({'currency': entity.currency}) }}

src/Marello/Bundle/OrderBundle/Migrations/Data/ORM/UpdateEmailTemplatesProductUnit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,6 @@ public function getEmailsDir()
4343
*/
4444
public function getVersion()
4545
{
46-
return '1.5';
46+
return '1.6';
4747
}
4848
}

src/Marello/Bundle/OrderBundle/Migrations/Data/ORM/data/emails/marello_order_accepted_confirmation.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@
538538
{{ item.quantity }}
539539
</td>
540540
<td class="item-info" style="border-top: 1px solid #d6d7d7; font-family: Roboto Condensed, Arial Narrow, Arial, sans-serif; padding: 10px 8px; font-size:13px; font-weight: 300;">
541-
{{ item.productUnit|marello_format_product_unit }}
541+
{{ item.productUnit.name }}
542542
</td>
543543
<td class="item-info" style="border-top: 1px solid #d6d7d7; font-family: Roboto Condensed, Arial Narrow, Arial, sans-serif; padding: 10px 8px; font-size:13px; text-align:right; font-weight: 300;">
544544
{{ item.price|oro_format_currency({'currency': entity.currency}) }}

src/Marello/Bundle/OrderBundle/Migrations/Data/ORM/data/emails/marello_order_cancelled.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@
512512
{{ item.quantity }}
513513
</td>
514514
<td class="item-info" style="border-top: 1px solid #d6d7d7; font-family: Roboto Condensed, Arial Narrow, Arial, sans-serif; padding: 10px 8px; font-size:13px; font-weight: 300;">
515-
{{ item.productUnit|marello_format_product_unit }}
515+
{{ item.productUnit.name }}
516516
</td>
517517
<td class="item-info" style="border-top: 1px solid #d6d7d7; font-family: Roboto Condensed, Arial Narrow, Arial, sans-serif; padding: 10px 8px; font-size:13px; text-align:right; font-weight: 300;">
518518
{{ item.price|oro_format_currency({'currency': entity.currency}) }}

src/Marello/Bundle/OrderBundle/Migrations/Data/ORM/data/emails/marello_order_credited.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@
512512
{{ item.quantity }}
513513
</td>
514514
<td class="item-info" style="border-top: 1px solid #d6d7d7; font-family: Roboto Condensed, Arial Narrow, Arial, sans-serif; padding: 10px 8px; font-size:13px; font-weight: 300;">
515-
{{ item.productUnit|marello_format_product_unit }}
515+
{{ item.productUnit.name }}
516516
</td>
517517
<td class="item-info" style="border-top: 1px solid #d6d7d7; font-family: Roboto Condensed, Arial Narrow, Arial, sans-serif; padding: 10px 8px; font-size:13px; text-align:right; font-weight: 300;">
518518
{{ item.price|oro_format_currency({'currency': entity.currency}) }}

src/Marello/Bundle/OrderBundle/Migrations/Data/ORM/data/emails/marello_order_invoiced.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@
512512
{{ item.quantity }}
513513
</td>
514514
<td class="item-info" style="border-top: 1px solid #d6d7d7; font-family: Roboto Condensed, Arial Narrow, Arial, sans-serif; padding: 10px 8px; font-size:13px; font-weight: 300;">
515-
{{ item.productUnit|marello_format_product_unit }}
515+
{{ item.productUnit.name }}
516516
</td>
517517
<td class="item-info" style="border-top: 1px solid #d6d7d7; font-family: Roboto Condensed, Arial Narrow, Arial, sans-serif; padding: 10px 8px; font-size:13px; text-align:right; font-weight: 300;">
518518
{{ item.price|oro_format_currency({'currency': entity.currency}) }}

src/Marello/Bundle/OrderBundle/Migrations/Data/ORM/data/emails/marello_order_paid.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@
512512
{{ item.quantity }}
513513
</td>
514514
<td class="item-info" style="border-top: 1px solid #d6d7d7; font-family: Roboto Condensed, Arial Narrow, Arial, sans-serif; padding: 10px 8px; font-size:13px; font-weight: 300;">
515-
{{ item.productUnit|marello_format_product_unit }}
515+
{{ item.productUnit.name }}
516516
</td>
517517
<td class="item-info" style="border-top: 1px solid #d6d7d7; font-family: Roboto Condensed, Arial Narrow, Arial, sans-serif; padding: 10px 8px; font-size:13px; text-align:right; font-weight: 300;">
518518
{{ item.price|oro_format_currency({'currency': entity.currency}) }}

src/Marello/Bundle/OrderBundle/Migrations/Data/ORM/data/emails/marello_order_payment_reminder.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@
541541
{{ item.quantity }}
542542
</td>
543543
<td class="item-info" style="border-top: 1px solid #d6d7d7; font-family: Roboto Condensed, Arial Narrow, Arial, sans-serif; padding: 10px 8px; font-size:13px; font-weight: 300;">
544-
{{ item.productUnit|marello_format_product_unit }}
544+
{{ item.productUnit.name }}
545545
</td>
546546
<td class="item-info" style="border-top: 1px solid #d6d7d7; font-family: Roboto Condensed, Arial Narrow, Arial, sans-serif; padding: 10px 8px; font-size:13px; text-align:right; font-weight: 300;">
547547
{{ item.price|oro_format_currency({'currency': entity.currency}) }}

src/Marello/Bundle/OrderBundle/Migrations/Data/ORM/data/emails/marello_order_shipped_confirmation.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@
528528
{{ item.quantity }}
529529
</td>
530530
<td class="item-info" style="border-top: 1px solid #d6d7d7; font-family: Roboto Condensed, Arial Narrow, Arial, sans-serif; padding: 10px 8px; font-size:13px; font-weight: 300;">
531-
{{ item.productUnit|marello_format_product_unit }}
531+
{{ item.productUnit.name }}
532532
</td>
533533
<td class="item-info" style="border-top: 1px solid #d6d7d7; font-family: Roboto Condensed, Arial Narrow, Arial, sans-serif; padding: 10px 8px; font-size:13px; text-align:right; font-weight: 300;">
534534
{{ item.price|oro_format_currency({'currency': entity.currency}) }}

0 commit comments

Comments
 (0)