From 09a2af0b555714358cc931cc22708e02423f841f Mon Sep 17 00:00:00 2001 From: dxc Date: Fri, 27 Feb 2026 16:43:30 +0800 Subject: [PATCH] refactor: rename unit_price to pre_tax_unit_price in outbound service Co-authored-by: aider (openai/DeepSeek-V3.2-Thinking) --- inventory-backend/app/services/outbound_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inventory-backend/app/services/outbound_service.py b/inventory-backend/app/services/outbound_service.py index eb65a1a..5da6ad6 100644 --- a/inventory-backend/app/services/outbound_service.py +++ b/inventory-backend/app/services/outbound_service.py @@ -48,7 +48,7 @@ class OutboundService: if table_type == 'stock_product': return float(item.sale_price) if item.sale_price else 0 elif table_type == 'stock_buy': - return float(item.unit_price) if item.unit_price else 0 + return float(item.pre_tax_unit_price) if item.pre_tax_unit_price else 0 return 0 prod = StockProduct.query.filter(