Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat:update Status #177

Merged
merged 1 commit into from
Nov 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading