Skip to content

Commit

Permalink
Merge pull request #177 from efeone/design_analysis_status
Browse files Browse the repository at this point in the history
feat:update Status
  • Loading branch information
muhammadmp authored Nov 8, 2023
2 parents d78593a + 7e3a061 commit 2a731a6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions aumms/aumms/doctype/design_analysis/design_analysis.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ let create_bom_button = function(frm){
if(!frm.is_new()){
frm.add_custom_button('Create BOM',() =>{
create_bom(frm);
}, );
},'Actions' );
}
}

Expand Down Expand Up @@ -310,7 +310,7 @@ function create_bom(frm) {
freeze: true,
callback: (r) => {
frm.reload_doc();
bom_dia.hide()
bom_dia.hide();
}
});
}
Expand Down
2 changes: 1 addition & 1 deletion aumms/aumms/doctype/design_analysis/design_analysis.json
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@
],
"index_web_pages_for_search": 1,
"links": [],
"modified": "2023-11-07 11:34:45.343042",
"modified": "2023-11-07 20:48:24.657689",
"modified_by": "Administrator",
"module": "AuMMS",
"name": "Design Analysis",
Expand Down
3 changes: 3 additions & 0 deletions aumms/aumms/doctype/design_analysis/design_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ def create_bom_function(doctype, docname,assign_to):
"doctype": bom.doctype,
"name": bom.name
})
frappe.db.set_value(doctype, docname, 'status','BOM Created')
frappe.db.commit()
frappe.msgprint("BOM Created", indicator="green", alert=1)
#Send system notification and email to assignee
subject = "New BOM request received"
content = "You've been assigned a new BOM for work order creation. Please review it at your earliest convenience."
Expand Down

0 comments on commit 2a731a6

Please sign in to comment.