From 210adad3f69217f0a29113611a9f859f370292b8 Mon Sep 17 00:00:00 2001 From: laurentbarontini Date: Mon, 26 Jan 2026 21:18:51 +0100 Subject: [PATCH] 26.01.26 --- modules/automation/automation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/automation/automation.py b/modules/automation/automation.py index 83b5f8c..d99065e 100644 --- a/modules/automation/automation.py +++ b/modules/automation/automation.py @@ -227,7 +227,7 @@ class AutomationDocument(ModelSQL, ModelView, Workflow): t.SELL_PREMIUM, t.SALE_CONTRACT_NUMBER, t.SALE_DECLARATION_KEY, - where=(t.BOOKING_NUMBER == int(sh[0].bl_number)) + where=(t.BOOKING_NUMBER == int(sh[0].reference)) ) logger.info("QUERY:%s",*query) cursor.execute(*query)