Commit 080b68ae by Yvon Kerdoncuff

when configured to do so, print shelf labels

parent 1b5367c3
Pipeline #3829 failed with stage
in 1 minute 0 seconds
...@@ -245,8 +245,11 @@ class CagetteReception(models.Model): ...@@ -245,8 +245,11 @@ class CagetteReception(models.Model):
if done == len(res): if done == len(res):
result = 'processed' result = 'processed'
price_update = self.update_products_price_v12() price_update = self.update_products_price_v12()
if price_update and price_update['success'] is False: if price_update['success'] is False:
result = 'error: price update' result = 'error: price update'
else:
if getattr(settings, 'RECEPTION_SHELF_LABEL_PRINT', False) is True:
self.print_shelf_labels_for_updated_prices(price_update['lines'])
else: else:
result = False result = False
......
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