I saw some kind of mentioning regarding Journal Voucher, I didn't key anything about JV.
Error log.
Traceback (innermost last):
File "lib/webnotes/widgets/form/save.py", line 18, in savedocs
getattr(wrapper, action.lower())()
File "lib/webnotes/model/bean.py", line 321, in submit
self.run_method('on_submit')
File "lib/webnotes/model/bean.py", line 239, in run_method
getattr(self.controller, method)(*args, **kwargs)
File "app/stock/doctype/delivery_note/delivery_note.py", line 163, in on_submit
self.make_gl_entries()
File "app/controllers/stock_controller.py", line 23, in make_gl_entries
make_gl_entries(gl_entries)
File "app/accounts/general_ledger.py", line 18, in make_gl_entries
save_entries(gl_map, adv_adj, update_outstanding)
File "app/accounts/general_ledger.py", line 63, in save_entries
validate_account_for_auto_accounting_for_stock(gl_map)
File "app/accounts/general_ledger.py", line 92, in validate_account_for_auto_accounting_for_stock
if gl_map[0].voucher_type=="Journal Voucher":
IndexError: list index out of range
Traceback (innermost last):
File "lib/webnotes/handler.py", line 78, in handle
execute_cmd(cmd)
File "lib/webnotes/handler.py", line 118, in execute_cmd
ret = call(method, webnotes.form_dict)
File "lib/webnotes/handler.py", line 140, in call
return fn(**newargs)
File "lib/webnotes/widgets/form/save.py", line 18, in savedocs
getattr(wrapper, action.lower())()
File "lib/webnotes/model/bean.py", line 321, in submit
self.run_method('on_submit')
File "lib/webnotes/model/bean.py", line 239, in run_method
getattr(self.controller, method)(*args, **kwargs)
File "app/stock/doctype/delivery_note/delivery_note.py", line 163, in on_submit
self.make_gl_entries()
File "app/controllers/stock_controller.py", line 23, in make_gl_entries
make_gl_entries(gl_entries)
File "app/accounts/general_ledger.py", line 18, in make_gl_entries
save_entries(gl_map, adv_adj, update_outstanding)
File "app/accounts/general_ledger.py", line 63, in save_entries
validate_account_for_auto_accounting_for_stock(gl_map)
File "app/accounts/general_ledger.py", line 92, in validate_account_for_auto_accounting_for_stock
if gl_map[0].voucher_type=="Journal Voucher":
IndexError: list index out of range