bugfix
This commit is contained in:
parent
d80b177adb
commit
9f99790d38
@ -64,7 +64,7 @@ async def set_promote_discount(request, params_kw):
|
||||
customerid, biz_date, recs[0].discount)
|
||||
if not need_new_discount:
|
||||
return
|
||||
await sor.C('discount', {
|
||||
ret = {
|
||||
'id': getID(),
|
||||
'resellerid': recs[0].resellerid,
|
||||
'customerid': customerid,
|
||||
@ -72,6 +72,9 @@ async def set_promote_discount(request, params_kw):
|
||||
'enabled_date': enabled_date,
|
||||
'expired_date': expired_date
|
||||
}
|
||||
await sor.C('discount', ret.copy())
|
||||
return ret
|
||||
return None
|
||||
|
||||
async def disable_old_discount(sor, resellerid, customerid, biz_date, new_discount):
|
||||
sql = """select * from discount
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user