{% extends "contracts/base.html" %}{% block title %}Import{% endblock %} {% block content %}

CSV import

{% csrf_token %}

Upload

{{ form.as_p }}

Each file is imported all-or-nothing. Imported contracts start as drafts: finish them in the wizard (identify POs → allocation → activate).

Formats

contracts.csv
number,customer,region,country,start,end,currency,discount,description

lines.csv
contract,product,quantity,unit_price,start,end,po_group,delivery_date,bears_discount

invoices.csv
contract,number,date,amount,memo

Dates are YYYY-MM-DD; product is the product code. Samples live in examples/.

{% endblock %}