Some tweaks to ordering batch views
This commit is contained in:
parent
65c63dad3e
commit
961249722f
|
@ -246,7 +246,7 @@ class OrderingBatchView(PurchasingBatchView):
|
||||||
|
|
||||||
def render_mobile_listitem(self, batch, i):
|
def render_mobile_listitem(self, batch, i):
|
||||||
return "({}) {} on {} for ${:0,.2f}".format(batch.id_str, batch.vendor,
|
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):
|
def mobile_create(self):
|
||||||
"""
|
"""
|
||||||
|
@ -354,7 +354,7 @@ class OrderingBatchView(PurchasingBatchView):
|
||||||
|
|
||||||
# ordering form
|
# ordering form
|
||||||
config.add_tailbone_permission(permission_prefix, '{}.order_form'.format(permission_prefix),
|
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_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),
|
config.add_view(cls, attr='order_form', route_name='{}.order_form'.format(route_prefix),
|
||||||
permission='{}.order_form'.format(permission_prefix))
|
permission='{}.order_form'.format(permission_prefix))
|
||||||
|
|
Loading…
Reference in a new issue