mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 16:04:46 +00:00
feat: add non depreciable category checkbox in asset category
This commit is contained in:
@@ -12,6 +12,7 @@
|
|||||||
"column_break_3",
|
"column_break_3",
|
||||||
"depreciation_options",
|
"depreciation_options",
|
||||||
"enable_cwip_accounting",
|
"enable_cwip_accounting",
|
||||||
|
"non_depreciable_category",
|
||||||
"finance_book_detail",
|
"finance_book_detail",
|
||||||
"finance_books",
|
"finance_books",
|
||||||
"section_break_2",
|
"section_break_2",
|
||||||
@@ -63,10 +64,16 @@
|
|||||||
"fieldname": "enable_cwip_accounting",
|
"fieldname": "enable_cwip_accounting",
|
||||||
"fieldtype": "Check",
|
"fieldtype": "Check",
|
||||||
"label": "Enable Capital Work in Progress Accounting"
|
"label": "Enable Capital Work in Progress Accounting"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"default": "0",
|
||||||
|
"fieldname": "non_depreciable_category",
|
||||||
|
"fieldtype": "Check",
|
||||||
|
"label": "Non Depreciable Category"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"links": [],
|
"links": [],
|
||||||
"modified": "2024-03-27 13:06:33.840414",
|
"modified": "2025-05-13 15:33:03.791814",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Assets",
|
"module": "Assets",
|
||||||
"name": "Asset Category",
|
"name": "Asset Category",
|
||||||
@@ -111,9 +118,10 @@
|
|||||||
"write": 1
|
"write": 1
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"row_format": "Dynamic",
|
||||||
"show_name_in_global_search": 1,
|
"show_name_in_global_search": 1,
|
||||||
"sort_field": "creation",
|
"sort_field": "creation",
|
||||||
"sort_order": "DESC",
|
"sort_order": "DESC",
|
||||||
"states": [],
|
"states": [],
|
||||||
"track_changes": 1
|
"track_changes": 1
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,15 +17,14 @@ class AssetCategory(Document):
|
|||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
from frappe.types import DF
|
from frappe.types import DF
|
||||||
|
|
||||||
from erpnext.assets.doctype.asset_category_account.asset_category_account import (
|
from erpnext.assets.doctype.asset_category_account.asset_category_account import AssetCategoryAccount
|
||||||
AssetCategoryAccount,
|
|
||||||
)
|
|
||||||
from erpnext.assets.doctype.asset_finance_book.asset_finance_book import AssetFinanceBook
|
from erpnext.assets.doctype.asset_finance_book.asset_finance_book import AssetFinanceBook
|
||||||
|
|
||||||
accounts: DF.Table[AssetCategoryAccount]
|
accounts: DF.Table[AssetCategoryAccount]
|
||||||
asset_category_name: DF.Data
|
asset_category_name: DF.Data
|
||||||
enable_cwip_accounting: DF.Check
|
enable_cwip_accounting: DF.Check
|
||||||
finance_books: DF.Table[AssetFinanceBook]
|
finance_books: DF.Table[AssetFinanceBook]
|
||||||
|
non_depreciable_category: DF.Check
|
||||||
# end: auto-generated types
|
# end: auto-generated types
|
||||||
|
|
||||||
def validate(self):
|
def validate(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user