-
-
Notifications
You must be signed in to change notification settings - Fork 759
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Shipment Reports * bump api version due to changed enums --------- Co-authored-by: Matthias Mair <[email protected]>
- Loading branch information
Showing
7 changed files
with
95 additions
and
3 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
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
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
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
56 changes: 56 additions & 0 deletions
56
src/backend/InvenTree/report/templates/report/inventree_sales_order_shipment_report.html
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,56 @@ | ||
{% extends "report/inventree_order_report_base.html" %} | ||
|
||
{% load i18n %} | ||
{% load report %} | ||
{% load barcode %} | ||
{% load inventree_extras %} | ||
{% load markdownify %} | ||
|
||
{% block header_content %} | ||
|
||
<img class='logo' src='{% company_image order.customer %}' alt="{{ order.customer }}" width='150'> | ||
|
||
<div class='header-right'> | ||
<h3>{% trans "Shipment" %} {{ prefix }}{{ reference }}</h3> | ||
<i>{% trans "Sales Order" %} {{ order.reference }}</i><br/> | ||
{{ order.customer.name }} | ||
</div> | ||
|
||
{% endblock header_content %} | ||
|
||
{% block page_content %} | ||
|
||
<h3>{% trans "Allocations" %}</h3> | ||
|
||
<table class='table table-striped table-condensed'> | ||
<thead> | ||
<tr> | ||
<th>{% trans "Part" %}</th> | ||
<th>{% trans "Stock Item" %}</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% for allocation in allocations.all %} | ||
<tr> | ||
<td> | ||
<div class='thumb-container'> | ||
<img src='{% part_image allocation.line.part height=240 %}' alt='{% trans "Part image" %}' class='part-thumb'> | ||
</div> | ||
<div class='part-text'> | ||
{{ allocation.line.part.full_name }} | ||
</div> | ||
</td> | ||
|
||
{% if allocation.item and allocation.item.serial and allocation.quantity == 1 %} | ||
<td>{% trans "Serial Number" %}: {{ allocation.item.serial }}</td> | ||
{% elif allocation.item and allocation.item.batch %} | ||
<td>{% trans "Quantity" %}: {% decimal allocation.quantity %} - <i>{% trans "Batch" %}: {{ allocation.item.batch }}</i></td> | ||
{% else %} | ||
<td>{% trans "Quantity" %}: {% decimal allocation.quantity %}</td> | ||
{% endif %} | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
|
||
{% endblock page_content %} |
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
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