feat: add project requisites and agreement cancellation

This commit is contained in:
Александр Арсентьев
2026-09-30 16:42:02 +03:00
parent 3c8bbe8b4b
commit a2a01e24e6
21 changed files with 1828 additions and 12 deletions
+10
View File
@@ -489,6 +489,16 @@ def _import_entities(db: Session, payload: dict[str, Any]) -> Project:
start_date=_parse_date(src.get("start_date"), "start_date"),
end_date=_parse_date(src.get("end_date"), "end_date"),
status=src.get("status") or "active",
investor_name=src.get("investor_name"),
customer_name=src.get("customer_name") or src.get("customer"),
contractor_name=src.get("contractor_name"),
construction_name=src.get("construction_name"),
object_name=src.get("object_name"),
contract_amount=_parse_decimal(src.get("contract_amount"), "contract_amount"),
contractor_signer_name=src.get("contractor_signer_name"),
contractor_signer_position=src.get("contractor_signer_position"),
customer_signer_name=src.get("customer_signer_name"),
customer_signer_position=src.get("customer_signer_position"),
)
db.add(project)
db.flush()