From 54aa201650512e7c6710694b78f38f7b3efbe584 Mon Sep 17 00:00:00 2001 From: Anton Kamalov Date: Wed, 4 Dec 2024 22:22:53 +0300 Subject: [PATCH] =?UTF-8?q?=D0=90=D0=BA=D1=82=D1=83=D0=B0=D0=BB=D0=B8?= =?UTF-8?q?=D0=B7=D0=B0=D1=86=D0=B8=D1=8F=20=D1=86=D0=B5=D0=BD=D1=8B=20?= =?UTF-8?q?=D0=B2=20=D1=82=D1=80=D0=B8=D0=B3=D0=B3=D0=B5=D1=80=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App/Waybill/model.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/App/Waybill/model.py b/App/Waybill/model.py index 9a1c584..9d912d4 100644 --- a/App/Waybill/model.py +++ b/App/Waybill/model.py @@ -100,16 +100,9 @@ def transaction_order_model(user_id: int, current_date: date): order_id = cursor.lastrowid for key, value in waybill.items(): - _sql = sql_provider.get('good_price.sql', dict( - e_prod_id = int(key) - )) - cursor.execute(_sql) - result = cursor.fetchone() - price = result[0] - _sql = sql_provider.get('insert_order_line.sql', dict(e_order_id = order_id, - e_price = price, + e_price = 0, e_prod_id = int(key), e_amount = int(value))) cursor.execute(_sql)