forked from msupply-foundation/openmsupply-forms
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
msupply-foundation#6 - pick list form
- Loading branch information
bijaySussol
committed
May 20, 2022
1 parent
5cb478f
commit 55c8b8f
Showing
4 changed files
with
117 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |