feat: add project requisites and agreement cancellation
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user