mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
pashub trigger true if design complete and pashub link set 🟩
This commit is contained in:
parent
832bcd96e4
commit
0dfd3f5238
1 changed files with 14 additions and 1 deletions
|
|
@ -15,11 +15,14 @@ class HubspotDealDiffer:
|
|||
Case 3: Design is completed (and PasHub Link is populated)
|
||||
Case 4: Lodgement is completed (and PasHub Link is populated)
|
||||
"""
|
||||
new_pashub_link: str = new_deal.get("pashub_link", "")
|
||||
COORDINATION_COMPLETE: List[str] = [
|
||||
"v1 ioe/mtp complete",
|
||||
"v2 ioe/mtp complete",
|
||||
]
|
||||
RETROFIT_DESIGN_COMPLETE = "uploaded"
|
||||
|
||||
new_pashub_link: str = new_deal.get("pashub_link", "")
|
||||
|
||||
# Case 1
|
||||
if not new_pashub_link:
|
||||
return False
|
||||
|
|
@ -40,6 +43,16 @@ class HubspotDealDiffer:
|
|||
):
|
||||
return True
|
||||
|
||||
# Case 3
|
||||
new_design_status: str = new_deal.get("design_status", "")
|
||||
|
||||
if (
|
||||
new_design_status
|
||||
and new_design_status == RETROFIT_DESIGN_COMPLETE
|
||||
and new_design_status != old_deal.design_status
|
||||
):
|
||||
return True
|
||||
|
||||
raise NotImplementedError
|
||||
|
||||
@staticmethod
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue