Add feature demo for importing Square transactions to CORE-POS

also allow delete of CORE-POS transactions, for sake of demo
This commit is contained in:
Lance Edgar 2018-11-22 20:38:36 -06:00
parent e20a9b8123
commit b7512e0b31
4 changed files with 43 additions and 1 deletions

View file

@ -0,0 +1,11 @@
## -*- coding: utf-8; -*-
<%inherit file="/master/index.mako" />
<%def name="context_menu_items()">
${parent.context_menu_items()}
% if request.has_perm('{}.import_file'.format(permission_prefix)):
<li>${h.link_to("Import {} from Square CSV".format(model_title_plural), url('{}.import_square'.format(route_prefix)))}</li>
% endif
</%def>
${parent.body()}

View file

@ -97,7 +97,7 @@
</li>
% endif
% if request.has_any_perm('batch.handheld.list', 'batch.inventory.list'):
% if request.has_any_perm('batch.handheld.list', 'batch.inventory.list', 'batch.importer.list'):
<li>
<a>Batches</a>
<ul>
@ -107,6 +107,9 @@
% if request.has_perm('batch.inventory.list'):
<li>${h.link_to("Inventory", url('batch.inventory'))}</li>
% endif
% if request.has_perm('batch.importer.list'):
<li>${h.link_to("Import / Export", url('batch.importer'))}</li>
% endif
</ul>
</li>
% endif