{% extends parameters.print ? "printbase" : "base" %}
{% block extrastyles %}
/*! normalize.css v2.0.1 | MIT License | git.io/normalize */
header { display: block }
html {
font-family: sans-serif;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
}
body { margin: 0 }
b,
strong { font-weight: bold }
small { font-size: 80% }
table {
border-collapse: collapse;
border-spacing: 0;
}
* { box-sizing: border-box }
@media print {
html,
body { font-size: 75% }
}
@media screen {
.document html,
body { margin: 1rem }
}
body { font-family: "Open Sans", Helvetica, Arial, Verdana, sans-serif }
h2,
h3,
h4,
h5,
h6 {
font-weight: 400;
color: #000;
margin: .5em 0 .25em;
}
h3,
h4,
h5,
h6 {
font-weight: 600;
}
h2 small {
font-weight: 400;
font-size: 75%;
color: #666;
}
h5,
h6 { color: #444 }
h2 { font-size: 2rem }
h3 { font-size: 1.5rem }
h4 { font-size: 1.25rem }
h5 { font-size: 1rem; }
h6 {
font-size: .875rem;
text-transform: uppercase;
}
p { font-size: 1rem }
p.xs { font-size: .75rem }
p.s { font-size: .875rem }
.row { overflow: hidden }
@media (min-width: 480px) {
.col-md-6 { width: 50% }
}
@media (min-width: 480px) {
.col-md-6 { float: left }
.col-spacerL-md6 { margin-left: 50% }
}
table.document { width: 100% }
table.document td,
table.document th {
padding: .375rem;
vertical-align: top;
}
table.document th {
text-align: left;
text-transform: uppercase;
}
table.document td.money { text-align: right }
table.document td.money:before { margin-right: .125rem; }
table.document thead {
border-bottom: 1px solid #666;
border-top: 1px solid #666;
}
table.document thead th {
padding-top: .25rem;
padding-bottom: .25rem;
background-color: #f8f8f8;
font-size: .75rem;
line-height: 1.5;
}
table.document tbody td { border: 1px solid #666 }
table.document tbody td.money {
position: relative;
padding-left: .5rem;
}
table.document tbody td.money:before {
position: absolute;
left: .5rem;
}
table.document tfoot {
border-top: 4px solid #444;
font-weight: bold;
}
table.document tfoot td {
font-weight: bold;
}
table.document tfoot .total {
font-size: 1.125rem;
}
table.document tfoot .leading-row-gap td,
table.document tfoot .leading-row-gap th {
padding-top: 15px;
}
table.document tfoot .minor td,
table.document tfoot .minor th {
font-weight: normal;
line-height: 1;
text-transform: none;
}
* { box-sizing: border-box }
.u-margin-An { margin: 0 }
.u-margin-Tn { margin-top: 0 }
.u-margin-Bxl { margin-bottom: 30px }
.u-margin-Vn {
margin-top: 0;
margin-bottom: 0;
}
.u-margin-Vxxs {
margin-top: 4px;
margin-bottom: 4px;
}
html { height: 100% }
{% endblock extrastyles %}
{% block content %}
{% for VendorReturn in VendorReturns %}
Return to Vendor #{{ VendorReturn.vendorReturnID }}
{% if VendorReturn.sentDate %}
Date Sent: {{ VendorReturn.sentDate|date('Y-m-d', false) }}
{% endif %}
{% if VendorReturn.refNum|strlen > 0 %}
Reference# {{ VendorReturn.refNum }}
{% endif %}
{{ ContactAddress|address|raw }} {% endfor %} {% if VendorReturn.Shop.Contact.Phones.ContactPhone.number %}
{{ VendorReturn.Shop.Contact.Phones|phonelist|raw}}
{% endif %}
{% for VendorRep in VendorReturn.Vendor.Reps.VendorRep %}
ATTN: {{ VendorRep.firstName }}
{{ VendorRep.lastName }}
{% if not loop.last %}
{% endif %}
{% endfor %}
{% if VendorReturn.Vendor.accountNumber|strlen > 0 %}
Account # {{ VendorReturn.Vendor.accountNumber }}
{% endif %}
{{ ContactAddress|address|raw }}
{% endfor %} {% if VendorReturn.Vendor.Contact.Phones.ContactPhone.number %}{{ VendorReturn.Vendor.Contact.Phones|phonelist|raw}}
{% endif %}Vendor ID | Qty | Description | PO | Reason | {% if view_cost == true %}Unit Cost | Total | {% endif %}
---|
{{ VendorReturn.Note.note|noteformat|raw }}
{% endif %} {% endfor %} {% endblock content %} {% macro vendorReturnItemRow(VendorReturn, VendorReturnItem, view_cost) %} {% set line_total = (VendorReturnItem.cost|floatval * VendorReturnItem.quantity) %}