Skip to content

Commit f6d860c

Browse files
committedFeb 2, 2016
[fix] Delete GL Entries on Cancel
1 parent fd49deb commit f6d860c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎drop_ship/drop_ship/doctype/drop_ship_invoice/drop_ship_invoice.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,12 @@ def on_submit(self):
2323
self.make_gl()
2424

2525
def on_cancel(self):
26+
from erpnext.accounts.general_ledger import delete_gl_entries
2627
delete_gl_entries(voucher_type=self.doctype, voucher_no=self.name)
2728

2829
def make_gl(self):
29-
ac_ctl = AccountsController
3030
from erpnext.accounts.general_ledger import make_gl_entries
3131
gl_map = []
32-
get_gl_dict = ac_ctl.get_gl_dict
3332
accounts_list = self.get_account(self.company)
3433

3534
ia = accounts_list[0].account

0 commit comments

Comments
 (0)
Please sign in to comment.