示例#1
0
 def __init__(self,
              budget=None,
              client=None,
              amount=0,
              unit=None,
              **kwargs):
     super(Invoice, self).__init__(**kwargs)
     AmountMixin.__init__(self, amount=amount)
     UnitMixin.__init__(self, unit=unit)
     self.budget = budget
     self.client = client
示例#2
0
文件: budget.py 项目: tws0002/stalker
    def __init__(self,
                 budget=None,
                 good=None,
                 price=0,
                 realized_total=0,
                 amount=0.0,
                 **kwargs):
        super(BudgetEntry, self).__init__(**kwargs)

        self.budget = budget
        self.good = good
        self.cost = good.cost
        self.msrp = good.msrp

        kwargs['unit'] = good.unit
        kwargs['amount'] = amount

        AmountMixin.__init__(self, **kwargs)
        UnitMixin.__init__(self, **kwargs)

        self.price = price
        self.realized_total = realized_total
示例#3
0
文件: budget.py 项目: tws0002/stalker
 def __init__(self, cost=0.0, msrp=0.0, unit='', **kwargs):
     super(Good, self).__init__(**kwargs)
     UnitMixin.__init__(self, unit=unit)
     self.cost = cost
     self.msrp = msrp
示例#4
0
文件: budget.py 项目: tws0002/stalker
 def __init__(self, invoice=None, amount=0, unit=None, **kwargs):
     super(Payment, self).__init__(**kwargs)
     AmountMixin.__init__(self, amount=amount)
     UnitMixin.__init__(self, unit=unit)
     self.invoice = invoice