[shopping-cart] cart via Jinja WIP

This commit is contained in:
Rushabh Mehta
2015-09-16 18:52:52 +05:30
parent 156ce607e2
commit 3d76686b82
16 changed files with 208 additions and 138 deletions

View File

@@ -66,6 +66,9 @@ def post_process(doctype, data):
doc.status_percent += flt(doc.per_delivered)
doc.status_display.append(_("Delivered") if doc.per_delivered==100 else _("{0}% Delivered").format(doc.per_delivered))
if hasattr(doc, "set_indicator"):
doc.set_indicator()
doc.status_display = ", ".join(doc.status_display)
doc.items_preview = ", ".join([d.item_name for d in doc.items])
result.append(doc)