Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#6 - pick list form #7

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions picklist/footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<div style="font-size: 10px; padding-top: 8px; text-align: center; width: 100%;">
</span>Page number: <span class="pageNumber"></span>
</div>
20 changes: 20 additions & 0 deletions picklist/header.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<div style="font-size: 10px; padding-top: 8px; text-align: center; width: 98%;">
<table class="header_image_section" style="width: 98%;height: 98%;">
<tr>
<td style="padding-left: 8px;">
<img style='display:block; width:25%;' src="{% include "logo_msupply" %}"/>
</td>
<td>
<span style="text-align: center;font-size: 7pt;font-weight: bold;font-family: Tahoma;">National Medical Store Nepal</span><br>
<span style="text-align: center;font-size: 6pt;font-family: Tahoma;">Kanibahal,Lagankhel Lalitpur, Kathmandu, Nepal</span><br>
<span style="text-align: center;font-size: 5pt;font-family: Tahoma;">Opposite NIMS College</span>
</td>
<td style="padding-left: 8px;">
<span class="invoice_number"
style="text-align: right;font-weight: bold;font-size: 7pt;float: right;margin-left: 20px;">
Packing slip #: {{ data.invoice.invoiceNumber }}
</span>
</td>
</tr>
</table>
</div>
76 changes: 76 additions & 0 deletions picklist/picklist.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
@media print{
@page {
size: portrait
}
}
.header_image_section, .header_supplied_section, .header_date_section, .body_section, .body_total_section {
margin-left: 8px;
}

.header_supplied_section {
width: 98%;
font-family: Tahoma;
font-size: 8pt;
border-bottom: 0.5px solid black;
padding-top: 1pt;
}

.header_image_section {
width: 98%;
font-family: Tahoma;
font-size: 8pt;
border-bottom: 0.5px solid black;
padding-top: 8pt;
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

.header_date_section {
width: 98%;
font-family: Tahoma;
font-size: 8pt;
border-bottom: 0.5px solid black;
padding-top: 1pt;
}

.header_section_field_right {
text-align: right;
font-family: Tahoma;
font-size: 8pt;
}

.header_section_field_left {
text-align: left;
font-family: Tahoma;
font-size: 8pt;
}

.line_number, .quantity, .pack, .expiry{
text-align: right;
font-family: Tahoma;
font-size: 8pt;
}

.location, .item_name, .batch, .issued {
text-align: left;
font-family: Tahoma;
font-size: 8pt
}

.body_section, .body_total_section {
width: 98%;
font-family: Tahoma;
}

.body_section tr.body_column_label th {
border-bottom: 0.5px solid black;
}

.body_value td {
border-bottom: 0.5px solid black;
}

hr {
width: 98%;
margin-left: 8px;
border: 0.1px solid black;
}
52 changes: 52 additions & 0 deletions picklist/picklist.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<style>
{% include "picklist.css" %}
</style>
<hr />

<table class="header_supplied_section">
<tr>
<td class="header_section_field_left"></td>
<td id= "date" class="header_section_field_right"> Printed date: {{ now() | date(format="%m/%d/%Y") }}</td>
</tr>

<tr>
<td class="header_section_field_left">Supplied to:</td>
<td class="header_section_field_right">Status: {{ data.invoice.status }}</td>
</tr>

<tr>
<td class="header_section_field_left">{{ data.invoice.otherPartyName }}</td>
<td class="header_section_field_right">Entered date: {{ data.invoice.createdDatetime | date(format="%m/%d/%Y") }}</td>
</tr>

<tr>
<td class="header_section_field_left">Lalitpur, Kathmandu, Nepal Opposite NIMS College</td>
<td class="header_section_field_right">Confirmed Date: {{ data.invoice.createdDatetime | date(format="%m/%d/%Y") }}</td>
</tr>

</table>

<table class="body_section" cellpadding="2" cellspacing="0">
<tr class="body_column_label">
<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 class="body_value">
<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: 40%;">{{ 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: 8%;">{{ line.expiryDate }}</td>
</tr>
{%- endfor %}
</table>