fix
This commit is contained in:
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user