From 03fdd22b8ca5534fbf284dad2c2dd0293ceddd98 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Sun, 4 Jan 2026 17:58:20 +0800 Subject: [PATCH] bugfix --- accounting/consume.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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()