bugfix
This commit is contained in:
parent
efeabe68a9
commit
2f729cc384
@ -354,7 +354,7 @@ where a.id = b.ppid
|
|||||||
times = 1
|
times = 1
|
||||||
unit = 1
|
unit = 1
|
||||||
for k,spec_value in p.items():
|
for k,spec_value in p.items():
|
||||||
if k == 'price':
|
if k in ['price', 'formula']:
|
||||||
continue
|
continue
|
||||||
f = d.fields.get(k)
|
f = d.fields.get(k)
|
||||||
if not f:
|
if not f:
|
||||||
@ -384,6 +384,7 @@ where a.id = b.ppid
|
|||||||
np = p.copy()
|
np = p.copy()
|
||||||
times = float(times)
|
times = float(times)
|
||||||
unit = float(unit)
|
unit = float(unit)
|
||||||
|
formula = p.formula or d.formula
|
||||||
if formula:
|
if formula:
|
||||||
ns = {
|
ns = {
|
||||||
'price': p.price,
|
'price': p.price,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user