This commit is contained in:
behruz-dev
2025-10-31 23:01:22 +05:00
parent ed9e02d25c
commit b5e87151cf
3 changed files with 3 additions and 5 deletions

View File

@@ -114,7 +114,7 @@ class IncomeCreateSerializer(serializers.ModelSerializer):
with transaction.atomic():
# Exchange rate va final price hisoblash
exchange_rate = validated_data.get("exchange_rate") or 1
final_price = validated_data.get("price") * exchange_rate
final_price = validated_data.get("price")
income = Income.objects.create(
user=self.context.get("user"),