feat(financial_adjust):add update project_price

This commit is contained in:
shahzeydyfah
2025-01-21 00:04:22 +03:30
parent d937b9599a
commit ced12fb014
2 changed files with 38 additions and 1 deletions
-1
View File
@@ -26,7 +26,6 @@ class FinancialStatusRepository(BaseRepository):
result = await super().update(_id, _update)
price = await use_collection(TaskEnv.CLN_PROJECT_PRICE_REPORT).find_one({'project_id': _update.project_id})
if price:
change = 0
_old = StatusFinancialModel(**_old_dic)
if 'amount' not in _old_dic and _update.amount:
change = _update.amount