refactor: rename unit_price to pre_tax_unit_price in outbound service

Co-authored-by: aider (openai/DeepSeek-V3.2-Thinking) <aider@aider.chat>
This commit is contained in:
dxc
2026-02-27 16:43:30 +08:00
parent 89620b2445
commit 09a2af0b55

View File

@ -48,7 +48,7 @@ class OutboundService:
if table_type == 'stock_product': if table_type == 'stock_product':
return float(item.sale_price) if item.sale_price else 0 return float(item.sale_price) if item.sale_price else 0
elif table_type == 'stock_buy': 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 return 0
prod = StockProduct.query.filter( prod = StockProduct.query.filter(