mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-06 15:00:27 +00:00
fix: requested Changes
This commit is contained in:
@@ -6,7 +6,7 @@ cur_frm.add_fetch('employee','employee_name','employee_name');
|
|||||||
frappe.ui.form.on("Leave Allocation", {
|
frappe.ui.form.on("Leave Allocation", {
|
||||||
onload: function(frm) {
|
onload: function(frm) {
|
||||||
// Ignore cancellation of doctype on cancel all.
|
// Ignore cancellation of doctype on cancel all.
|
||||||
frm.ignored_doctypes_on_cancel_all = ["Leave Ledger Entry"];
|
frm.ignore_doctypes_on_cancel_all = ["Leave Ledger Entry"];
|
||||||
|
|
||||||
if(!frm.doc.from_date) frm.set_value("from_date", frappe.datetime.get_today());
|
if(!frm.doc.from_date) frm.set_value("from_date", frappe.datetime.get_today());
|
||||||
|
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ frappe.ui.form.on("Leave Application", {
|
|||||||
onload: function(frm) {
|
onload: function(frm) {
|
||||||
|
|
||||||
// Ignore cancellation of doctype on cancel all.
|
// Ignore cancellation of doctype on cancel all.
|
||||||
frm.ignored_doctypes_on_cancel_all = ["Leave Ledger Entry"];
|
frm.ignore_doctypes_on_cancel_all = ["Leave Ledger Entry"];
|
||||||
|
|
||||||
if (!frm.doc.posting_date) {
|
if (!frm.doc.posting_date) {
|
||||||
frm.set_value("posting_date", frappe.datetime.get_today());
|
frm.set_value("posting_date", frappe.datetime.get_today());
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
frappe.ui.form.on('Leave Encashment', {
|
frappe.ui.form.on('Leave Encashment', {
|
||||||
onload: function(frm) {
|
onload: function(frm) {
|
||||||
// Ignore cancellation of doctype on cancel all.
|
// Ignore cancellation of doctype on cancel all.
|
||||||
frm.ignored_doctypes_on_cancel_all = ["Leave Ledger Entry"];
|
frm.ignore_doctypes_on_cancel_all = ["Leave Ledger Entry"];
|
||||||
},
|
},
|
||||||
setup: function(frm) {
|
setup: function(frm) {
|
||||||
frm.set_query("leave_type", function() {
|
frm.set_query("leave_type", function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user