From 2f729cc384d6bde1a6495a17ce0f7fa17acc2879 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 25 Mar 2026 15:14:49 +0800 Subject: [PATCH] bugfix --- pricing/pricing.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pricing/pricing.py b/pricing/pricing.py index 25817d1..805bf6e 100644 --- a/pricing/pricing.py +++ b/pricing/pricing.py @@ -354,7 +354,7 @@ where a.id = b.ppid times = 1 unit = 1 for k,spec_value in p.items(): - if k == 'price': + if k in ['price', 'formula']: continue f = d.fields.get(k) if not f: @@ -384,6 +384,7 @@ where a.id = b.ppid np = p.copy() times = float(times) unit = float(unit) + formula = p.formula or d.formula if formula: ns = { 'price': p.price,