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,9 +245,12 @@ class CagetteReception(models.Model):
if done == len(res):
result = 'processed'
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'
else:
if getattr(settings, 'RECEPTION_SHELF_LABEL_PRINT', False) is True:
self.print_shelf_labels_for_updated_prices(price_update['lines'])
else:
result = False
except Exception as e:
......
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