From 961249722f8bfd5a7cb0618f5924c32a6cb1cf4d Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Wed, 2 Aug 2017 13:18:05 -0500 Subject: [PATCH] Some tweaks to ordering batch views --- tailbone/views/purchasing/ordering.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tailbone/views/purchasing/ordering.py b/tailbone/views/purchasing/ordering.py index 514fdb62..32db947a 100644 --- a/tailbone/views/purchasing/ordering.py +++ b/tailbone/views/purchasing/ordering.py @@ -246,7 +246,7 @@ class OrderingBatchView(PurchasingBatchView): def render_mobile_listitem(self, batch, i): return "({}) {} on {} for ${:0,.2f}".format(batch.id_str, batch.vendor, - batch.date_ordered, batch.po_total) + batch.date_ordered, batch.po_total or 0) def mobile_create(self): """ @@ -354,7 +354,7 @@ class OrderingBatchView(PurchasingBatchView): # ordering form config.add_tailbone_permission(permission_prefix, '{}.order_form'.format(permission_prefix), - "Edit new {} in Order Form mode".format(model_title)) + "Edit {} data as worksheet".format(model_title)) config.add_route('{}.order_form'.format(route_prefix), '{}/{{{}}}/order-form'.format(url_prefix, model_key)) config.add_view(cls, attr='order_form', route_name='{}.order_form'.format(route_prefix), permission='{}.order_form'.format(permission_prefix))