Only consider request financially verified if TO is from EDA
This commit is contained in:
parent
ccf1b3b5aa
commit
caf6882a11
@ -44,4 +44,6 @@ class Request(Base):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def is_financially_verified(self):
|
def is_financially_verified(self):
|
||||||
return self.task_order is not None
|
if self.task_order:
|
||||||
|
return self.task_order.verified
|
||||||
|
return False
|
||||||
|
@ -35,3 +35,7 @@ class TaskOrder(Base):
|
|||||||
|
|
||||||
attachment_id = Column(ForeignKey("attachments.id"))
|
attachment_id = Column(ForeignKey("attachments.id"))
|
||||||
pdf = relationship("Attachment")
|
pdf = relationship("Attachment")
|
||||||
|
|
||||||
|
@property
|
||||||
|
def verified(self):
|
||||||
|
return self.source == Source.EDA
|
||||||
|
Loading…
x
Reference in New Issue
Block a user