finance: add user field to expence delete model

This commit is contained in:
behruz-dev
2025-11-11 15:24:39 +05:00
parent 0ffae42547
commit e35ff6bda7
7 changed files with 86 additions and 5 deletions

View File

@@ -127,7 +127,8 @@ class ExpenceDeleteApiView(generics.GenericAPIView):
DeletedExpence.objects.create(
expence=expence,
comment=comment
comment=comment,
user=request.user,
)
cash_transaction = expence.cash_transaction