first cut error fixes

This commit is contained in:
Nabin Hait
2013-01-09 15:23:05 +05:30
parent 902e8609e5
commit 26d46556a4
10 changed files with 35 additions and 48 deletions

View File

@@ -77,12 +77,11 @@ def get_previous_sle(args):
"sle": "name of reference Stock Ledger Entry"
}
"""
if not args.get("posting_date"):
args["posting_date"] = "1900-01-01"
if not args.get("posting_time"):
args["posting_time"] = "12:00"
if not args.get("posting_date"): args["posting_date"] = "1900-01-01"
if not args.get("posting_time"): args["posting_time"] = "12:00"
if not args.get("sle"): args["sle"] = ""
sle = sql("""
sle = webnotes.conn.sql("""
select * from `tabStock Ledger Entry`
where item_code = %(item_code)s
and warehouse = %(warehouse)s