{% extends "erp_base.html" %} {% block head_extra %}{% endblock %} {% block content %} {% include "inout/_nav.html" %} {% if order %}발주서 고치기 · {{ order.order_no }}{% else %}새 발주서{% endif %} {% if from_catalog %}제품은 옵션 → 상품 정보의 단품에서 고릅니다(단가 함께){% else %}제품은 코드표의 단품에서 고릅니다{% endif %} {% if error %}{% for line in error.split('\n') %}{{ line }}{% endfor %}{% endif %} {% if not items_enabled %}제품을 고를 목록이 없습니다 — 관리자가 옵션 → 상품 정보에서 단품을 불러오거나 코드표 DB(ITEMCODE_DB_URL)를 연결해야 합니다.{% endif %} 공장 * 공장 고르기 {% for f in factories %}{{ f.name }}{% endfor %} {% if not factories %}공장이 없습니다 — 관리자가 옵션에서 먼저 공장을 추가해야 합니다.{% endif %} 발주일 * 입고 예정일 메모 #제품(코드·이름으로 검색)발주 수량단가(원)금액(원)줄 메모 {% for ln in lines %} {% set received = (order.lines | selectattr('item_code', 'equalto', ln.code) | map(attribute='received') | first) if order else 0 %} {% if received %}입고 {{ '{:,}'.format(received) }}개 — 제품은 그대로, 수량만 바꿀 수 있습니다{% endif %} {{ ln.price_label or '-' }} - {% if not received %}✕{% endif %} {% endfor %} + 제품 줄 추가 합계 0개 · 0종 · 금액 0원 - - ✕ 취소 {% if order %}고친 내용 저장{% else %}발주서 저장{% endif %} {% endblock %} {% block scripts %}{% endblock %}