Honor view logic when displaying Delete Row button for mobile receiving
also do not allow quick receive if receiving from scratch
This commit is contained in:
parent
f0d8f79676
commit
a6a7d22ec1
2 changed files with 23 additions and 3 deletions
|
@ -133,7 +133,7 @@
|
|||
${h.hidden('quick_receive', value='false')}
|
||||
${h.end_form()}
|
||||
|
||||
% if master.mobile_rows_deletable and request.has_perm('{}.delete_row'.format(permission_prefix)):
|
||||
% if master.mobile_rows_deletable and master.row_deletable(row) and request.has_perm('{}.delete_row'.format(permission_prefix)):
|
||||
${h.form(url('mobile.{}.delete_row'.format(route_prefix), uuid=batch.uuid, row_uuid=row.uuid), class_='receiving-update')}
|
||||
${h.csrf_token(request)}
|
||||
${h.submit('submit', "Delete this Row")}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue