This commit is contained in:
yumoqing 2026-03-25 15:14:49 +08:00
parent efeabe68a9
commit 2f729cc384

View File

@ -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,