// Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt

frappe.ui.form.on('Additional Salary Component', {
	setup: function(frm) {
		frm.set_query("salary_component", function() {
			return {
				filters: {
					type: "earning"
				}
			}
		});
		frm.set_query("employee", function() {
			return {
				filters: {
					company: frm.doc.company
				}
			}
		});
	}
});

// Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt

frappe.ui.form.on('Additional Salary Component', {
	setup: function(frm) {
		frm.set_query("salary_component", function() {
			return {
				filters: {
					type: "earning"
				}
			};
		});
		frm.set_query("employee", function() {
			return {
				filters: {
					company: frm.doc.company
				}
			};
		});
	}
});

Fix - missing semicolon