-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38405 from frappe/mergify/bp/version-14/pr-38404
- Loading branch information
Showing
15 changed files
with
796 additions
and
335 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
15 changes: 15 additions & 0 deletions
15
erpnext/assets/doctype/asset_shift_allocation/asset_shift_allocation.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and contributors | ||
// For license information, please see license.txt | ||
|
||
frappe.ui.form.on('Asset Shift Allocation', { | ||
onload: function(frm) { | ||
frm.events.make_schedules_editable(frm); | ||
}, | ||
|
||
make_schedules_editable: function(frm) { | ||
frm.toggle_enable("depreciation_schedule", true); | ||
frm.fields_dict["depreciation_schedule"].grid.toggle_enable("schedule_date", false); | ||
frm.fields_dict["depreciation_schedule"].grid.toggle_enable("depreciation_amount", false); | ||
frm.fields_dict["depreciation_schedule"].grid.toggle_enable("shift", true); | ||
} | ||
}); |
115 changes: 115 additions & 0 deletions
115
erpnext/assets/doctype/asset_shift_allocation/asset_shift_allocation.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
{ | ||
"actions": [], | ||
"allow_rename": 1, | ||
"autoname": "naming_series:", | ||
"creation": "2023-11-29 04:01:33.796458", | ||
"default_view": "List", | ||
"doctype": "DocType", | ||
"editable_grid": 1, | ||
"engine": "InnoDB", | ||
"field_order": [ | ||
"section_break_esaa", | ||
"asset", | ||
"naming_series", | ||
"column_break_tdae", | ||
"finance_book", | ||
"amended_from", | ||
"depreciation_schedule_section", | ||
"depreciation_schedule" | ||
], | ||
"fields": [ | ||
{ | ||
"fieldname": "section_break_esaa", | ||
"fieldtype": "Section Break" | ||
}, | ||
{ | ||
"fieldname": "asset", | ||
"fieldtype": "Link", | ||
"in_list_view": 1, | ||
"label": "Asset", | ||
"options": "Asset", | ||
"reqd": 1 | ||
}, | ||
{ | ||
"fieldname": "naming_series", | ||
"fieldtype": "Select", | ||
"in_list_view": 1, | ||
"label": "Naming Series", | ||
"options": "ACC-ASA-.YYYY.-", | ||
"reqd": 1 | ||
}, | ||
{ | ||
"fieldname": "column_break_tdae", | ||
"fieldtype": "Column Break" | ||
}, | ||
{ | ||
"fieldname": "finance_book", | ||
"fieldtype": "Link", | ||
"label": "Finance Book", | ||
"options": "Finance Book" | ||
}, | ||
{ | ||
"depends_on": "eval:!doc.__islocal", | ||
"fieldname": "depreciation_schedule_section", | ||
"fieldtype": "Section Break", | ||
"label": "Depreciation Schedule" | ||
}, | ||
{ | ||
"fieldname": "depreciation_schedule", | ||
"fieldtype": "Table", | ||
"label": "Depreciation Schedule", | ||
"options": "Depreciation Schedule" | ||
}, | ||
{ | ||
"fieldname": "amended_from", | ||
"fieldtype": "Link", | ||
"label": "Amended From", | ||
"no_copy": 1, | ||
"options": "Asset Shift Allocation", | ||
"print_hide": 1, | ||
"read_only": 1 | ||
} | ||
], | ||
"index_web_pages_for_search": 1, | ||
"is_submittable": 1, | ||
"links": [], | ||
"modified": "2023-11-29 04:06:20.586168", | ||
"modified_by": "Administrator", | ||
"module": "Assets", | ||
"name": "Asset Shift Allocation", | ||
"naming_rule": "By \"Naming Series\" field", | ||
"owner": "Administrator", | ||
"permissions": [ | ||
{ | ||
"create": 1, | ||
"delete": 1, | ||
"email": 1, | ||
"export": 1, | ||
"print": 1, | ||
"read": 1, | ||
"report": 1, | ||
"role": "System Manager", | ||
"share": 1, | ||
"write": 1 | ||
}, | ||
{ | ||
"amend": 1, | ||
"cancel": 1, | ||
"create": 1, | ||
"delete": 1, | ||
"email": 1, | ||
"export": 1, | ||
"print": 1, | ||
"read": 1, | ||
"report": 1, | ||
"role": "Accounts User", | ||
"share": 1, | ||
"submit": 1, | ||
"write": 1 | ||
} | ||
], | ||
"sort_field": "modified", | ||
"sort_order": "DESC", | ||
"states": [], | ||
"track_changes": 1 | ||
} |
Oops, something went wrong.