{
    "uuid": "b373d917eaed22e17af5d345a9a36457",
    "schema_kind": "equipment",
    "lang": "en",
    "title": "Equipment - Lightning protection",
    "description": "Inventory record for a lightning protection installation (rod, SPCF) per NF EN 62305.",
    "export_date": "2026-05-26 10:00:00",
    "dolibarr_version": "18.0.0",
    "extrafields": [
        {"name": "lprot_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": "lprot_serial_number", "label": "Serial number", "type": "varchar", "size": "100", "required": 0, "unique": 0, "visible": 1, "totalizable": 0, "printable": 1, "param": [], "help": "Manufacturer serial number", "pos": 105, "enabled": 1, "perms": "", "langfile": "", "computed": "", "default": "", "alwayseditable": 0},
        {"name": "lprot_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": "lprot_model", "label": "Model", "type": "varchar", "size": "100", "required": 0, "unique": 0, "visible": 1, "totalizable": 0, "printable": 1, "param": [], "help": "Manufacturer model reference", "pos": 115, "enabled": 1, "perms": "", "langfile": "", "computed": "", "default": "", "alwayseditable": 0},
        {"name": "lprot_manufacture_year", "label": "Year of manufacture", "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": "lprot_type", "label": "Type", "type": "select", "size": "", "required": 1, "unique": 0, "visible": 1, "totalizable": 0, "printable": 1, "param": {"options": {"pda": "PDA (early streamer emission)", "simple_rod": "Simple rod (Franklin)", "mesh_cage": "Mesh cage (cage maillee)", "spcf": "SPCF (taut wire)"}}, "help": "Type of lightning protection", "pos": 200, "enabled": 1, "perms": "", "langfile": "", "computed": "", "default": "", "alwayseditable": 0},
        {"name": "lprot_height_m", "label": "Height (m)", "type": "double", "size": "6,2", "required": 0, "unique": 0, "visible": 1, "totalizable": 0, "printable": 1, "param": [], "help": "Height of the air terminal in meters", "pos": 210, "enabled": 1, "perms": "", "langfile": "", "computed": "", "default": "", "alwayseditable": 0},
        {"name": "lprot_level", "label": "Protection level", "type": "select", "size": "", "required": 1, "unique": 0, "visible": 1, "totalizable": 0, "printable": 1, "param": {"options": {"I": "Level I", "II": "Level II", "III": "Level III", "IV": "Level IV"}}, "help": "Protection level per NF EN 62305", "pos": 220, "enabled": 1, "perms": "", "langfile": "", "computed": "", "default": "", "alwayseditable": 0},
        {"name": "lprot_down_conductors", "label": "Down conductors count", "type": "int", "size": "4", "required": 0, "unique": 0, "visible": 1, "totalizable": 0, "printable": 1, "param": [], "help": "Number of down conductors fitted", "pos": 230, "enabled": 1, "perms": "", "langfile": "", "computed": "", "default": "", "alwayseditable": 0},
        {"name": "lprot_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": "lprot_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": "lprot_floor", "label": "Floor", "type": "varchar", "size": "50", "required": 0, "unique": 0, "visible": 1, "totalizable": 0, "printable": 1, "param": [], "help": "Roof or level", "pos": 420, "enabled": 1, "perms": "", "langfile": "", "computed": "", "default": "", "alwayseditable": 0},
        {"name": "lprot_room", "label": "Room", "type": "varchar", "size": "100", "required": 0, "unique": 0, "visible": 1, "totalizable": 0, "printable": 1, "param": [], "help": "Position on the structure", "pos": 430, "enabled": 1, "perms": "", "langfile": "", "computed": "", "default": "", "alwayseditable": 0},
        {"name": "lprot_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": "lprot_commissioning_date", "label": "Commissioning date", "type": "date", "size": "", "required": 0, "unique": 0, "visible": 1, "totalizable": 0, "printable": 1, "param": [], "help": "Date the equipment was put in service", "pos": 510, "enabled": 1, "perms": "", "langfile": "", "computed": "", "default": "", "alwayseditable": 0},
        {"name": "lprot_next_maintenance_date", "label": "Next scheduled verification", "type": "date", "size": "", "required": 0, "unique": 0, "visible": 1, "totalizable": 0, "printable": 1, "param": [], "help": "Planned date of the next verification", "pos": 520, "enabled": 1, "perms": "", "langfile": "", "computed": "", "default": "", "alwayseditable": 0},
        {"name": "lprot_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": "lprot_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": "lprot_supplier", "label": "Supplier", "type": "varchar", "size": "150", "required": 0, "unique": 0, "visible": 1, "totalizable": 0, "printable": 1, "param": [], "help": "Supplier company", "pos": 620, "enabled": 1, "perms": "", "langfile": "", "computed": "", "default": "", "alwayseditable": 0},
        {"name": "lprot_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": "lprot_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 - Lightning protection", "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": ["lprot_inventory_number", "lprot_serial_number", "lprot_brand", "lprot_model", "lprot_manufacture_year"]},
            {"id": "specifications", "title": "Technical specifications", "layout": "two_columns", "fields": ["lprot_type", "lprot_height_m", "lprot_level", "lprot_down_conductors"]},
            {"id": "location", "title": "Location", "layout": "two_columns", "fields": ["lprot_site", "lprot_building", "lprot_floor", "lprot_room"]},
            {"id": "status", "title": "Status and follow-up", "layout": "highlight_box", "fields": ["lprot_status", "lprot_commissioning_date", "lprot_next_maintenance_date"]},
            {"id": "commercial", "title": "Purchase and maintenance", "layout": "two_columns", "fields": ["lprot_purchase_date", "lprot_warranty_end_date", "lprot_supplier", "lprot_maintenance_contract_ref"]},
            {"id": "notes", "title": "Notes", "layout": "full_width", "fields": ["lprot_notes"]}
        ],
        "field_render": {
            "lprot_status": {"style": "highlight", "color_by_value": {"in_service": "#1f8a1f", "in_stock": "#888888", "in_repair": "#e69500", "out_of_order": "#c00000", "decommissioned": "#555555"}},
            "lprot_notes": {"min_height": 30, "show_if_empty": false},
            "lprot_inventory_number": {"style": "bold", "frame": true}
        }
    }
}
