some apis of pos
This commit is contained in:
@@ -53,8 +53,11 @@ class InventoryEntryViewSet(viewsets.ModelViewSet, DynamicSearchMixin):
|
||||
""" custom create of inventory entry """
|
||||
|
||||
# create inventory entry
|
||||
inventory_balance = request.data['weight']
|
||||
|
||||
request.data.update({
|
||||
'organization': (get_organization_by_user(request.user)).id
|
||||
'organization': (get_organization_by_user(request.user)).id,
|
||||
'balance': inventory_balance
|
||||
})
|
||||
serializer = self.serializer_class(data=request.data)
|
||||
if serializer.is_valid():
|
||||
|
||||
Reference in New Issue
Block a user