mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
pashub trigger true if lodgement complete and pashub link set 🟩
This commit is contained in:
parent
0dfd3f5238
commit
9da0cabb0f
1 changed files with 12 additions and 1 deletions
|
|
@ -20,6 +20,7 @@ class HubspotDealDiffer:
|
|||
"v2 ioe/mtp complete",
|
||||
]
|
||||
RETROFIT_DESIGN_COMPLETE = "uploaded"
|
||||
LODGEMENT_COMPLETE: List[str] = ["lodgement complete", "measures lodged"]
|
||||
|
||||
new_pashub_link: str = new_deal.get("pashub_link", "")
|
||||
|
||||
|
|
@ -53,7 +54,17 @@ class HubspotDealDiffer:
|
|||
):
|
||||
return True
|
||||
|
||||
raise NotImplementedError
|
||||
# Case 4
|
||||
new_lodgement_status: str = new_deal.get("lodgement_status", "")
|
||||
|
||||
if (
|
||||
new_lodgement_status
|
||||
and new_lodgement_status in LODGEMENT_COMPLETE
|
||||
and new_lodgement_status != old_deal.lodgement_status
|
||||
):
|
||||
return True
|
||||
|
||||
return False
|
||||
|
||||
@staticmethod
|
||||
def check_for_db_update_trigger(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue