{% extends 'base.html' %} {% load static %} {% block title %}{{ location.name }} - Location Details{% endblock %} {% block content %}
Location Information
{% if location.is_active %} Active {% else %} Inactive {% endif %}
Basic Information
Location Code: {{ location.location_code }}
Name: {{ location.name }}
Type: {{ location.get_location_type_display }}
Parent Location: {% if location.parent_location %} {{ location.parent_location.location_code }} - {{ location.parent_location.name }} {% else %} None {% endif %}
Manager: {{ location.location_manager.get_full_name|default:"Not assigned" }}
Physical Location
Building: {{ location.building|default:"-" }}
Floor: {{ location.floor|default:"-" }}
Room: {{ location.room|default:"-" }}
Zone: {{ location.zone|default:"-" }}
Full Address: {{ location.full_address|default:"Not specified" }}
{% if location.description %}
Description

{{ location.description }}

{% endif %}
Environmental Controls & Capacity
Temperature Control
{% if location.temperature_controlled %}
Temperature Controlled
Range: {{ location.temperature_min|default:"N/A" }}°C to {{ location.temperature_max|default:"N/A" }}°C
{% else %}
No temperature control
{% endif %}
Humidity Control
{% if location.humidity_controlled %}
Humidity Controlled
Range: {{ location.humidity_min|default:"N/A" }}% to {{ location.humidity_max|default:"N/A" }}%
{% else %}
No humidity control
{% endif %}
Capacity Information
Capacity: {{ location.capacity_cubic_feet|default:"Not specified" }} cubic feet
Max Weight: {{ location.max_weight_pounds|default:"Not specified" }} pounds
Security & Access
Access Control: {% if location.access_control == 'OPEN' %} {{ location.get_access_control_display }} {% elif location.access_control == 'BADGE' %} {{ location.get_access_control_display }} {% elif location.access_control == 'BIOMETRIC' %} {{ location.get_access_control_display }} {% else %} {{ location.get_access_control_display }} {% endif %}
Secure Location: {% if location.secure_location %} Yes {% else %} No {% endif %}
{% if child_locations %}
Child Locations
{% for child in child_locations %} {% endfor %}
Code Name Type Items Status Action
{{ child.location_code }} {{ child.name }} {{ child.get_location_type_display }} {{ child.total_items|default:0 }} {% if child.is_active %} Active {% else %} Inactive {% endif %}
{% endif %}
Location Statistics

{{ location.total_items|default:0 }}

Total Items

{{ location.total_quantity|default:0 }}

Total Quantity

${{ location.total_value|default:0|floatformat:2 }}

Total Value

{{ child_locations|length }}

Child Locations

Recent Activity

Stock Added

Surgical Gloves - 500 units 2 hours ago

Stock Removed

Bandages - 50 units 4 hours ago

Stock Transfer

Syringes moved to OR-001 6 hours ago

Location Updated

Temperature range modified 1 day ago
Quick Actions
View Stock Items
Stock Items in Location
{% for stock in stock_items %} {% empty %} {% endfor %}
Item Code Item Name Lot Number Quantity Available Unit Cost Total Value Expiration Status Action
{{ stock.inventory_item.item_code }} {{ stock.lot_number|default:"-" }} {{ stock.quantity_on_hand }} {{ stock.quantity_available }} ${{ stock.unit_cost|floatformat:2 }} ${{ stock.total_cost|floatformat:2 }} {% if stock.expiration_date %} {% if stock.is_expired %} {{ stock.expiration_date }} {% elif stock.days_to_expiry < 30 %} {{ stock.expiration_date }} {% else %} {{ stock.expiration_date }} {% endif %} {% else %} No expiry {% endif %} {% if stock.quality_status == 'GOOD' %} {{ stock.get_quality_status_display }} {% elif stock.quality_status == 'QUARANTINE' %} {{ stock.get_quality_status_display }} {% else %} {{ stock.get_quality_status_display }} {% endif %}
No stock items in this location
{% if location.notes %}
Notes

{{ location.notes|linebreaks }}

{% endif %}
{% endblock %}