bugfix
This commit is contained in:
parent
d407b312cf
commit
5dec898ef5
@ -108,9 +108,13 @@ async def pricing_program_charging(sor, pricing_program_id, data):
|
||||
if spec.pricing_spec_mode == 'spec_amount':
|
||||
if item.spec_value:
|
||||
d = json.loads(item.spec_value)
|
||||
matchs = True
|
||||
for k,v in d.items():
|
||||
if v != item['k']:
|
||||
continue
|
||||
matchs = False
|
||||
break
|
||||
if not matchs:
|
||||
continue
|
||||
|
||||
cnt = data.get(spec.count_name, 1)
|
||||
if charge.pricing_unit is None or charge.pricing_unit < 1:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user