Hello all,
when i submit sales invoice it shows "Cost Center must be specified for PL Account: Sales - APRDP"
Thanks and Regards
Madhan.
java console output
when i submit sales invoice it shows "Cost Center must be specified for PL Account: Sales - APRDP"
Thanks and Regards
Madhan.
java console output
Starting up... all-app.min.js:2257
Traceback (innermost last):
File "../lib/webnotes/widgets/form/save.py", line 17, in savedocs
getattr(wrapper, action.lower())()
File "../lib/webnotes/model/bean.py", line 348, in submit
self.run_method('on_submit')
File "../lib/webnotes/model/bean.py", line 229, in run_method
getattr(self.controller, method)(*args, **kwargs)
File "../app/accounts/doctype/sales_invoice/sales_invoice.py", line 97, in on_submit
self.make_gl_entries()
File "../app/accounts/doctype/sales_invoice/sales_invoice.py", line 556, in make_gl_entries
update_outstanding=update_outstanding, merge_entries=False)
File "../app/accounts/general_ledger.py", line 19, in make_gl_entries
save_entries(gl_map, adv_adj, update_outstanding)
File "../app/accounts/general_ledger.py", line 68, in save_entries
make_entry(entry, adv_adj, update_outstanding)
File "../app/accounts/general_ledger.py", line 83, in make_entry
gle.insert()
File "../lib/webnotes/model/bean.py", line 289, in insert
return self.save()
File "../lib/webnotes/model/bean.py", line 328, in save
self.run_method('validate')
File "../lib/webnotes/model/bean.py", line 229, in run_method
getattr(self.controller, method)(*args, **kwargs)
File "../app/accounts/doctype/gl_entry/gl_entry.py", line 17, in validate
self.pl_must_have_cost_center()
File "../app/accounts/doctype/gl_entry/gl_entry.py", line 50, in pl_must_have_cost_center
self.doc.account)
File "../lib/webnotes/__init__.py", line 140, in throw
msgprint(msg, raise_exception=exc)
File "../lib/webnotes/__init__.py", line 137, in msgprint
_raise_exception()
File "../lib/webnotes/__init__.py", line 121, in _raise_exception
raise raise_exception, msg
ValidationError: Cost Center must be specified for PL Account: Sales - APRDP
all-app.min.js:241
Traceback (innermost last):
File "../lib/webnotes/handler.py", line 93, in handle
execute_cmd(cmd)
File "../lib/webnotes/handler.py", line 133, in execute_cmd
ret = call(method, webnotes.form_dict)
File "../lib/webnotes/handler.py", line 150, in call
return fn(**newargs)
File "../lib/webnotes/widgets/form/save.py", line 26, in savedocs
raise e
ValidationError: Cost Center must be specified for PL Account: Sales - APRDP
–
Note:
If you are posting an issue,
- We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
- Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
- For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
End of Note
—
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.