From 83e3c4c0faaeab3d179b76f7def3c80a1821bedb Mon Sep 17 00:00:00 2001 From: Suraj Shetty Date: Mon, 24 Dec 2018 11:11:04 +0530 Subject: [PATCH] Fix quote error --- .../doctype/request_for_quotation/request_for_quotation.js | 2 +- erpnext/manufacturing/doctype/work_order/work_order.js | 2 +- erpnext/projects/doctype/timesheet/timesheet.js | 2 +- erpnext/selling/doctype/sales_order/sales_order.js | 2 +- erpnext/stock/doctype/item/item.js | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/erpnext/buying/doctype/request_for_quotation/request_for_quotation.js b/erpnext/buying/doctype/request_for_quotation/request_for_quotation.js index 0052a53b47..46126ed3d6 100644 --- a/erpnext/buying/doctype/request_for_quotation/request_for_quotation.js +++ b/erpnext/buying/doctype/request_for_quotation/request_for_quotation.js @@ -147,7 +147,7 @@ frappe.ui.form.on("Request for Quotation",{ "fieldname": "supplier", "options": doc.suppliers.map(d => d.supplier), "reqd": 1 }, - { "fieldtype": "Button", "label": __('Create Supplier Quotation"), + { "fieldtype": "Button", "label": __('Create Supplier Quotation'), "fieldname": "make_supplier_quotation", "cssClass": "btn-primary" }, ] }); diff --git a/erpnext/manufacturing/doctype/work_order/work_order.js b/erpnext/manufacturing/doctype/work_order/work_order.js index a0e2ec64bf..594a808a21 100644 --- a/erpnext/manufacturing/doctype/work_order/work_order.js +++ b/erpnext/manufacturing/doctype/work_order/work_order.js @@ -139,7 +139,7 @@ frappe.ui.form.on("Work Order", { if (frm.doc.status == "Completed" && frm.doc.__onload.backflush_raw_materials_based_on == "Material Transferred for Manufacture") { - frm.add_custom_button(__('Create BOM"), () => { + frm.add_custom_button(__('Create BOM'), () => { frm.trigger("make_bom"); }); } diff --git a/erpnext/projects/doctype/timesheet/timesheet.js b/erpnext/projects/doctype/timesheet/timesheet.js index 1f060691d4..0eabb3921f 100644 --- a/erpnext/projects/doctype/timesheet/timesheet.js +++ b/erpnext/projects/doctype/timesheet/timesheet.js @@ -106,7 +106,7 @@ frappe.ui.form.on("Timesheet", { ] }); - dialog.set_primary_action(__('Create Sales Invoice"), () => { + dialog.set_primary_action(__('Create Sales Invoice'), () => { var args = dialog.get_values(); if(!args) return; dialog.hide(); diff --git a/erpnext/selling/doctype/sales_order/sales_order.js b/erpnext/selling/doctype/sales_order/sales_order.js index 0592740119..f2ea9e75be 100644 --- a/erpnext/selling/doctype/sales_order/sales_order.js +++ b/erpnext/selling/doctype/sales_order/sales_order.js @@ -506,7 +506,7 @@ erpnext.selling.SalesOrderController = erpnext.selling.SellingController.extend( } }}, - {"fieldtype": "Button", "label": __('Create Purchase Order"), "fieldname": "make_purchase_order", "cssClass": "btn-primary"}, + {"fieldtype": "Button", "label": __('Create Purchase Order'), "fieldname": "make_purchase_order", "cssClass": "btn-primary"}, ] }); diff --git a/erpnext/stock/doctype/item/item.js b/erpnext/stock/doctype/item/item.js index 8016e7a543..2422072251 100644 --- a/erpnext/stock/doctype/item/item.js +++ b/erpnext/stock/doctype/item/item.js @@ -449,7 +449,7 @@ $.extend(erpnext.item, { ].concat(fields) }); - me.multiple_variant_dialog.set_primary_action(__('Create Variants"), () => { + me.multiple_variant_dialog.set_primary_action(__('Create Variants'), () => { let selected_attributes = get_selected_attributes(); me.multiple_variant_dialog.hide();