Some tweaks to ordering batch views

This commit is contained in:
Lance Edgar 2017-08-02 13:18:05 -05:00
parent 65c63dad3e
commit 961249722f

View file

@ -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))