bugfix
This commit is contained in:
parent
93973733e0
commit
da598cd364
@ -5,6 +5,7 @@ from appPublic.registerfunction import rfexe
|
||||
from sqlor.dbpools import DBPools
|
||||
from ahserver.serverenv import get_serverenv
|
||||
from accounting.accounting_config import Accounting
|
||||
from accounting.bizaccount import BizAccounting
|
||||
|
||||
from accounting.bill import write_bill
|
||||
|
||||
@ -23,6 +24,23 @@ async def get_balance(orgid):
|
||||
class PlatformBizAcc:
|
||||
"""
|
||||
"""
|
||||
def build_accountset(self, sor, biz_order, biz_orderdetails):
|
||||
acconuntset = DictObject()
|
||||
accountset['action'] = biz_order.business_op
|
||||
accountset['平台'] = get_owner_orgid(sor, '0')
|
||||
accountset['分销商'] = biz_order.resellerid
|
||||
accountset['客户'] = biz_order.customerid
|
||||
accountset['交易金额'] = biz_order.amount
|
||||
transfee = await get_transfee(sor, self.resellerid, biz_order.amount, self.curdate)
|
||||
accountset['交易费用'] = transfee
|
||||
accountset.subsets = []
|
||||
for od in biz_orderdetails:
|
||||
actions = biz_order.business_op.split('_')
|
||||
actions[0] = actions[0] + '*'
|
||||
aset = DictObject()
|
||||
aset['action'] = '_'.join(actions)
|
||||
aset['分销商'] =
|
||||
|
||||
async def accounting(self, sor, biz_orderid):
|
||||
biz_order = await sor.R('biz_order', {'id':biz_orderid})
|
||||
details = await sor.R('biz_orderdetail',{'orderid':biz_orderid})
|
||||
|
Loading…
Reference in New Issue
Block a user