fix: Sider issues
This commit is contained in:
parent
1d7dda2664
commit
03a6977a01
@ -319,7 +319,7 @@ frappe.ui.form.on('Asset', {
|
|||||||
var doclist = frappe.model.sync(r.message);
|
var doclist = frappe.model.sync(r.message);
|
||||||
frappe.set_route("Form", doclist[0].doctype, doclist[0].name);
|
frappe.set_route("Form", doclist[0].doctype, doclist[0].name);
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
create_asset_adjustment: function(frm) {
|
create_asset_adjustment: function(frm) {
|
||||||
|
@ -181,7 +181,7 @@ class Asset(AccountsController):
|
|||||||
self.validate_asset_finance_books(d)
|
self.validate_asset_finance_books(d)
|
||||||
|
|
||||||
start = 0
|
start = 0
|
||||||
for n in range (len(self.schedules)):
|
for n in range(len(self.schedules)):
|
||||||
if not self.schedules[n].journal_entry:
|
if not self.schedules[n].journal_entry:
|
||||||
del self.schedules[n:]
|
del self.schedules[n:]
|
||||||
start = n
|
start = n
|
||||||
|
@ -31,7 +31,7 @@ frappe.ui.form.on('Asset Maintenance', {
|
|||||||
frm.trigger('make_dashboard');
|
frm.trigger('make_dashboard');
|
||||||
}
|
}
|
||||||
|
|
||||||
frm.toggle_display(['stock_consumption_details_section'], frm.doc.stock_consumption)
|
frm.toggle_display(['stock_consumption_details_section'], frm.doc.stock_consumption);
|
||||||
},
|
},
|
||||||
|
|
||||||
make_dashboard: (frm) => {
|
make_dashboard: (frm) => {
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
import frappe
|
import frappe
|
||||||
from frappe import _
|
from frappe import _
|
||||||
from frappe.utils import time_diff_in_hours, getdate, add_days, date_diff, add_months, flt, cint
|
from frappe.utils import time_diff_in_hours, getdate, add_months, flt, cint
|
||||||
from frappe.model.document import Document
|
from frappe.model.document import Document
|
||||||
from erpnext.accounts.general_ledger import make_gl_entries
|
from erpnext.accounts.general_ledger import make_gl_entries
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user