Erpnext: UnboundLocalError: local variable 'e' referenced before assignment in New POS-v13.0.0-beta.4

Created on 9 Aug 2020  路  12Comments  路  Source: frappe/erpnext

image

  • Happens when buttons Complete Order or Save as Draft are clicked.

  • Also, when you go to pas orders, it's not obvious how to go back to the cart/or origin location in the cart.

  • In addition, other than searching on the global search, there's no menu item/link to the new POS.

bug

All 12 comments

Could not replicate this issue, can you please recheck?

True. It seems it's specific to a site, just tested on another site, and all works well.

Experienced this on printing though.

When print from the POS final window.
image

When you open the PS invoices list, and print from there
image

today, i'm also facing the same issue...anyone help me out to fix this issue.

Could not replicate this issue, can you please recheck?

how can be solve this issue?

Having the same issue, did you find any ways to resolve it?

No solution yet, it's a special case though, since this error was in one site, but in another site, the POS works fine.
Will look into the site with the error for the exact/probable cause.

I have the same problem. Please if someone could solve it?

image

  • Happens when buttons Complete Order or Save as Draft are clicked.
  • Also, when you go to pas orders, it's not obvious how to go back to the cart/or origin location in the cart.
  • In addition, other than searching on the global search, there's no menu item/link to the new POS.

I resolved the error message. In sales configuration put the check of "Allow to add the item several times in a transaction"

I resolved the error message. In sales configuration put the check of "Allow to add the item several times in a transaction"

@muchai Can you open up Javascript console (Ctrl + Shift + i or Cmd + Option + i) and send a screen shot when the error pops up?

@nextchamp-saqib
Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)
desk.min.js:1 Traceback (most recent call last):
File "/home/frappe/frappe-bench/apps/frappe/frappe/desk/form/save.py", line 19, in savedocs
doc.submit()
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 901, in submit
self._submit()
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 890, in _submit
self.save()
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 285, in save
return self._save(args, *kwargs)
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 307, in _save
self.insert()
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 238, in insert
self.run_before_save_methods()
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 934, in run_before_save_methods
self.run_method("validate")
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 831, in run_method
out = Document.hook(fn)(self, args, *kwargs)
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 1116, in composer
return composed(self, method, args, *kwargs)
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 1099, in runner
add_to_return_value(self, fn(self, args, *kwargs))
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 825, in
fn = lambda self, args, *kwargs: getattr(self, method)(args, *kwargs)
File "/home/frappe/frappe-bench/apps/erpnext/erpnext/accounts/doctype/pos_invoice/pos_invoice.py", line 29, in validate
super(SalesInvoice, self).validate()
File "/home/frappe/frappe-bench/apps/erpnext/erpnext/controllers/selling_controller.py", line 49, in validate
self.validate_for_duplicate_items()
File "/home/frappe/frappe-bench/apps/erpnext/erpnext/controllers/selling_controller.py", line 416, in validate_for_duplicate_items
if e in check_list:
UnboundLocalError: local variable 'e' referenced before assignment

DevTools failed to load SourceMap: Could not load content for webpack://Quill/node_modules/quill-delta/dist/Delta.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME
DevTools failed to load SourceMap: Could not load content for webpack://Quill/node_modules/quill-delta/dist/AttributeMap.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME
DevTools failed to load SourceMap: Could not load content for webpack://Quill/node_modules/quill-delta/dist/Op.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME
DevTools failed to load SourceMap: Could not load content for webpack://Quill/node_modules/quill-delta/dist/Iterator.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME
DevTools failed to load SourceMap: Could not load content for webpack://Quill/node_modules/quill-delta/dist/Delta.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME
DevTools failed to load SourceMap: Could not load content for webpack://Quill/node_modules/quill-delta/dist/AttributeMap.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME
DevTools failed to load SourceMap: Could not load content for webpack://Quill/node_modules/quill-delta/dist/Op.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME
DevTools failed to load SourceMap: Could not load content for webpack://Quill/node_modules/quill-delta/dist/Iterator.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME
DevTools failed to load SourceMap: Could not load content for https://mazao.navari.co.ke/assets/js/awesomplete.min.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE

Fixed with #23896

Was this page helpful?
0 / 5 - 0 ratings

Related issues

GSLabIt picture GSLabIt  路  4Comments

rmehta picture rmehta  路  3Comments

mubeenmazhar picture mubeenmazhar  路  4Comments

giuseppelamatrice picture giuseppelamatrice  路  3Comments

setsero71 picture setsero71  路  3Comments