[journal voucher] [added opening entry] [cleanups]

This commit is contained in:
Rushabh Mehta
2013-07-01 09:36:03 +05:30
parent 03e9a4ea11
commit 8706ca9445
8 changed files with 63 additions and 21 deletions

View File

@@ -121,8 +121,6 @@ class DocType(DocListController):
self.doc.posting_time = '00:00'
def on_doctype_update(self):
webnotes.msgprint(webnotes.conn.sql("""show index from `tabStock Ledger Entry`
where Key_name="posting_sort_index" """))
if not webnotes.conn.sql("""show index from `tabStock Ledger Entry`
where Key_name="posting_sort_index" """):
webnotes.conn.commit()