{% extends parameters.print ? "printbase" : "base" %} {% block extrastyles %} @page { margin: 0px; } body{ margin: 0px; } .pagebreak { page-break-after: always; } .workorder { margin: 0px; padding: 1px; font: normal 10pt 'Helvetica Neue',Helvetica,Arial,sans-serif; } .header { text-align: center; margin-bottom: 30px; } .header p { margin: 0; } .header h1 { text-align: center; font-size: 12pt; } .header h3 { font-size: 10pt; margin: 0; } .header h1 strong { border: 3px solid black; font-size: 24pt; padding: 10px; } .header img { display: block; margin: 8px auto 4px; height: {{ Workorder.Shop.ReceiptSetup.logoHeight }}; width: {{ Workorder.Shop.ReceiptSetup.logoWidth }} } .detail h2 { margin: 0px 0px 10px 0px; padding: 0px; font-size: 11pt; } .detail h3 { margin: 0px 0px 10px 0px; padding: 0px; font-size: 11pt; text-decoration: underline; } .detail { margin-bottom: 1em; } .detail p { margin: 0; } table.lines, table.totals { width: 100%; border-spacing:0; border-collapse:collapse; } table.lines td { padding: 4px 0; } table.totals td { margin: 0px; } table.lines th { font-size: 10pt; border-bottom: 1px solid #000; margin-bottom: 3px; text-align: left; } table.lines td.notes { margin-left: 15px; } table td.amount { width: 10%; text-align: left; } table.totals { text-align: right; border-top: 1px solid #000; } table.totals tr td:first-child { padding-right: 10px; } table tr.total td { font-weight: bold; } table .description { font-weight: bold; } table p { font-weight: normal; margin: 0; } .notes { overflow: hidden; margin: 0 0 1em; } .notes h1 { margin: 1em 0 0; } img.barcode { display: block; margin: 2em auto; } {% endblock extrastyles %} {% block content %} {% for Workorder in Workorders %}
{{ Workorder.Shop.Contact.Addresses.ContactAddress.address1 }}
{{ Workorder.Shop.Contact.Addresses.ContactAddress.city }}, {{ Workorder.Shop.Contact.Addresses.ContactAddress.state }} {{ Workorder.Shop.Contact.Addresses.ContactAddress.zip }}
{{ Workorder.Shop.Contact.Phones.ContactPhone.number }}
{% endif %} {% endif %}{{ Workorder.Customer.firstName}} {{ Workorder.Customer.lastName}}
{{ Workorder.Customer.Contact.Addresses.ContactAddress.address1 }}
{{ Workorder.Customer.Contact.Addresses.ContactAddress.address2 }}
{{ Workorder.Customer.Contact.Addresses.ContactAddress.city }}{% if Workorder.Customer.Contact.Addresses.ContactAddress.city and (Workorder.Customer.Contact.Addresses.ContactAddress.state or Workorder.Customer.Contact.Addresses.ContactAddress.zip) %},{% endif %} {{ Workorder.Customer.Contact.Addresses.ContactAddress.state }} {{ Workorder.Customer.Contact.Addresses.ContactAddress.zip }}
{% for ContactPhone in Workorder.Customer.Contact.Phones.ContactPhone %}{{ ContactPhone.number }} ({{ ContactPhone.useType }})
{% endfor %} {% for ContactEmail in Workorder.Customer.Contact.Emails.ContactEmail %}{{ ContactEmail.address }}
{% endfor %}{% if Workorder.Serialized.description|strlen > 0 %} {{ Workorder.Serialized.description }} {% elseif Workorder.Serialized.Item.description|strlen > 0 %} {{ Workorder.Serialized.Item.description }} {% endif %} {% if Workorder.Serialized.colorName|strlen > 0 %} / {{ Workorder.Serialized.colorName }} {% endif %} {% if Workorder.Serialized.sizeName|strlen > 0 %} / {{ Workorder.Serialized.sizeName }} {% endif %} {% if Workorder.Serialized.serial|strlen > 0 %} / {{ Workorder.Serialized.serial }} {% endif %}
Item/Labor | Notes | Charge | ||
---|---|---|---|---|
{% else %} |
{% if WorkorderItem.unitQuantity > 0 %}
{{ WorkorderItem.unitQuantity }} ×
{% endif %}
{{ WorkorderItem.Item.description }}
{% if WorkorderItem.Discount %}
Discount: {{ WorkorderItem.Discount.name }} (-{{ WorkorderItem.SaleLine.calcLineDiscount|money }}) {% endif %} |
{% endif %}
{{ WorkorderItem.note }} | {% if WorkorderItem.warranty == 'true' %}$0.00 {% endif %} {% if WorkorderItem.warranty == 'false' %} | {{ WorkorderItem.SaleLine.calcSubtotal|money }} | {% endif %}
{{ WorkorderLine.Item.description }}
{% if WorkorderLine.Discount %}
Discount: {{ WorkorderLine.Discount.name }} (-{{ WorkorderLine.SaleLine.calcLineDiscount|money }}) {% endif %} |
{{ WorkorderLine.note }} | {% else %}
{{ WorkorderLine.note }}
{% if WorkorderLine.Discount %}
Discount: {{ WorkorderLine.Discount.name }} (-{{ WorkorderLine.SaleLine.calcLineDiscount|money }}) {% endif %} |
{% endif %}
{{ WorkorderLine.SaleLine.calcSubtotal|money }} |
Labor | {{Workorder.MetaData.labor|money}} |
Parts | {{Workorder.MetaData.parts|money}} |
Discounts | -{{Workorder.MetaData.discount|money}} |
Tax | {{Workorder.MetaData.tax|money}} |
Total | {{Workorder.MetaData.total|money}} |
{{ Workorder.Shop.ReceiptSetup.workorderAgree|noteformat|raw }}
X_______________________________