This commit is contained in:
behruz-dev
2025-10-28 17:03:04 +05:00
parent fe543fad5a
commit 9efc8aef40
3 changed files with 11 additions and 5 deletions

View File

@@ -71,7 +71,10 @@ class ExpenceCreateSerializer(serializers.ModelSerializer):
expence.counterparty.total_debit += expence.price
expence.counterparty.save()
body = f"""{user.full_name} {expence.price} {expence.currency.upper()}... \n screen: /monitoring"""
notify_user(user=user, title="Tasdiqlang yoki rad eting", body=body)
data = {
"screen": "/monitoring"
}
notify_user(user=user, title="Tasdiqlang yoki rad eting", body=body, data=data)
cash_transaction.save()
payment_type.save()
return expence