// Copyright (c) 2018, Xhive LLC
// For license information, please see license.txt

xhiveframework.ui.form.on('Employee Grade', {
    refresh: function (frm) {

    },
    setup: function (frm) {
        frm.set_query("default_salary_structure", function () {
            return {
                "filters": {
                    "docstatus": 1,
                    "is_active": "Yes"
                }
            };
        });

        frm.set_query("default_leave_policy", function () {
            return {
                "filters": {
                    "docstatus": 1
                }
            };
        });


    }

});
