bugfix
This commit is contained in:
parent
fb9c91839a
commit
8c0a074c33
@ -27,7 +27,7 @@ class PricingProgram:
|
||||
recs = await self.sor.R('pricing_spec', {'ptid': self.psid})
|
||||
return recs
|
||||
|
||||
asyn def get_spec_by_id(self, psid):
|
||||
async def get_spec_by_id(self, psid):
|
||||
recs = await self.sor.R('pricing_spec', {'id': psid})
|
||||
if len(recs) > 0:
|
||||
return recs[0]
|
||||
@ -60,7 +60,7 @@ async def pricing_program_charging(sor, pricing_program_id, data):
|
||||
charges = []
|
||||
for item in pp_items:
|
||||
charge = item.copy()
|
||||
spec = await pp.get_spec_by_psid(charge.psid)
|
||||
spec = await pp.get_spec_by_id(charge.psid)
|
||||
d = data.get(spec.spec_name)
|
||||
if d is None:
|
||||
continue
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user