Erpnext 销售订单 Jinja 打印模板,带行号,带图片

本文是一份销售确认文档,包含了订单号、日期、交易条件、装货港、目的地、买家信息、商品详细列表(包括SKU、名称、数量、单价等)、总价以及支付和条款说明。
摘要由CSDN通过智能技术生成
<head>
  <style type="text/css">
    table,
    tr,
    td {
      border: 1px solid #000;
      font-size: small;
      height: 20px;
      font-family: Arial, Helvetica, sans-serif;

    }

    .auto-style1 {
      border-color: #FFFFFF;
    }

    .auto-style2 {
      background-color: #C0C0C0;
    }

    .auto-style3 {
      color: #0000FF;
    }
  </style>
</head>


<table cellspacing="0" cellpadding="0" style="width: 100%">
  <colgroup>
    <col width="2%" span="50" />
  </colgroup>
  <tr>
    <td colspan="50" align="center" style="width: 100%; height: 20">
      <font size="+2"><strong>SALES CONFIRMATION</strong></font>
    </td>
  </tr>
  <tr>
    <td colspan="15" style="width: 30%; height: 20"><strong>{{ doc.company or "" }}</strong></td>
    <td colspan="18" rowspan="9"></td>
    <td colspan="7">Order No.:</td>
    <td colspan="10" class="auto-style3"> <strong>{{ doc.name or "" }}</strong></td>
  </tr>
  <tr>
    <td colspan="15" rowspan="3">{{ doc.dispatch_address or ""}}</td>
    <td colspan="7">Order Date:</td>
    <td colspan="10">{{ doc.get_formatted("transaction_date") or "" }}</td>
  </tr>
  <tr>
    <td colspan="7">Term of Price:</td>
    <td colspan="10">{{ doc.incoterm and doc.named_place or ""}}</td>
  </tr>
  <tr>
    <td colspan="7">Port Of Laodng:</td>
    <td colspan="10">{{ doc.port_of_loading or "" }}</td>
  </tr>
  <tr>
    <td colspan="15" style="height: 20px">Buyer:</td>
    <td colspan="7" style="height: 20px">Destination:</td>
    <td colspan="10" style="height: 20px">{{ doc.port_of_destination or "" }}</td>
  </tr>
  <tr>
    <td colspan="15"><strong>{{ doc.customer_name or "" }}</strong></td>
    <td colspan="7">Delivery Date:</td>
    <td colspan="10">{{doc.get_formatted("delivery_date") or ""}}</td>
  </tr>
  <tr>
    <td colspan="15" rowspan="3">{{ doc.address_display or "" }}</td>
    <td colspan="7">Customer PO#:</td>
    <td colspan="10">{{ doc.po_no or "" }}</td>
  </tr>
  <tr>
    <td colspan="7">Currency:</td>
    <td colspan="10">{{ doc.currency or "" }}</td>
  </tr>
  <tr>
    <td colspan="7" style="height: 20px">CPO#</td>
    <td colspan="10">{{ doc.custom_cpo_number or "" }}</td>
  </tr>
  <tr>
    <td colspan="50">
      <font size="-3">The undersigned Seller and Buyers have agreed to following transactions according to the terms and
        conditions stipulated below:</font>
    </td>
  </tr>

  {%- for item in doc.items -%}

  <tr>
    <td colspan="2" class="auto-style2">NO.</td>
    <td colspan="3" class="auto-style2">SKU#</td>
    <td colspan="6" class="auto-style2">Name</td>
    <td colspan="3" class="auto-style2">Ref. Picture</td>
    <td colspan="4" class="auto-style2">Client SKU</td>
    <td colspan="4" class="auto-style2">Client PO#</td>
    <td colspan="11" style="width: 30%; height: 20" class="auto-style2">Specfication</td>
    <td colspan="4" class="auto-style2">Quantity</td>
    <td colspan="4" class="auto-style2">Cartons</td>
    <td colspan="4" class="auto-style2">Unit Price</td>
    <td colspan="5" class="auto-style2">Amount</td>
  </tr>
  <tr>
    <td colspan="2">{{ item.idx or "" }}</td>
    <td colspan="3">{{ item.item_code or "" }}</td>
    <td colspan="6">{{ item.item_name or "" }}</td>
    <td colspan="3">
      {% if item.image %}
      <img src="{{ item.image }}" style="width: 54px !important" alt="{{ item.item_name }}" class="img-responsive" />
      {% endif %}
    </td>
    <td colspan="4">{{ item.customer_item_code or "" }}</td>
    <td colspan="4">{{ item.custom_customer_po_no or "" }}</td>
    <td colspan="11">{{ item.description or "" }}</td>
    <td colspan="4">{{ item.qty or "" }}</td>
    <td colspan="4">{{ item.cartons or "" }}</td>
    <td colspan="4">{{ item.rate or "" }}</td>
    <td colspan="5">{{ item.amount or "" }}</td>
  </tr>
  <tr>
    <td colspan="33" class="auto-style2">Total:</td>
    <td colspan="4" class="auto-style2"><strong>{{ doc.total_qty or "" }}</strong></td>
    <td colspan="4" class="auto-style2"><strong>{{ doc.total_cartons or "" }}</strong></td>
    <td colspan="4" class="auto-style2"></td>
    <td colspan="5" class="auto-style2"><strong>{{ doc.total or "" }}</strong></td>
  </tr>
  <tr>
    <td colspan="5">Say Total:</td>
    <td colspan="45">{{ doc.in_words or "" }}</td>
  </tr>

  {%- endfor -%}

  <tr>
    <td colspan="5">Payment:</td>
    <td colspan="45">{{ doc.payment_terms_template or "" }}</td>
  </tr>
  <tr>
    <td colspan="50">{{ doc.terms or "" }}</td>
  </tr>
  <tr>
    <td colspan="21" style="height: 20" class="auto-style1">
      <div align="center">Seller</div>
    </td>
    <td colspan="29" style="height: 20" class="auto-style1">
      <div align="center">Buyer</div>
    </td>
  </tr>
  <tr>
    <td colspan="21" class="auto-style1" style="height: 20">
      <div align="center">{{ doc.company or "" }}</div>
    </td>
    <td colspan="29" class="auto-style1" style="height: 20">
      <div align="center">{{ doc.customer or "" }}</div>
    </td>
  </tr>
</table>

  • 8
    点赞
  • 11
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值