Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <style = "text/css">
- h3 {
- font-size:20pt;
- font-family: Calibri, Candara, Segoe, "Segoe UI", Optima, Arial, sans-serif;
- }
- .hoffset1 { margin-top: 15px; }
- </style>
- <div class="row">
- <h3><div class ="text-right">{{ doc.select_print_heading or "INVOICE" }}</h3>
- </div>
- <div class="row">
- <div class="text-right col-md-10">INVOICE No:</div>
- <div class="text-right">{{doc.name}}</div>
- </div>
- <div class = "row hoffset1"> </div>
- <table class="table table-bordered">
- <tbody>
- <tr>
- <th>LR No</th>
- <th>DCPI No</th>
- <th>Date</th>
- <th>Destination</th>
- <th class="text-right">Truck No</th>
- <th class="text-right">Weight</th>
- <th class="text-right">Rate</th>
- <th class="text-right">Freight</th>
- </tr>
- {%- for row in doc.entries -%}
- <tr>
- <td style="width: 3%;">{{ row.l_r_no }}</td>
- <td style="width: 20%;">{{ row.dcpi_no }}</td>
- <td style="width: 37%;">{{ doc.get_formatted("posting_date") }}
- <td style="width: 10%; text-align: right;">{{ row.destination }}</td>
- <td style="width: 10%; text-align: right;">{{ row.lr_no }}</td>
- <td style="width: 10%; text-align: right;">{frappe.db.get_value("[]", "[Delivery Note Item]", { row.qty })}</td>
- <td style="width: 15%; text-align: right;">{frappe.db.get_value("[]", "[Delivery Note Item]", {row.get_formatted("rate", doc) })}</td>
- <td style="width: 15%; text-align: right;">{frappe.db.get_value("[]", "[Delivery Note Item]", {row.get_formatted("amount", doc) })}</td>
- </tr>
- {%- endfor -%}
- </tbody>
- <tr>
- <td colspan="5" class = "text-right">Total</td>
- <td class = "text-right">{{doc.grand_total}}</td>
- </tr>
- </table>
- <div style = "float:right">
- <table>
- <tr><td>
- <div class = "row">
- Rounded Total:{{doc.rounded_total}}
- <div>
- </tr></td>
- <tr><td>
- <div class = "row">
- In Words:{{doc.in_words}}
- <div>
- </tr></td>
- </table>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement