{% 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 %}
{% if parameters.type == 'invoice' %} {% if Workorder.Shop.ReceiptSetup.hasLogo == "true" %} {% else %}

{{ Workorder.Shop.name }}

{% endif %} {% if Workorder.Shop.ReceiptSetup.header|strlen > 0 %} {{ Workorder.Shop.ReceiptSetup.header|nl2br|raw }} {% else %}

{{ 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 %}

Work Order


#{{ Workorder.workorderID }}

{% if parameters.type == 'shop-tag' %} {% if Workorder.hookIn|strlen > 0 or Workorder.hookOut|strlen > 0 %}

Hook In: {{Workorder.hookIn}}
Hook Out: {{Workorder.hookOut}}

{% endif %} {% endif %}

Customer:

{{ 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 %}
{% for serializedID in Workorder.Serialized %}

Work Order Item:

{% 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 %}


{% endfor %}

Started: {{Workorder.timeIn|correcttimezone|date ("m/d/y h:i a")}}
Due on: {{Workorder.etaOut|correcttimezone|date ("m/d/y h:i a")}}

{% for WorkorderItem in Workorder.WorkorderItems.WorkorderItem %} {% if WorkorderLine.itemID != 0 %} {% else %} {% endif %} {% if WorkorderItem.warranty == 'true' %} {% endif %} {% endfor %} {% for WorkorderLine in Workorder.WorkorderLines.WorkorderLine %} {% if WorkorderLine.itemID != 0 %} {% else %} {% endif %} {% endfor %}
Item/Labor Notes Charge
{% if WorkorderItem.unitQuantity > 0 %} {{ WorkorderItem.unitQuantity }} × {% endif %} {{ WorkorderItem.Item.description }} {% if WorkorderItem.Discount %}

Discount: {{ WorkorderItem.Discount.name }} (-{{ WorkorderItem.SaleLine.calcLineDiscount|money }})

{% endif %}
{{ WorkorderItem.note }} $0.00 {% endif %} {% if WorkorderItem.warranty == 'false' %} {{ WorkorderItem.SaleLine.calcSubtotal|money }}
{{ WorkorderLine.Item.description }} {% if WorkorderLine.Discount %}

Discount: {{ WorkorderLine.Discount.name }} (-{{ WorkorderLine.SaleLine.calcLineDiscount|money }})

{% endif %}
{{ WorkorderLine.note }} {{ WorkorderLine.note }} {% if WorkorderLine.Discount %}
Discount: {{ WorkorderLine.Discount.name }} (-{{ WorkorderLine.SaleLine.calcLineDiscount|money }}) {% endif %}
{{ WorkorderLine.SaleLine.calcSubtotal|money }}
{% if Workorder.MetaData.discount > 0 %} {% endif %}
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}}
{% if Workorder.note|strlen > 0 %}

Notes:

{{ Workorder.note|noteformat|raw }}
{% endif %} {% if parameters.type == 'shop-tag' %} {% if Workorder.internalNote|strlen > 0 %}

Internal Notes:

{{ Workorder.internalNote|noteformat|raw }}
{% endif %} {% endif %} {% if parameters.type == 'invoice' %} {% if Workorder.Shop.ReceiptSetup.workorderAgree|strlen > 0 %}

{{ Workorder.Shop.ReceiptSetup.workorderAgree|noteformat|raw }}

X_______________________________
{{ Workorder.Customer.firstName}} {{ Workorder.Customer.lastName}}
{% endif %} {% endif %} {% endfor %} {% endblock content %}