mirror of
https://github.com/wasrusgen/wasrusgen1-crm.git
synced 2026-06-03 15:04:47 +00:00
fix(backend): whitelist stage_prices + complexity в /api/project/crm — смета теперь персистится
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
a621f301ce
commit
b965d689d8
@ -645,7 +645,7 @@ def update_crm():
|
||||
"pipeline": "lead", "deal_amount": 0, "paid_amount": 0,
|
||||
"contact": "", "source": "", "note": "", "payments": [], "billing_type": "paid"
|
||||
}
|
||||
for k in ("pipeline", "deal_amount", "paid_amount", "contact", "source", "note", "payments", "billing_type", "payment_schedule", "stage_payments"):
|
||||
for k in ("pipeline", "deal_amount", "paid_amount", "contact", "source", "note", "payments", "billing_type", "payment_schedule", "stage_payments", "stage_prices", "complexity"):
|
||||
if k in data: crm[k] = data[k]
|
||||
# paid_amount = сумма платежей (если есть реестр)
|
||||
if "payments" in crm and isinstance(crm["payments"], list):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user