From c14cf3022c76605de6f165675405f1cd3e7d7b08 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Thu, 21 Nov 2019 17:41:26 -0600 Subject: [PATCH] Allow update of row unit cost directly from receiving batch view --- tailbone/templates/receiving/view.mako | 129 ++++++++++++++++++++++++- tailbone/views/batch/core.py | 5 +- tailbone/views/master.py | 2 +- tailbone/views/purchasing/receiving.py | 65 +++++++++++++ 4 files changed, 196 insertions(+), 5 deletions(-) diff --git a/tailbone/templates/receiving/view.mako b/tailbone/templates/receiving/view.mako index 62c0d6cc..72758aae 100644 --- a/tailbone/templates/receiving/view.mako +++ b/tailbone/templates/receiving/view.mako @@ -3,11 +3,120 @@ <%def name="extra_javascript()"> ${parent.extra_javascript()} - % if request.has_perm('{}.edit_row'.format(permission_prefix)): + % if master.has_perm('edit_row'): + ${h.javascript_link(request.static_url('tailbone:static/js/numeric.js'))}