{
    "uuid": "85760ef9b9c01cf9ebf87b557c0e4384",
    "elementtype": "equipment",
    "schema_kind": "equipment",
    "title": "Equipment - Bike Lock (rental accessory)",
    "description": "Inventory record for a bicycle lock provided to rental customers. Covers lock type (U-lock, chain, folding), security rating, dimensions, mechanism (key or combination), number of keys, cut resistance.",
    "export_date": "2026-05-31 10:00:00",
    "dolibarr_version": "18.0.0",
    "extrafields": [
        {
            "name": "lock_inventory_number",
            "label": "Inventory number",
            "type": "varchar",
            "size": "50",
            "required": 1,
            "unique": 1,
            "visible": 1,
            "totalizable": 0,
            "printable": 1,
            "param": [],
            "help": "Internal fleet tag",
            "pos": 100,
            "enabled": 1,
            "perms": "",
            "langfile": "",
            "computed": "",
            "default": "",
            "alwayseditable": 0
        },
        {
            "name": "lock_brand",
            "label": "Brand",
            "type": "varchar",
            "size": "100",
            "required": 0,
            "unique": 0,
            "visible": 1,
            "totalizable": 0,
            "printable": 1,
            "param": [],
            "help": "Manufacturer name (e.g. Abus, Kryptonite, Trelock)",
            "pos": 105,
            "enabled": 1,
            "perms": "",
            "langfile": "",
            "computed": "",
            "default": "",
            "alwayseditable": 0
        },
        {
            "name": "lock_model",
            "label": "Model",
            "type": "varchar",
            "size": "100",
            "required": 0,
            "unique": 0,
            "visible": 1,
            "totalizable": 0,
            "printable": 1,
            "param": [],
            "help": "Model name or reference",
            "pos": 110,
            "enabled": 1,
            "perms": "",
            "langfile": "",
            "computed": "",
            "default": "",
            "alwayseditable": 0
        },
        {
            "name": "lock_type",
            "label": "Lock type",
            "type": "select",
            "size": "",
            "required": 1,
            "unique": 0,
            "visible": 1,
            "totalizable": 0,
            "printable": 1,
            "param": {
                "options": {
                    "u_lock": "U-lock (D-lock)",
                    "chain": "Chain lock",
                    "folding": "Folding lock",
                    "cable": "Cable lock",
                    "frame": "Frame / ring lock"
                }
            },
            "help": "Physical form factor of the lock",
            "pos": 115,
            "enabled": 1,
            "perms": "",
            "langfile": "",
            "computed": "",
            "default": "u_lock",
            "alwayseditable": 0
        },
        {
            "name": "lock_mechanism",
            "label": "Mechanism",
            "type": "select",
            "size": "",
            "required": 0,
            "unique": 0,
            "visible": 1,
            "totalizable": 0,
            "printable": 1,
            "param": {
                "options": {
                    "key": "Key",
                    "combination": "Combination (digits)",
                    "key_and_combination": "Key + combination"
                }
            },
            "help": "Locking mechanism",
            "pos": 120,
            "enabled": 1,
            "perms": "",
            "langfile": "",
            "computed": "",
            "default": "key",
            "alwayseditable": 0
        },
        {
            "name": "lock_number_of_keys",
            "label": "Number of keys",
            "type": "int",
            "size": "2",
            "required": 0,
            "unique": 0,
            "visible": 1,
            "totalizable": 0,
            "printable": 1,
            "param": [],
            "help": "Total number of keys supplied with this lock",
            "pos": 125,
            "enabled": 1,
            "perms": "",
            "langfile": "",
            "computed": "",
            "default": "2",
            "alwayseditable": 0
        },
        {
            "name": "lock_keys_present",
            "label": "Keys currently present",
            "type": "int",
            "size": "2",
            "required": 0,
            "unique": 0,
            "visible": 1,
            "totalizable": 0,
            "printable": 1,
            "param": [],
            "help": "Number of keys physically in stock (to track losses)",
            "pos": 130,
            "enabled": 1,
            "perms": "",
            "langfile": "",
            "computed": "",
            "default": "",
            "alwayseditable": 1
        },
        {
            "name": "lock_security_rating_sold_secure",
            "label": "Sold Secure rating",
            "type": "select",
            "size": "",
            "required": 0,
            "unique": 0,
            "visible": 1,
            "totalizable": 0,
            "printable": 1,
            "param": {
                "options": {
                    "bronze": "Bronze",
                    "silver": "Silver",
                    "gold": "Gold",
                    "diamond": "Diamond",
                    "not_rated": "Not rated"
                }
            },
            "help": "Sold Secure independent test rating (UK standard widely used in Europe)",
            "pos": 200,
            "enabled": 1,
            "perms": "",
            "langfile": "",
            "computed": "",
            "default": "not_rated",
            "alwayseditable": 0
        },
        {
            "name": "lock_security_rating_art",
            "label": "ART rating (stars)",
            "type": "select",
            "size": "",
            "required": 0,
            "unique": 0,
            "visible": 1,
            "totalizable": 0,
            "printable": 1,
            "param": {
                "options": {
                    "1": "1 star",
                    "2": "2 stars",
                    "3": "3 stars",
                    "4": "4 stars",
                    "5": "5 stars",
                    "not_rated": "Not rated"
                }
            },
            "help": "ART Dutch independent security rating (1 to 5 stars)",
            "pos": 205,
            "enabled": 1,
            "perms": "",
            "langfile": "",
            "computed": "",
            "default": "not_rated",
            "alwayseditable": 0
        },
        {
            "name": "lock_shackle_diameter_mm",
            "label": "Shackle / chain link diameter (mm)",
            "type": "int",
            "size": "3",
            "required": 0,
            "unique": 0,
            "visible": 1,
            "totalizable": 0,
            "printable": 1,
            "param": [],
            "help": "Thickness of the shackle (U-lock) or chain link in mm. Higher = more cut-resistant.",
            "pos": 210,
            "enabled": 1,
            "perms": "",
            "langfile": "",
            "computed": "",
            "default": "",
            "alwayseditable": 0
        },
        {
            "name": "lock_length_cm",
            "label": "Length / reach (cm)",
            "type": "int",
            "size": "4",
            "required": 0,
            "unique": 0,
            "visible": 1,
            "totalizable": 0,
            "printable": 1,
            "param": [],
            "help": "Internal clearance (U-lock) or total chain length in cm",
            "pos": 215,
            "enabled": 1,
            "perms": "",
            "langfile": "",
            "computed": "",
            "default": "",
            "alwayseditable": 0
        },
        {
            "name": "lock_weight_g",
            "label": "Weight (g)",
            "type": "int",
            "size": "5",
            "required": 0,
            "unique": 0,
            "visible": 1,
            "totalizable": 0,
            "printable": 1,
            "param": [],
            "help": "Total weight of the lock including bracket if supplied",
            "pos": 220,
            "enabled": 1,
            "perms": "",
            "langfile": "",
            "computed": "",
            "default": "",
            "alwayseditable": 0
        },
        {
            "name": "lock_cut_resistance",
            "label": "Cut resistance",
            "type": "select",
            "size": "",
            "required": 0,
            "unique": 0,
            "visible": 1,
            "totalizable": 0,
            "printable": 1,
            "param": {
                "options": {
                    "low": "Low (cable / thin chain)",
                    "medium": "Medium (hardened steel)",
                    "high": "High (double-deadbolt / square chain)",
                    "very_high": "Very high (certified anti-angle grinder)"
                }
            },
            "help": "Resistance to bolt cutters and angle grinder",
            "pos": 225,
            "enabled": 1,
            "perms": "",
            "langfile": "",
            "computed": "",
            "default": "medium",
            "alwayseditable": 0
        },
        {
            "name": "lock_comes_with_bracket",
            "label": "Supplied with frame bracket",
            "type": "boolean",
            "size": "",
            "required": 0,
            "unique": 0,
            "visible": 1,
            "totalizable": 0,
            "printable": 1,
            "param": [],
            "help": "Indicates whether a mounting bracket is included for carrying on the bike",
            "pos": 230,
            "enabled": 1,
            "perms": "",
            "langfile": "",
            "computed": "",
            "default": "0",
            "alwayseditable": 0
        },
        {
            "name": "lock_condition",
            "label": "Condition",
            "type": "select",
            "size": "",
            "required": 0,
            "unique": 0,
            "visible": 1,
            "totalizable": 0,
            "printable": 1,
            "param": {
                "options": {
                    "new": "New",
                    "good": "Good",
                    "worn": "Worn but functional",
                    "defective": "Defective - replace"
                }
            },
            "help": "Current physical condition of the lock",
            "pos": 235,
            "enabled": 1,
            "perms": "",
            "langfile": "",
            "computed": "",
            "default": "good",
            "alwayseditable": 1
        },
        {
            "name": "lock_status",
            "label": "Inventory status",
            "type": "select",
            "size": "",
            "required": 1,
            "unique": 0,
            "visible": 1,
            "totalizable": 0,
            "printable": 1,
            "param": {
                "options": {
                    "in_service": "In service",
                    "in_stock": "In stock",
                    "out_of_order": "Out of order",
                    "decommissioned": "Decommissioned"
                }
            },
            "help": "Current operational status",
            "pos": 300,
            "enabled": 1,
            "perms": "",
            "langfile": "",
            "computed": "",
            "default": "in_service",
            "alwayseditable": 0
        },
        {
            "name": "lock_commissioning_date",
            "label": "Commissioning date",
            "type": "date",
            "size": "",
            "required": 0,
            "unique": 0,
            "visible": 1,
            "totalizable": 0,
            "printable": 1,
            "param": [],
            "help": "Date the lock was added to the rental fleet",
            "pos": 305,
            "enabled": 1,
            "perms": "",
            "langfile": "",
            "computed": "",
            "default": "",
            "alwayseditable": 0
        },
        {
            "name": "lock_site",
            "label": "Site",
            "type": "varchar",
            "size": "150",
            "required": 0,
            "unique": 0,
            "visible": 1,
            "totalizable": 0,
            "printable": 1,
            "param": [],
            "help": "Rental agency or storage location",
            "pos": 400,
            "enabled": 1,
            "perms": "",
            "langfile": "",
            "computed": "",
            "default": "",
            "alwayseditable": 0
        },
        {
            "name": "lock_storage_location",
            "label": "Storage location",
            "type": "varchar",
            "size": "100",
            "required": 0,
            "unique": 0,
            "visible": 1,
            "totalizable": 0,
            "printable": 1,
            "param": [],
            "help": "Shelf, hook or rack identifier",
            "pos": 405,
            "enabled": 1,
            "perms": "",
            "langfile": "",
            "computed": "",
            "default": "",
            "alwayseditable": 0
        },
        {
            "name": "lock_purchase_date",
            "label": "Purchase date",
            "type": "date",
            "size": "",
            "required": 0,
            "unique": 0,
            "visible": 1,
            "totalizable": 0,
            "printable": 1,
            "param": [],
            "help": "",
            "pos": 500,
            "enabled": 1,
            "perms": "",
            "langfile": "",
            "computed": "",
            "default": "",
            "alwayseditable": 0
        },
        {
            "name": "lock_supplier",
            "label": "Supplier",
            "type": "varchar",
            "size": "150",
            "required": 0,
            "unique": 0,
            "visible": 1,
            "totalizable": 0,
            "printable": 1,
            "param": [],
            "help": "",
            "pos": 505,
            "enabled": 1,
            "perms": "",
            "langfile": "",
            "computed": "",
            "default": "",
            "alwayseditable": 0
        },
        {
            "name": "lock_notes",
            "label": "Notes",
            "type": "text",
            "size": "",
            "required": 0,
            "unique": 0,
            "visible": 1,
            "totalizable": 0,
            "printable": 1,
            "param": [],
            "help": "Free-form notes",
            "pos": 600,
            "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 - Bike Lock (rental accessory)",
            "subtitle": "Rental fleet 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": [
                    "lock_inventory_number",
                    "lock_brand",
                    "lock_model",
                    "lock_type"
                ]
            },
            {
                "id": "mechanism",
                "title": "Mechanism and keys",
                "layout": "two_columns",
                "fields": [
                    "lock_mechanism",
                    "lock_number_of_keys",
                    "lock_keys_present",
                    "lock_comes_with_bracket"
                ]
            },
            {
                "id": "security",
                "title": "Security ratings and dimensions",
                "layout": "two_columns",
                "fields": [
                    "lock_security_rating_sold_secure",
                    "lock_security_rating_art",
                    "lock_cut_resistance",
                    "lock_shackle_diameter_mm",
                    "lock_length_cm",
                    "lock_weight_g"
                ]
            },
            {
                "id": "status",
                "title": "Status and follow-up",
                "layout": "highlight_box",
                "fields": [
                    "lock_status",
                    "lock_condition",
                    "lock_commissioning_date"
                ]
            },
            {
                "id": "location",
                "title": "Location",
                "layout": "two_columns",
                "fields": [
                    "lock_site",
                    "lock_storage_location"
                ]
            },
            {
                "id": "commercial",
                "title": "Purchase",
                "layout": "two_columns",
                "fields": [
                    "lock_purchase_date",
                    "lock_supplier"
                ]
            },
            {
                "id": "notes",
                "title": "Notes",
                "layout": "full_width",
                "fields": [
                    "lock_notes"
                ]
            }
        ],
        "field_render": {
            "lock_status": {
                "style": "highlight",
                "color_by_value": {
                    "in_service": "#1f8a1f",
                    "in_stock": "#888888",
                    "out_of_order": "#c00000",
                    "decommissioned": "#555555"
                }
            },
            "lock_condition": {
                "style": "highlight",
                "color_by_value": {
                    "new": "#1f8a1f",
                    "good": "#1f8a1f",
                    "worn": "#e69500",
                    "defective": "#c00000"
                }
            },
            "lock_inventory_number": {
                "style": "bold",
                "frame": true
            },
            "lock_security_rating_sold_secure": {
                "style": "highlight",
                "color_by_value": {
                    "bronze": "#cd7f32",
                    "silver": "#aaaaaa",
                    "gold": "#c8a000",
                    "diamond": "#00bcd4",
                    "not_rated": "#888888"
                }
            },
            "lock_notes": {
                "min_height": 30,
                "show_if_empty": false
            },
            "lock_shackle_diameter_mm": {
                "suffix": " mm"
            },
            "lock_length_cm": {
                "suffix": " cm"
            },
            "lock_weight_g": {
                "suffix": " g"
            }
        }
    }
}
