mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Translateable string fixeas
This commit is contained in:
parent
1ad91811a5
commit
1a85e4f21d
@ -188,21 +188,21 @@ class BarcodeAssign(APIView):
|
||||
|
||||
if plugin.getStockItem() is not None:
|
||||
match_found = True
|
||||
response['error'] = _('Barcode already matches StockItem object')
|
||||
response['error'] = _('Barcode already matches Stock Item')
|
||||
|
||||
if plugin.getStockLocation() is not None:
|
||||
match_found = True
|
||||
response['error'] = _('Barcode already matches StockLocation object')
|
||||
response['error'] = _('Barcode already matches Stock Location')
|
||||
|
||||
if plugin.getPart() is not None:
|
||||
match_found = True
|
||||
response['error'] = _('Barcode already matches Part object')
|
||||
response['error'] = _('Barcode already matches Part')
|
||||
|
||||
if not match_found:
|
||||
item = plugin.getStockItemByHash()
|
||||
|
||||
if item is not None:
|
||||
response['error'] = _('Barcode hash already matches StockItem object')
|
||||
response['error'] = _('Barcode hash already matches Stock Item')
|
||||
match_found = True
|
||||
|
||||
else:
|
||||
@ -214,7 +214,7 @@ class BarcodeAssign(APIView):
|
||||
# Lookup stock item by hash
|
||||
try:
|
||||
item = StockItem.objects.get(uid=hash)
|
||||
response['error'] = _('Barcode hash already matches StockItem object')
|
||||
response['error'] = _('Barcode hash already matches Stock Item')
|
||||
match_found = True
|
||||
except StockItem.DoesNotExist:
|
||||
pass
|
||||
|
Loading…
Reference in New Issue
Block a user