fix: Reordered fields for asset doctype (#44423)

This commit is contained in:
Nabin Hait
2024-11-30 22:00:17 +05:30
committed by GitHub
parent 279dcabf38
commit 04c7c0bb66
2 changed files with 59 additions and 42 deletions

View File

@@ -8,25 +8,20 @@
"document_type": "Document", "document_type": "Document",
"engine": "InnoDB", "engine": "InnoDB",
"field_order": [ "field_order": [
"company", "naming_series",
"item_code", "item_code",
"item_name", "item_name",
"asset_name",
"asset_category",
"location",
"image",
"column_break_3",
"status",
"company",
"asset_owner", "asset_owner",
"asset_owner_company", "asset_owner_company",
"is_existing_asset", "is_existing_asset",
"is_composite_asset", "is_composite_asset",
"supplier",
"customer",
"image",
"journal_entry_for_scrap",
"column_break_3",
"naming_series",
"asset_name",
"asset_category",
"location",
"split_from",
"custodian",
"department",
"purchase_details_section", "purchase_details_section",
"purchase_receipt", "purchase_receipt",
"purchase_receipt_item", "purchase_receipt_item",
@@ -34,12 +29,13 @@
"purchase_invoice_item", "purchase_invoice_item",
"purchase_date", "purchase_date",
"available_for_use_date", "available_for_use_date",
"disposal_date",
"column_break_23", "column_break_23",
"gross_purchase_amount", "gross_purchase_amount",
"purchase_amount",
"asset_quantity", "asset_quantity",
"additional_asset_cost", "additional_asset_cost",
"total_asset_cost", "total_asset_cost",
"disposal_date",
"depreciation_tab", "depreciation_tab",
"calculate_depreciation", "calculate_depreciation",
"column_break_33", "column_break_33",
@@ -57,8 +53,6 @@
"next_depreciation_date", "next_depreciation_date",
"depreciation_schedule_sb", "depreciation_schedule_sb",
"depreciation_schedule_view", "depreciation_schedule_view",
"accounting_dimensions_tab",
"cost_center",
"insurance_details_tab", "insurance_details_tab",
"policy_number", "policy_number",
"insurer", "insurer",
@@ -68,21 +62,28 @@
"insurance_end_date", "insurance_end_date",
"comprehensive_insurance", "comprehensive_insurance",
"other_info_tab", "other_info_tab",
"booked_fixed_asset", "accounting_dimensions_section",
"maintenance_required", "cost_center",
"column_break_51", "section_break_jtou",
"status", "custodian",
"purchase_amount",
"default_finance_book", "default_finance_book",
"depr_entry_posting_status", "depr_entry_posting_status",
"booked_fixed_asset",
"customer",
"supplier",
"column_break_51",
"department",
"split_from",
"journal_entry_for_scrap",
"amended_from", "amended_from",
"maintenance_required",
"connections_tab" "connections_tab"
], ],
"fields": [ "fields": [
{ {
"fieldname": "naming_series", "fieldname": "naming_series",
"fieldtype": "Select", "fieldtype": "Select",
"label": "Naming Series", "label": "Series",
"options": "ACC-ASS-.YYYY.-" "options": "ACC-ASS-.YYYY.-"
}, },
{ {
@@ -123,6 +124,7 @@
"read_only": 1 "read_only": 1
}, },
{ {
"default": "Company",
"fieldname": "asset_owner", "fieldname": "asset_owner",
"fieldtype": "Select", "fieldtype": "Select",
"label": "Asset Owner", "label": "Asset Owner",
@@ -260,7 +262,6 @@
"columns": 10, "columns": 10,
"fieldname": "finance_books", "fieldname": "finance_books",
"fieldtype": "Table", "fieldtype": "Table",
"label": "Finance Books",
"options": "Asset Finance Book" "options": "Asset Finance Book"
}, },
{ {
@@ -339,7 +340,6 @@
{ {
"allow_on_submit": 1, "allow_on_submit": 1,
"default": "0", "default": "0",
"description": "Check if Asset requires Preventive Maintenance or Calibration",
"fieldname": "maintenance_required", "fieldname": "maintenance_required",
"fieldtype": "Check", "fieldtype": "Check",
"label": "Maintenance Required" "label": "Maintenance Required"
@@ -360,6 +360,7 @@
"default": "0", "default": "0",
"fieldname": "booked_fixed_asset", "fieldname": "booked_fixed_asset",
"fieldtype": "Check", "fieldtype": "Check",
"hidden": 1,
"label": "Booked Fixed Asset", "label": "Booked Fixed Asset",
"no_copy": 1, "no_copy": 1,
"read_only": 1 "read_only": 1
@@ -518,15 +519,10 @@
"label": "Purchase Invoice Item", "label": "Purchase Invoice Item",
"options": "Purchase Invoice Item" "options": "Purchase Invoice Item"
}, },
{
"fieldname": "accounting_dimensions_tab",
"fieldtype": "Tab Break",
"label": "Accounting Dimensions"
},
{ {
"fieldname": "insurance_details_tab", "fieldname": "insurance_details_tab",
"fieldtype": "Tab Break", "fieldtype": "Tab Break",
"label": "Insurance Details" "label": "Insurance"
}, },
{ {
"fieldname": "other_info_tab", "fieldname": "other_info_tab",
@@ -542,7 +538,17 @@
{ {
"fieldname": "depreciation_tab", "fieldname": "depreciation_tab",
"fieldtype": "Tab Break", "fieldtype": "Tab Break",
"label": "Depreciation Details" "label": "Depreciation"
},
{
"fieldname": "accounting_dimensions_section",
"fieldtype": "Section Break",
"label": "Accounting Dimensions"
},
{
"fieldname": "section_break_jtou",
"fieldtype": "Section Break",
"label": "Additional Info"
} }
], ],
"idx": 72, "idx": 72,
@@ -586,7 +592,7 @@
"link_fieldname": "target_asset" "link_fieldname": "target_asset"
} }
], ],
"modified": "2024-11-20 11:52:06.332683", "modified": "2024-11-29 14:25:56.436124",
"modified_by": "Administrator", "modified_by": "Administrator",
"module": "Assets", "module": "Assets",
"name": "Asset", "name": "Asset",

View File

@@ -7,17 +7,19 @@
"field_order": [ "field_order": [
"finance_book", "finance_book",
"depreciation_method", "depreciation_method",
"total_number_of_depreciations",
"total_number_of_booked_depreciations",
"daily_prorata_based",
"shift_based",
"column_break_5",
"frequency_of_depreciation", "frequency_of_depreciation",
"total_number_of_depreciations",
"depreciation_start_date", "depreciation_start_date",
"column_break_5",
"salvage_value_percentage", "salvage_value_percentage",
"expected_value_after_useful_life", "expected_value_after_useful_life",
"rate_of_depreciation",
"daily_prorata_based",
"shift_based",
"section_break_jkdf",
"value_after_depreciation", "value_after_depreciation",
"rate_of_depreciation" "column_break_sigk",
"total_number_of_booked_depreciations"
], ],
"fields": [ "fields": [
{ {
@@ -67,9 +69,10 @@
"columns": 1, "columns": 1,
"default": "0", "default": "0",
"depends_on": "eval:parent.doctype == 'Asset'", "depends_on": "eval:parent.doctype == 'Asset'",
"description": "Expected Value After Useful Life",
"fieldname": "expected_value_after_useful_life", "fieldname": "expected_value_after_useful_life",
"fieldtype": "Currency", "fieldtype": "Currency",
"label": "Expected Value After Useful Life", "label": "Salvage Value",
"options": "Company:company:default_currency" "options": "Company:company:default_currency"
}, },
{ {
@@ -83,10 +86,9 @@
}, },
{ {
"depends_on": "eval:doc.depreciation_method == 'Written Down Value'", "depends_on": "eval:doc.depreciation_method == 'Written Down Value'",
"description": "In Percentage",
"fieldname": "rate_of_depreciation", "fieldname": "rate_of_depreciation",
"fieldtype": "Percent", "fieldtype": "Percent",
"label": "Rate of Depreciation" "label": "Rate of Depreciation (%)"
}, },
{ {
"fieldname": "salvage_value_percentage", "fieldname": "salvage_value_percentage",
@@ -108,16 +110,25 @@
}, },
{ {
"default": "0", "default": "0",
"depends_on": "total_number_of_booked_depreciations",
"fieldname": "total_number_of_booked_depreciations", "fieldname": "total_number_of_booked_depreciations",
"fieldtype": "Int", "fieldtype": "Int",
"label": "Total Number of Booked Depreciations ", "label": "Total Number of Booked Depreciations ",
"read_only": 1 "read_only": 1
},
{
"fieldname": "section_break_jkdf",
"fieldtype": "Section Break"
},
{
"fieldname": "column_break_sigk",
"fieldtype": "Column Break"
} }
], ],
"index_web_pages_for_search": 1, "index_web_pages_for_search": 1,
"istable": 1, "istable": 1,
"links": [], "links": [],
"modified": "2024-05-21 15:48:20.907250", "modified": "2024-11-29 14:36:54.399034",
"modified_by": "Administrator", "modified_by": "Administrator",
"module": "Assets", "module": "Assets",
"name": "Asset Finance Book", "name": "Asset Finance Book",