fix: Sider issues
This commit is contained in:
parent
4e284433d1
commit
97193a4632
@ -319,7 +319,7 @@ frappe.ui.form.on('Asset', {
|
||||
var doclist = frappe.model.sync(r.message);
|
||||
frappe.set_route("Form", doclist[0].doctype, doclist[0].name);
|
||||
}
|
||||
})
|
||||
});
|
||||
},
|
||||
|
||||
create_asset_adjustment: function(frm) {
|
||||
|
@ -181,7 +181,7 @@ class Asset(AccountsController):
|
||||
self.validate_asset_finance_books(d)
|
||||
|
||||
start = 0
|
||||
for n in range (len(self.schedules)):
|
||||
for n in range(len(self.schedules)):
|
||||
if not self.schedules[n].journal_entry:
|
||||
del self.schedules[n:]
|
||||
start = n
|
||||
|
@ -31,7 +31,7 @@ frappe.ui.form.on('Asset Maintenance', {
|
||||
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) => {
|
||||
|
@ -5,7 +5,7 @@
|
||||
from __future__ import unicode_literals
|
||||
import frappe
|
||||
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 erpnext.accounts.general_ledger import make_gl_entries
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user