Beispiel #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
Beispiel #2
0
    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
Beispiel #3
0
 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
Beispiel #4
0
 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