fix: Allow to make material request from draft job card

This commit is contained in:
Rohit Waghchaure 2019-02-18 18:26:50 +05:30
parent 1bcbe9069b
commit 99e7362006

View File

@ -172,9 +172,6 @@ def make_material_request(source_name, target_doc=None):
doclist = get_mapped_doc("Job Card", source_name, {
"Job Card": {
"doctype": "Material Request",
"validation": {
"docstatus": ["=", 1]
},
"field_map": {
"name": "job_card",
},
@ -206,9 +203,6 @@ def make_stock_entry(source_name, target_doc=None):
doclist = get_mapped_doc("Job Card", source_name, {
"Job Card": {
"doctype": "Stock Entry",
"validation": {
"docstatus": ["=", 1]
},
"field_map": {
"name": "job_card",
"for_quantity": "fg_completed_qty"