fix - pos free products

This commit is contained in:
2025-11-11 11:13:12 +03:30
parent 148697c59d
commit 4f8705b633

View File

@@ -106,7 +106,7 @@ class POSFreeProductsViewSet(SoftDeleteMixin, viewsets.ModelViewSet, DynamicSear
request.data.update({
'organization': organization.id,
'device': device.id,
'company_fee': product_models.Broker.objects.get(organization=organization).company_fee,
'company_fee': product_models.Broker.objects.get(name='شرکت').fix_broker_price, # noqa
})
serializer = product_serializers.POSFreeProductSerializer(data=request.data, context={'device': device})