fix: stock reco test case

This commit is contained in:
Rohit Waghchaure
2020-04-14 14:49:43 +05:30
parent 4eea8bd2c0
commit 5771aabc49

View File

@@ -240,6 +240,7 @@ def create_batch_or_serial_no_items():
def create_stock_reconciliation(**args):
args = frappe._dict(args)
sr = frappe.new_doc("Stock Reconciliation")
sr.purpose = args.purpose or "Stock Reconciliation"
sr.posting_date = args.posting_date or nowdate()
sr.posting_time = args.posting_time or nowtime()
sr.set_posting_time = 1