Fix quote error

This commit is contained in:
Suraj Shetty 2018-12-24 11:11:04 +05:30
parent b2965001d1
commit 83e3c4c0fa
5 changed files with 5 additions and 5 deletions

View File

@ -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" },
]
});

View File

@ -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");
});
}

View File

@ -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();

View File

@ -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"},
]
});

View File

@ -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();