diff --git a/accounting/consume.py b/accounting/consume.py index 8096cc0..26b7716 100644 --- a/accounting/consume.py +++ b/accounting/consume.py @@ -12,6 +12,22 @@ from .accountingnode import get_accounting_nodes from .excep import * from .getaccount import getAccountByName +class SaleInfo: + def __init__(self, customerid, resellerid, amount): + self.customerid = customerid + self.resellerid = resellerid + self.amount = amount + self.base_action = 'PAY' + +class CostInfo: + def __init__(self, providerid, resellerid, amount): + self.providerid = providerid + self.resellerid = resellerid + self.amount = amount + +class CostBiz(PFBiz): + def __init__(self, providerid, resellerid, amount): + self.provider = class ConsumeBiz(PFBiz): def __init__(self, od): self.db = DBPools()