Skip to content

Commit

Permalink
feat: added required_date field to set date in child table
Browse files Browse the repository at this point in the history
  • Loading branch information
noahjacob committed Nov 17, 2021
1 parent 30a6f03 commit f96a588
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,14 @@ frappe.ui.form.on("Request for Quotation",{
dialog.show()
},

required_date(frm) {
if (frm.doc.required_date) {
$.each(frm.doc.items || [], function(i, d) {
d.schedule_date = frm.doc.required_date;
});
refresh_field("items");
}
},
preview: (frm) => {
let dialog = new frappe.ui.Dialog({
title: __('Preview Email'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"vendor",
"column_break1",
"transaction_date",
"required_date",
"status",
"amended_from",
"suppliers_section",
Expand Down Expand Up @@ -246,16 +247,22 @@
"fieldname": "sec_break_email_2",
"fieldtype": "Section Break",
"hide_border": 1
},
{
"fieldname": "required_date",
"fieldtype": "Date",
"label": "Required Date"
}
],
"icon": "fa fa-shopping-cart",
"index_web_pages_for_search": 1,
"is_submittable": 1,
"links": [],
"modified": "2020-11-05 22:04:29.017134",
"modified": "2021-11-17 15:50:52.497758",
"modified_by": "Administrator",
"module": "Buying",
"name": "Request for Quotation",
"naming_rule": "By \"Naming Series\" field",
"owner": "Administrator",
"permissions": [
{
Expand Down

0 comments on commit f96a588

Please sign in to comment.