{% extends "base.html" %} {% load static %} {% block title %}{% if object %}Edit{% else %}New{% endif %} Inventory - Pharmacy{% endblock %} {% block content %}

{% if object %}Edit Inventory{% else %}New Inventory{% endif %} {% if object %}{{ object.medication.name }}{% else %}Add medication to inventory{% endif %}

Inventory Details

{% csrf_token %}
{{ form.medication }} {% if form.medication.errors %}
{{ form.medication.errors.0 }}
{% endif %}
Select the medication for this inventory record.
{{ form.location }} {% if form.location.errors %}
{{ form.location.errors.0 }}
{% endif %}
Storage location.
Stock Levels
{{ form.current_stock }} {% if form.current_stock.errors %}
{{ form.current_stock.errors.0 }}
{% endif %}
Current quantity on hand.
{{ form.minimum_stock }} {% if form.minimum_stock.errors %}
{{ form.minimum_stock.errors.0 }}
{% endif %}
Minimum safe stock level.
{{ form.reorder_level }} {% if form.reorder_level.errors %}
{{ form.reorder_level.errors.0 }}
{% endif %}
Trigger point for reordering.
{{ form.maximum_stock }} {% if form.maximum_stock.errors %}
{{ form.maximum_stock.errors.0 }}
{% endif %}
Maximum storage capacity.
Location and Storage
{{ form.bin_location }} {% if form.bin_location.errors %}
{{ form.bin_location.errors.0 }}
{% endif %}
Specific bin or shelf location.
{{ form.storage_conditions }} {% if form.storage_conditions.errors %}
{{ form.storage_conditions.errors.0 }}
{% endif %}
Special storage requirements.
Cost and Pricing
{{ form.unit_cost }} {% if form.unit_cost.errors %}
{{ form.unit_cost.errors.0 }}
{% endif %}
Cost per unit.
{{ form.wholesale_cost }} {% if form.wholesale_cost.errors %}
{{ form.wholesale_cost.errors.0 }}
{% endif %}
Wholesale acquisition cost.
Calculated total value.
Lot and Expiration
{{ form.lot_number }} {% if form.lot_number.errors %}
{{ form.lot_number.errors.0 }}
{% endif %}
Manufacturer lot number.
{{ form.expiration_date }} {% if form.expiration_date.errors %}
{{ form.expiration_date.errors.0 }}
{% endif %}
Product expiration date.
{{ form.manufacture_date }} {% if form.manufacture_date.errors %}
{{ form.manufacture_date.errors.0 }}
{% endif %}
Product manufacture date.
Supplier Information
{{ form.supplier }} {% if form.supplier.errors %}
{{ form.supplier.errors.0 }}
{% endif %}
Primary supplier for this medication.
{{ form.lead_time_days }} {% if form.lead_time_days.errors %}
{{ form.lead_time_days.errors.0 }}
{% endif %}
Typical delivery lead time.
{{ form.notes }} {% if form.notes.errors %}
{{ form.notes.errors.0 }}
{% endif %}
Additional notes or comments.

Inventory Guidelines

Best Practices
  • Set minimum stock above safety stock
  • Reorder level should account for lead time
  • Maximum stock should consider storage capacity
  • Include lot numbers for tracking
  • Monitor expiration dates closely
  • Update costs regularly
Validation Checks
  • Stock levels validation pending
  • Cost validation pending
  • Expiration date pending
  • Location validation pending

Quick Actions

Form Status

Draft inventory record
Last saved: Never
Auto-save: Enabled
Validation: Pending
{% endblock %} {% block js %} {% endblock %}