Revert "fixed indentation error"

This reverts commit 3c48be9e603d28cef50ce500c3bb7e0f026e399b.
This commit is contained in:
nabinhait 2011-06-22 14:28:13 +05:30
parent 7b825e46f5
commit 60ee199e74

View File

@ -22,9 +22,6 @@ class DocType:
self.doc, self.doclist = d,dl
def repost(self):
if not self.doc.company:
msgprint("Please select company", raise_exception=1)
if not in_transaction:
sql("start transaction")
@ -103,7 +100,9 @@ class DocType:
def post_entries(self):
sql("LOCK TABLE `tabGL Entry` WRITE")
# post each gl entry (batch or complete)
gle = sql("select name, account, debit, credit, is_opening, posting_date from `tabGL Entry` where fiscal_year=%s and ifnull(is_cancelled,'No')='No' and company=%s", (self.doc.name, self.doc.company))
gle = sql("select name, account, debit, credit, is_opening, posting_date from `tabGL Entry` where fiscal_year=%s and ifnull(is_cancelled,'No')='No' and company=%s
", (self.doc.name, self.doc.company))
account_details = {}
cnt = 0