Skip to content

Instantly share code, notes, and snippets.

@semasping
Created June 19, 2020 05:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save semasping/ce3e07419117db3160eb0ce13387f328 to your computer and use it in GitHub Desktop.
Save semasping/ce3e07419117db3160eb0ce13387f328 to your computer and use it in GitHub Desktop.
Calculation required! A new order has been added to the plan!
<div>
Name of order: <b>{{ order.name }}</b>
</div>
<div>Order date: <b>{{ order.processed_at }}</b></div>
<div>ETD: <b>{{ order.ready_at }}</b></div>
<br>
{% for product in products %}
<div>
Product: <b>{{ product.getFullInfo('en') }}</b>
<ul>
{% for art in arts %}
{% if art.product_id == product.id %}
<li>Color: <b>{{ art.color }}</b> quantity=<b>{{ art.pivot.quantity }} {{ product.measure }}</b></li>
{% endif %}
{% endfor %}
</ul>
</div>
{% endfor %}
<br>
<a href="{{ 'orders/id'|app }}/{{ order.id }}">View order in your dashboard</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment