Skip to content

Commit

Permalink
msupply-foundation#6 - pick list form
Browse files Browse the repository at this point in the history
  • Loading branch information
bijaySussol committed May 20, 2022
1 parent 5cb478f commit 55c8b8f
Show file tree
Hide file tree
Showing 4 changed files with 117 additions and 0 deletions.
2 changes: 2 additions & 0 deletions picklist/footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<div style="font-size: 10px; padding-top: 8px; text-align: center; width: 100%;">
</div>
4 changes: 4 additions & 0 deletions picklist/header.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<div style="font-size: 13px; padding-top: 15px; text-align: center; width: 100%;">
<span>{{ data.invoice.otherPartyName }}</span>
</div>

48 changes: 48 additions & 0 deletions picklist/picklist.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
@media print{
@page {
size: portrait
}
}

.header_section_field {
text-align: right;
font-family: Verdana;
font-size: xx-small;
}
.header_section_invoice_field {
text-align: right;
font-family: Verdana;
font-size: small;
font-weight: bold;

}
.header_section_field_supp_to {
text-align: left;
font-family: Verdana;
font-size: x-small;
font-weight: bold;
}
.header_section_field_sup_add_label {
text-align: left;
font-family: Verdana;
font-size: xx-small;
}

.header_section, .body_section {
max-width: 100%;
font-family: Verdana;
font-size: x-small;
width: 690px;
}
.line_number, .quantity, .issued, .pack, .expiry {
font-size: x-small;
text-align: right;
font-family: Verdana;
}

.location, .item_name, .batch {
font-size: x-small;
text-align: left;
font-family: Verdana;
}

63 changes: 63 additions & 0 deletions picklist/picklist.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
<style>
{% include "picklist.css" %}
</style>

<table class="header_section">
<tr>
<td class="header_section_field"></td>
<th class="header_section_invoice_field"
style="text-align: right;">Packing Slip: {{ data.invoice.invoiceNumber }}
</th>
</tr>

<tr>
<td class="header_section_field"></td>
<td id= "date" class="header_section_field">Printed date: 2022-05-19</td>
</tr>

<tr>
<td class="header_section_field"></td>
<td class="header_section_field">Status: {{ data.invoice.status }}</td>
</tr>

<tr>
<td class="header_section_field_supp_to">Supplied to: {{ data.invoice.otherPartyName }}</td>
<td class="header_section_field">Entered date: {{ data.invoice.createdDatetime }}</td>
</tr>

<tr>
<td class="header_section_field_sup_add_label">Kanibahal,Lagankhel</td>
<td class="header_section_field">Our ref: {{ data.invoice.theirReference }}</td>
</tr>

<tr>
<td class="header_section_field_sup_add_label">Lalitpur, Kathmandu, Nepal Opposite NIMS College</td>
<td class="header_section_field"></td>
</tr>

</table>

<table class="body_section">
<tr>
<th class="line_number" style="width: 5%;">Line</th>
<th class="location" style="width: 13%;">Location</th>
<th class="item_name" style="width: 38%;">Item name</th>
<th class="quantity" style="width: 8%;">Quantity</th>
<th class="issued" style="width: 5%;">Issued</th>
<th class="pack" style="width: 8%;">Pack</th>
<th class="batch" style="width: 8%;">Batch</th>
<th class="expiry" style="width: 10%;">Expiry</th>
</tr>
{% for line in data.invoice.lines.nodes -%}
<tr>
<td class="line_number" style="width: 5%;">{{ loop.index }}</td>
<td class="location" style="width: 13%;">{{ line.locationName }}</td>
<td class="item_name" style="width: 38%;">{{ line.itemName }}</td>
<td class="quantity" style="width: 8%;">{{ line.numberOfPacks }}</td>
<td class="issued" style="width: 5%;">___________</td>
<td class="pack" style="width: 8%;">{{ line.packSize }}</td>
<td class="batch" style="width: 8%;">{{ line.batch }}</td>
<td class="expiry" style="width: 10%;">{{ line.batch }}</td>
</tr>
{%- endfor %}
</table>

0 comments on commit 55c8b8f

Please sign in to comment.