fix - pos free products
This commit is contained in:
@@ -106,7 +106,7 @@ class POSFreeProductsViewSet(SoftDeleteMixin, viewsets.ModelViewSet, DynamicSear
|
|||||||
request.data.update({
|
request.data.update({
|
||||||
'organization': organization.id,
|
'organization': organization.id,
|
||||||
'device': device.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})
|
serializer = product_serializers.POSFreeProductSerializer(data=request.data, context={'device': device})
|
||||||
|
|||||||
Reference in New Issue
Block a user