{% extends "base.html" %}
{% block title %}New Sales Return{% endblock %}
{% block content %}
<div class="space-y-4">
  <h1 class="text-2xl font-bold">New Sales Return</h1>
  <form method="post" class="card bg-base-100 border border-base-200 p-6 space-y-4">
    {% csrf_token %}
    {{ form.as_p }}
    <h2 class="font-semibold">Items</h2>
    {{ formset.management_form }}
    {% for item_form in formset %}
      <div class="border border-base-200 rounded p-3">{{ item_form.as_p }}</div>
    {% endfor %}
    <button class="btn btn-primary">Save Return</button>
  </form>
</div>
{% endblock %}
