Commit 18789343 by Félicie

Merge branch 'dev_cooperatic' into 3292-alert-message-barrecode

parents a6f73d2a 4f582f12
Pipeline #2256 passed with stage
in 1 minute 26 seconds
...@@ -351,6 +351,7 @@ def manage_regular_shifts(request): ...@@ -351,6 +351,7 @@ def manage_regular_shifts(request):
'open_on_sunday': getattr(settings, 'OPEN_ON_SUNDAY', False), 'open_on_sunday': getattr(settings, 'OPEN_ON_SUNDAY', False),
'show_ftop_button': getattr(settings, 'BDM_SHOW_FTOP_BUTTON', True), 'show_ftop_button': getattr(settings, 'BDM_SHOW_FTOP_BUTTON', True),
'has_committe_shift': committees_shift_id is not None, 'has_committe_shift': committees_shift_id is not None,
'committees_shift_id': committees_shift_id,
'ASSOCIATE_MEMBER_SHIFT' : getattr(settings, 'ASSOCIATE_MEMBER_SHIFT', '') 'ASSOCIATE_MEMBER_SHIFT' : getattr(settings, 'ASSOCIATE_MEMBER_SHIFT', '')
} }
return HttpResponse(template.render(context, request)) return HttpResponse(template.render(context, request))
......
...@@ -158,6 +158,9 @@ function select_product_from_bc(barcode) { ...@@ -158,6 +158,9 @@ function select_product_from_bc(barcode) {
qty = scannedProduct.qty; qty = scannedProduct.qty;
} }
} }
} else {
alert("Le code-barre " + barcode + " n'est pas reconnu comme un EAN13 valide.'");
return -1;
} }
if (editing_item === null) { if (editing_item === null) {
......
...@@ -95,7 +95,8 @@ ...@@ -95,7 +95,8 @@
var max_begin_hour = '{{max_begin_hour}}' var max_begin_hour = '{{max_begin_hour}}'
var couchdb_dbname = '{{db}}'; var couchdb_dbname = '{{db}}';
var couchdb_server = '{{couchdb_server}}' + couchdb_dbname; var couchdb_server = '{{couchdb_server}}' + couchdb_dbname;
var committees_shift_id = '{{ASSOCIATE_MEMBER_SHIFT}}'; var committees_shift_id = '{{committees_shift_id}}';
var ASSOCIATE_MEMBER_SHIFT = '{{ASSOCIATE_MEMBER_SHIFT}}';
</script> </script>
<script src='{% static "js/common.js" %}?v=1651853225'></script> <script src='{% static "js/common.js" %}?v=1651853225'></script>
<script src='{% static "js/all_common.js" %}?v=1651853225'></script> <script src='{% static "js/all_common.js" %}?v=1651853225'></script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment