Hi all,
This is what I am using to short my order items on the invoice.
"""
{% with order.orderitem_set.all|dictsort:"product.sku" as allorder %}
{% for item in allorder %}
<tr>
<td>{{ item.product.sku }}</td>
<td><para>{{ item.product.name|fix_ampersands }}</para></td>
<td>{{ item.product.cproduct.binlocation }} </td>
<td>{{ item.quantity|floatformat:0 }}</td>
<td>{{ item.unit_price|currency }}</td>
<td>{{ item.sub_total|currency }} </td>
</tr>
{% endfor %}
{% endwith %}
"""
Is there a better/cleaner way to do it?
Trying to clean out my code and making it as optimal as possiable.
Thank you
lzantal
--
You received this message because you are subscribed to the Google Groups
"Satchmo users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/satchmo-users?hl=en.