Merge branch 'master' of github.com:webnotes/erpnext into webshop

This commit is contained in:
Anand Doshi
2013-05-24 19:28:36 +05:30
5 changed files with 41 additions and 6 deletions

View File

@@ -408,4 +408,4 @@ class DocType(SellingController):
if gl_entries:
from accounts.general_ledger import make_gl_entries
make_gl_entries(gl_entries)
make_gl_entries(gl_entries, cancel=(self.doc.docstatus == 2))

View File

@@ -35,6 +35,9 @@ def update_entries_after(args, verbose=1):
"posting_time": "12:00"
}
"""
global _exceptions
_exceptions = []
previous_sle = get_sle_before_datetime(args)
qty_after_transaction = flt(previous_sle.get("qty_after_transaction"))