def esr(self): return Esr(amount=self.sum(), reference=self.referencenumber, account=Current.instance().tenant.esr_account)
def referencenumber(self): return str( "%s0%s" % (Current.instance().tenant.esr_reference_prefix, self.id) )