mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 16:34:46 +00:00
fix: Depreciation Posting Date is mandatory even if Calculate Depreciation has disabled
This commit is contained in:
@@ -323,7 +323,10 @@ frappe.ui.form.on('Asset', {
|
|||||||
|
|
||||||
calculate_depreciation: function(frm) {
|
calculate_depreciation: function(frm) {
|
||||||
frm.toggle_reqd("finance_books", frm.doc.calculate_depreciation);
|
frm.toggle_reqd("finance_books", frm.doc.calculate_depreciation);
|
||||||
frm.trigger('set_finance_book');
|
|
||||||
|
if (frm.doc.calculate_depreciation) {
|
||||||
|
frm.trigger('set_finance_book');
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
gross_purchase_amount: function(frm) {
|
gross_purchase_amount: function(frm) {
|
||||||
|
|||||||
Reference in New Issue
Block a user