Пример #1
0
 def acceptance_id(self):
     from applications.acceptance.service import AcceptanceService
     acc = AcceptanceService.get_by_invoice_id(self.id)
     return acc.id
Пример #2
0
    def is_acceptance(self):
        from applications.acceptance.service import AcceptanceService
        acc = AcceptanceService.get_by_invoice_id(self.id)

        return True if acc else False