mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-24 23:49:19 +00:00
Merge pull request #1853 from anandpdoshi/anand-wip
Material Request: fixed series issue in insert_purchase_request
This commit is contained in:
@@ -370,10 +370,8 @@ class ProductionPlanningTool(Document):
|
|||||||
if items_to_be_requested:
|
if items_to_be_requested:
|
||||||
for item in items_to_be_requested:
|
for item in items_to_be_requested:
|
||||||
item_wrapper = frappe.get_doc("Item", item)
|
item_wrapper = frappe.get_doc("Item", item)
|
||||||
pr_doc = frappe.get_doc({
|
pr_doc = frappe.new_doc("Material Request")
|
||||||
"doctype": "Material Request",
|
pr_doc.update({
|
||||||
"__islocal": 1,
|
|
||||||
"naming_series": "IDT",
|
|
||||||
"transaction_date": nowdate(),
|
"transaction_date": nowdate(),
|
||||||
"status": "Draft",
|
"status": "Draft",
|
||||||
"company": self.company,
|
"company": self.company,
|
||||||
|
|||||||
Reference in New Issue
Block a user