45 lines
1.1 KiB
Python
45 lines
1.1 KiB
Python
from appPublic.registerfunction import RegisterFunction
|
|
|
|
def DBNAME():
|
|
rf = RegisterFunction()
|
|
f = rf.get('get_module_database')
|
|
if f is None:
|
|
e = Exception('function "get_module_database" not registed')
|
|
exception(f'{e}')
|
|
raise e
|
|
return f('accounting')
|
|
|
|
RESELLER_ORG = '1'
|
|
OWNER_OGR = '0'
|
|
CORP_CUSTOMER = '2'
|
|
PERSONAL = '3'
|
|
PROVIDER = '4'
|
|
|
|
PARTY_OWNER = '本机构'
|
|
PARTY_CUSTOMER = '客户'
|
|
PARTY_RESELLER = '分销商'
|
|
PARTY_PROVIDER = '供应商'
|
|
|
|
DEBT = '0'
|
|
CREDIT = '1'
|
|
|
|
ACTNAME_BUY = 'consume'
|
|
ACTNAME_RECHARGE = 'recharge'
|
|
ACTNAME_RECHARGE_ALIPAY = 'rechange_alipay'
|
|
ACTNAME_SETTLE = '结算'
|
|
|
|
SALEMODE_DISCOUNT = '折扣'
|
|
SALEMODE_REBATE = '代付费'
|
|
SALEMODE_FLOORPRICE = '底价'
|
|
|
|
ACTION_RECHARGE_ALIPAY = 'RECHARGE_ALIPAY'
|
|
ACTION_RECHARGE_ALIPAY_REVERSE = 'RECHARGE_ALIPAY_REVERSE'
|
|
ACTION_RECHARGE = 'RECHARGE'
|
|
ACTION_RECHARGE_REVERSE = 'RECHARGE_REVERSE'
|
|
ACTION_BUY = 'BUY'
|
|
ACTION_REVERSE_BUY = 'BUY_REVERSE'
|
|
ACTION_RENEW = 'RENEW'
|
|
ACTION_RENEW_REVERSE = 'RENEW_REVERSE'
|
|
ACTION_SETTLE = 'SETTLE'
|
|
ACTION_SETTLE_REVERSE = 'SETTLE_REVERSE'
|