[Production Order] [minor] Cleanup

This commit is contained in:
Rushabh Mehta
2013-08-08 14:16:39 +05:30
parent 43d7de8cdc
commit 2c968cecf5
6 changed files with 51 additions and 29 deletions

View File

@@ -70,10 +70,15 @@ def run_manufacturing(current_date):
ppt.doc.purchase_request_for_warehouse = "Stores - WP"
ppt.run_method("get_open_sales_orders")
ppt.run_method("get_items_from_so")
ppt.run_method("get_items_from_so")
ppt.run_method("raise_production_order")
ppt.run_method("raise_purchase_request")
# submit production orders
for pro in webnotes.conn.get_values("Production Order", {"docstatus": 0}):
b = webnotes.bean("Production Order", pro[0])
b.doc.wip_warehouse = "Work in Progress - WP"
b.submit()
def make_quotation(current_date):
b = webnotes.bean([{
"creation": current_date,