@adnan i tried that but i got this error
Home-Tooracart - Server Error
Traceback (most recent call last):
File “/home/frappe/benches/bench-2017-12-27/apps/frappe/frappe/app.py”, line 67, in application
response = frappe.api.handle()
File “/home/frappe/benches/bench-2017-12-27/apps/frappe/frappe/api.py”, line 119, in handle
“data”: frappe.get_doc(data).insert().as_dict()
File “/home/frappe/benches/bench-2017-12-27/apps/frappe/frappe/model/document.py”, line 245, in insert
self.run_post_save_methods()
File “/home/frappe/benches/bench-2017-12-27/apps/frappe/frappe/model/document.py”, line 890, in run_post_save_methods
self.run_method(“on_submit”)
File “/home/frappe/benches/bench-2017-12-27/apps/frappe/frappe/model/document.py”, line 755, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
File “/home/frappe/benches/bench-2017-12-27/apps/frappe/frappe/model/document.py”, line 1024, in composer
return composed(self, method, *args, **kwargs)
File “/home/frappe/benches/bench-2017-12-27/apps/frappe/frappe/model/document.py”, line 1007, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File “/home/frappe/benches/bench-2017-12-27/apps/frappe/frappe/model/document.py”, line 749, in
fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
File “/home/frappe/benches/bench-2017-12-27/apps/erpnext/erpnext/accounts/doctype/sales_invoice/sales_invoice.py”, line 132, in on_submit
self.make_gl_entries()
File “/home/frappe/benches/bench-2017-12-27/apps/erpnext/erpnext/accounts/doctype/sales_invoice/sales_invoice.py”, line 610, in make_gl_entries
update_gl_entries_after(self.posting_date, self.posting_time, warehouses, items)
File “/home/frappe/benches/bench-2017-12-27/apps/erpnext/erpnext/controllers/stock_controller.py”, line 354, in update_gl_entries_after
voucher_obj.make_gl_entries(gl_entries=expected_gle, repost_future_gle=False, from_repost=True)
File “/home/frappe/benches/bench-2017-12-27/apps/erpnext/erpnext/accounts/doctype/sales_invoice/sales_invoice.py”, line 600, in make_gl_entries
update_outstanding=update_outstanding, merge_entries=False)
File “/home/frappe/benches/bench-2017-12-27/apps/erpnext/erpnext/accounts/general_ledger.py”, line 19, in make_gl_entries
save_entries(gl_map, adv_adj, update_outstanding, from_repost)
File “/home/frappe/benches/bench-2017-12-27/apps/erpnext/erpnext/accounts/general_ledger.py”, line 88, in save_entries
make_entry(entry, adv_adj, update_outstanding, from_repost)
File “/home/frappe/benches/bench-2017-12-27/apps/erpnext/erpnext/accounts/general_ledger.py”, line 99, in make_entry
gle.insert()
File “/home/frappe/benches/bench-2017-12-27/apps/frappe/frappe/model/document.py”, line 218, in insert
self.run_before_save_methods()
File “/home/frappe/benches/bench-2017-12-27/apps/frappe/frappe/model/document.py”, line 859, in run_before_save_methods
self.run_method(“validate”)
File “/home/frappe/benches/bench-2017-12-27/apps/frappe/frappe/model/document.py”, line 755, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
File “/home/frappe/benches/bench-2017-12-27/apps/frappe/frappe/model/document.py”, line 1024, in composer
return composed(self, method, *args, **kwargs)
File “/home/frappe/benches/bench-2017-12-27/apps/frappe/frappe/model/document.py”, line 1007, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File “/home/frappe/benches/bench-2017-12-27/apps/frappe/frappe/model/document.py”, line 749, in
fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
File “/home/frappe/benches/bench-2017-12-27/apps/erpnext/erpnext/accounts/doctype/gl_entry/gl_entry.py”, line 19, in validate
self.check_mandatory()
File “/home/frappe/benches/bench-2017-12-27/apps/erpnext/erpnext/accounts/doctype/gl_entry/gl_entry.py”, line 62, in check_mandatory
.format(self.voucher_type, self.voucher_no, self.account))
File “/home/frappe/benches/bench-2017-12-27/apps/frappe/frappe/init.py”, line 323, in throw
msgprint(msg, raise_exception=exc, title=title, indicator=‘red’)
File “/home/frappe/benches/bench-2017-12-27/apps/frappe/frappe/init.py”, line 309, in msgprint
_raise_exception()
File “/home/frappe/benches/bench-2017-12-27/apps/frappe/frappe/init.py”, line 282, in _raise_exception
raise raise_exception(encode(msg))
ValidationError: Sales Invoice SINV-TA00165: Either debit or credit amount is required for Debtors-Retail - TA