-
Notifications
You must be signed in to change notification settings - Fork 49
Expand file tree
/
Copy pathdelivery_note_v6.html
More file actions
80 lines (70 loc) · 2.53 KB
/
delivery_note_v6.html
File metadata and controls
80 lines (70 loc) · 2.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
{%- macro add_header(page_num, max_pages, doc, letter_head, no_letterhead) -%}
{% if letter_head and not no_letterhead %}
<div class="letter-head">{{ letter_head }}</div>
{% endif %}
{%- if doc.meta.is_submittable and doc.docstatus==0-%}
<div class="alert alert-info text-center">
<h4 style="margin: 0px;">{{ _("DRAFT") }}</h4></div>
{%- endif -%}
{%- if doc.meta.is_submittable and doc.docstatus==2-%}
<div class="alert alert-danger text-center">
<h4 style="margin: 0px;">{{ _("CANCELLED") }}</h4></div>
{%- endif -%}
{% if max_pages > 1 %}
<p class="text-right">{{ _("Page #{0} of {1}").format(page_num, max_pages) }}</p>
{% endif %}
{%- endmacro -%}
{{ add_header(0,1,doc,letter_head, no_letterhead) }}
<div class="print-heading">
<h2>Delivery Note<br>
<small>{{ doc.name or ''}}</small>
</h2>
</div>
<div class="row">
<div class="col-xs-6">
<div class="row">
<div class="col-xs-5 text-right"><label>Customer Name</label></div>
<div class="col-xs-7 ">{{ doc.customer }} </div>
</div>
{%- if doc.address_display -%}
<div class="row">
<div class="col-xs-5 text-right"><label>Address</label></div>
<div class="col-xs-7 ">{{ doc.address_display or ''}}</div>
</div>
{%- endif -%}
</div>
<div class="col-xs-6">
<div class="row">
<div class="col-xs-5 text-right"> <label>Date</label> </div>
<div class="col-xs-7 ">
{{ doc.get_formatted("posting_date") or ''}}</div>
</div>
</div>
</div>
<br>
<table class="table table-condensed table-hover table-bordered">
<tr>
<th>Sr</th>
<th>Description</th>
<th class="text-right">Pieces </th>
</tr>
{%- for row in doc.items -%}
<tr>
<td style="width: 10%;">{{ row.idx }}</td>
<td style="width: 70%;">
{% if row.in_format_data("image") and row.get("image") -%}
<div class="pull-left" style="max-width: 20%; margin-right: 10px;">
<img src="{{ row.image }}" style="max-width: 100%">
</div>
{%- endif %}
<b>{{ row.item_code or '' }} </b><br>
{{ row.description or '' }} </td>
<td style="width: 20%; text-align: right;">{{ row.qty }}</td>
</tr>
{%- endfor -%}
</tbody>
</table>
<br>
<div class="row">
<div class="col-xs-12 text-left">{{ doc.terms or '' }}</div>
</div>