{
    "uuid": "73b419932da7b1b4d26d0540334a6fac",
    "elementtype": "equipment",
    "schema_kind": "equipment",
    "title": "Equipment - Earth grounding",
    "description": "Inventory record for a building earth grounding installation (rod, loop, mesh) per NF C 15-100.",
    "export_date": "2026-05-26 10:00:00",
    "dolibarr_version": "18.0.0",
    "extrafields": [
        {"name": "gnd_inventory_number", "label": "Inventory number", "type": "varchar", "size": "50", "required": 1, "unique": 1, "visible": 1, "totalizable": 0, "printable": 1, "param": [], "help": "Internal inventory tag", "pos": 100, "enabled": 1, "perms": "", "langfile": "", "computed": "", "default": "", "alwayseditable": 0},
        {"name": "gnd_serial_number", "label": "Serial number", "type": "varchar", "size": "100", "required": 0, "unique": 0, "visible": 1, "totalizable": 0, "printable": 1, "param": [], "help": "Reference of the bar / clamp", "pos": 105, "enabled": 1, "perms": "", "langfile": "", "computed": "", "default": "", "alwayseditable": 0},
        {"name": "gnd_brand", "label": "Brand", "type": "varchar", "size": "100", "required": 0, "unique": 0, "visible": 1, "totalizable": 0, "printable": 1, "param": [], "help": "Manufacturer / brand name", "pos": 110, "enabled": 1, "perms": "", "langfile": "", "computed": "", "default": "", "alwayseditable": 0},
        {"name": "gnd_model", "label": "Model", "type": "varchar", "size": "100", "required": 0, "unique": 0, "visible": 1, "totalizable": 0, "printable": 1, "param": [], "help": "Reference of the components", "pos": 115, "enabled": 1, "perms": "", "langfile": "", "computed": "", "default": "", "alwayseditable": 0},
        {"name": "gnd_manufacture_year", "label": "Year of installation", "type": "int", "size": "4", "required": 0, "unique": 0, "visible": 1, "totalizable": 0, "printable": 1, "param": [], "help": "", "pos": 120, "enabled": 1, "perms": "", "langfile": "", "computed": "", "default": "", "alwayseditable": 0},
        {"name": "gnd_type", "label": "Grounding type", "type": "select", "size": "", "required": 1, "unique": 0, "visible": 1, "totalizable": 0, "printable": 1, "param": {"options": {"rod": "Rod (piquet)", "loop": "Loop (boucle a fond de fouille)", "mesh": "Mesh (maillage)", "plate": "Plate (plaque)"}}, "help": "Type of earth electrode", "pos": 200, "enabled": 1, "perms": "", "langfile": "", "computed": "", "default": "", "alwayseditable": 0},
        {"name": "gnd_resistance_ohms", "label": "Resistance (ohms)", "type": "double", "size": "8,2", "required": 1, "unique": 0, "visible": 1, "totalizable": 0, "printable": 1, "param": [], "help": "Measured earth resistance in ohms", "pos": 210, "enabled": 1, "perms": "", "langfile": "", "computed": "", "default": "", "alwayseditable": 0},
        {"name": "gnd_norm_reference", "label": "Standard reference", "type": "varchar", "size": "50", "required": 0, "unique": 0, "visible": 1, "totalizable": 0, "printable": 1, "param": [], "help": "Reference standard (e.g. NF C 15-100)", "pos": 220, "enabled": 1, "perms": "", "langfile": "", "computed": "", "default": "NF C 15-100", "alwayseditable": 0},
        {"name": "gnd_conductor_section", "label": "Conductor cross-section (mm2)", "type": "double", "size": "8,2", "required": 0, "unique": 0, "visible": 1, "totalizable": 0, "printable": 1, "param": [], "help": "Section of the main earth conductor in mm2", "pos": 230, "enabled": 1, "perms": "", "langfile": "", "computed": "", "default": "", "alwayseditable": 0},
        {"name": "gnd_site", "label": "Site", "type": "varchar", "size": "150", "required": 0, "unique": 0, "visible": 1, "totalizable": 0, "printable": 1, "param": [], "help": "Site name", "pos": 400, "enabled": 1, "perms": "", "langfile": "", "computed": "", "default": "", "alwayseditable": 0},
        {"name": "gnd_building", "label": "Building", "type": "varchar", "size": "100", "required": 0, "unique": 0, "visible": 1, "totalizable": 0, "printable": 1, "param": [], "help": "Building or block", "pos": 410, "enabled": 1, "perms": "", "langfile": "", "computed": "", "default": "", "alwayseditable": 0},
        {"name": "gnd_floor", "label": "Floor", "type": "varchar", "size": "50", "required": 0, "unique": 0, "visible": 1, "totalizable": 0, "printable": 1, "param": [], "help": "Floor or level (often basement)", "pos": 420, "enabled": 1, "perms": "", "langfile": "", "computed": "", "default": "", "alwayseditable": 0},
        {"name": "gnd_room", "label": "Room", "type": "varchar", "size": "100", "required": 0, "unique": 0, "visible": 1, "totalizable": 0, "printable": 1, "param": [], "help": "Location of the inspection well", "pos": 430, "enabled": 1, "perms": "", "langfile": "", "computed": "", "default": "", "alwayseditable": 0},
        {"name": "gnd_status", "label": "Status", "type": "select", "size": "", "required": 1, "unique": 0, "visible": 1, "totalizable": 0, "printable": 1, "param": {"options": {"in_service": "In service", "in_stock": "In stock", "in_repair": "In repair", "out_of_order": "Out of order", "decommissioned": "Decommissioned"}}, "help": "Operational status", "pos": 500, "enabled": 1, "perms": "", "langfile": "", "computed": "", "default": "in_service", "alwayseditable": 0},
        {"name": "gnd_commissioning_date", "label": "Commissioning date", "type": "date", "size": "", "required": 0, "unique": 0, "visible": 1, "totalizable": 0, "printable": 1, "param": [], "help": "Date the installation was put in service", "pos": 510, "enabled": 1, "perms": "", "langfile": "", "computed": "", "default": "", "alwayseditable": 0},
        {"name": "gnd_next_maintenance_date", "label": "Next scheduled measurement", "type": "date", "size": "", "required": 0, "unique": 0, "visible": 1, "totalizable": 0, "printable": 1, "param": [], "help": "Planned date of the next resistance check", "pos": 520, "enabled": 1, "perms": "", "langfile": "", "computed": "", "default": "", "alwayseditable": 0},
        {"name": "gnd_purchase_date", "label": "Purchase date", "type": "date", "size": "", "required": 0, "unique": 0, "visible": 1, "totalizable": 0, "printable": 1, "param": [], "help": "", "pos": 600, "enabled": 1, "perms": "", "langfile": "", "computed": "", "default": "", "alwayseditable": 0},
        {"name": "gnd_warranty_end_date", "label": "Warranty end date", "type": "date", "size": "", "required": 0, "unique": 0, "visible": 1, "totalizable": 0, "printable": 1, "param": [], "help": "", "pos": 610, "enabled": 1, "perms": "", "langfile": "", "computed": "", "default": "", "alwayseditable": 0},
        {"name": "gnd_supplier", "label": "Supplier", "type": "varchar", "size": "150", "required": 0, "unique": 0, "visible": 1, "totalizable": 0, "printable": 1, "param": [], "help": "Installer company", "pos": 620, "enabled": 1, "perms": "", "langfile": "", "computed": "", "default": "", "alwayseditable": 0},
        {"name": "gnd_maintenance_contract_ref", "label": "Maintenance contract reference", "type": "varchar", "size": "100", "required": 0, "unique": 0, "visible": 1, "totalizable": 0, "printable": 1, "param": [], "help": "", "pos": 630, "enabled": 1, "perms": "", "langfile": "", "computed": "", "default": "", "alwayseditable": 0},
        {"name": "gnd_notes", "label": "Notes", "type": "text", "size": "", "required": 0, "unique": 0, "visible": 1, "totalizable": 0, "printable": 1, "param": [], "help": "Free-form notes", "pos": 700, "enabled": 1, "perms": "", "langfile": "", "computed": "", "default": "", "alwayseditable": 0}
    ],
    "pdf_layout": {
        "version": "1.1",
        "page": {"format": "A4", "orientation": "portrait", "margins": {"top": 20, "right": 15, "bottom": 20, "left": 15}, "font_family": "helvetica", "font_size": 10},
        "header": {"title": "Equipment - Earth grounding", "subtitle": "Asset inventory record", "logo_placeholder": "top-right", "show_page_number": true, "show_generated_date": true},
        "footer": {"text": "Generated via schemas.cap-rel.fr"},
        "sections": [
            {"id": "identification", "title": "Identification", "layout": "two_columns", "fields": ["gnd_inventory_number", "gnd_serial_number", "gnd_brand", "gnd_model", "gnd_manufacture_year"]},
            {"id": "specifications", "title": "Technical specifications", "layout": "two_columns", "fields": ["gnd_type", "gnd_resistance_ohms", "gnd_norm_reference", "gnd_conductor_section"]},
            {"id": "location", "title": "Location", "layout": "two_columns", "fields": ["gnd_site", "gnd_building", "gnd_floor", "gnd_room"]},
            {"id": "status", "title": "Status and follow-up", "layout": "highlight_box", "fields": ["gnd_status", "gnd_commissioning_date", "gnd_next_maintenance_date"]},
            {"id": "commercial", "title": "Purchase and maintenance", "layout": "two_columns", "fields": ["gnd_purchase_date", "gnd_warranty_end_date", "gnd_supplier", "gnd_maintenance_contract_ref"]},
            {"id": "notes", "title": "Notes", "layout": "full_width", "fields": ["gnd_notes"]}
        ],
        "field_render": {
            "gnd_status": {"style": "highlight", "color_by_value": {"in_service": "#1f8a1f", "in_stock": "#888888", "in_repair": "#e69500", "out_of_order": "#c00000", "decommissioned": "#555555"}},
            "gnd_notes": {"min_height": 30, "show_if_empty": false},
            "gnd_inventory_number": {"style": "bold", "frame": true}
        }
    }
}
