{# ***Begin Custom Options*** Set any of the options in this section from 'false' to 'true' in order to enable them in the template #} {% set chrome_right_margin_fix = false %} {# Fixes a potential issue where the right side of receipts are cut off in Chrome #} {% set firefox_margin_fix = false %} {# Fixes issue with margins cutting off when printing on a letter printer on a Mac #} {% set itemized_hours_labor = false %} {# Shows time spent on Labor item if time spent is present in the charge #} {% set per_line_subtotal = false %} {# Displays Subtotals for each Sale Line (ex. 1 x $5.00) #} {% set employee_name_on_labor_charges = false %} {# Display Employee name on Labor Charges #} {% set make_work_order_number_small = false %} {# Makes work order number inline with the header #} {% set remove_logo = false %} {# Removes logo from receipt #} {% set tag_header_information = false %} {# Shows shop header information on Tags #} {% set notes_on_tag_only = false %} {# Displays notes on tags only (these will still show up in the Sales screen when ringing out the Work Order) #} {% set hide_work_order_item = false %} {# Removes the Start and end date from receipts #} {% set hide_status = false %} {# Removes the Status receipts #} {% set hide_warranty = false %} {# Removes warranty line from receipts #} {% set hide_start_and_date = false %} {# Removes the Start and end date from receipts #} {% set hide_employee = false %} {# Removes the the employee from the Work order header #} {% set hide_Work_Order_Agreement = false %} {# Removes the the employee from the Work order header #} {% set hide_barcode = false %} {# Removes barcode from bottom of receipts #} {% set hide_barcode_sku = false %} {# Remove the System ID from displaying at the bottom of barcdoes #} {% set logo_width = '225px' %} {# Default width is 225px. A smaller number will scale logo down #} {% set multi_shop_logos = false %} {# Allows multiple logos to be added for separate locations when used with options below #} {% set minimal_mode = false %} {# Use the following shop_logo_array to enter all of your locations and the link to the logo image that you have uploaded to the internet. Enter your EXACT shop name (Case Sensitive!) in the Quotes after the "name": entry and then enter the URL to your logo after the "logo": entry. Be sure to set the multi_shop_logos setting above to true in order to have these logos take effect! #} {% set shop_logo_array = { 0:{"name":"Example Shop", "logo_url":"http://logo.url.goes/here.jpg"}, 1:{"name":"", "logo_url":""}, 2:{"name":"", "logo_url":""}, 3:{"name":"", "logo_url":""}, 4:{"name":"", "logo_url":""}, 5:{"name":"", "logo_url":""} } %} {# ***End Custom Options*** #} {% extends parameters.print ? "printbase" : "base" %} {% block extrastyles %} @page { margin: 0px; } body { font: normal 10pt 'Helvetica Neue', Helvetica, Arial, sans-serif; margin: 0; {% if chrome_right_margin_fix == true %} margin-right: .13in; {% endif %} {% if firefox_margin_fix == true %} margin: 25px; {% endif %} padding: 1px; } .workorder { margin: 0px; font: normal 10pt 'Helvetica Neue',Helvetica,Arial,sans-serif; } .header { text-align: center; {% if minimal_mode == false %} margin-bottom: 30px; {% else %} margin-bottom: 10px; {% endif %} } .header p { margin: 0; } .header h1 { text-align: center; font-size: 12pt; margin-bottom: 0; } .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; } .detail { margin-bottom: 1em; } .detail h2, .detail h3 { margin: 0px 0px 10px 0px; padding: 0px; {% if minimal_mode == false %} font-size: 11pt; {% else %} font-size: 10pt; {% endif %} } .detail p { margin: 0; } .workOrderItem { font-size: 15px; font-weight: bold; } table { width: 100%; border-collapse:collapse; text-align: right; } table th { border-bottom: 1px solid #000; } table th.specialorder { padding-top: 10px; text-align: left; } table th.description { text-align: left; } table td.description { font-weight: bold; text-align: left; width: 100%; } table td.item_fee_line_name { text-align: left; padding-left: 10px; } table .description small { font-weight: normal; } table td.quantity, table th.quantity { text-align: center; white-space: nowrap; } table td.amount { padding-left: 10px; } table div.line_description { text-align: left; font-weight: bold; } table div.line_note { text-align: left; font-weight: normal; } table.totals td { margin: 0; width: 100%; } table.totals { text-align: right; border-top: 1px solid #000; } table.totals tr.total td { font-weight: bold; } .notes { overflow: hidden; margin: 0 0 1em; } .notes h3 { {% if minimal_mode == true %} font-size: 10pt; {% endif %} } .workorderAgree { margin-bottom: 40px; {% if minimal_mode == true %} font-size: 9pt; {% endif %} } img.barcode { display: block; {% if minimal_mode == false %} margin: 2em auto; {% else %} margin: 0px auto; {% endif %} } {% endblock extrastyles %} {% block content %} {% for Workorder in Workorders %}
{% if parameters.type != 'shop-tag' or tag_header_information == true %} {% if minimal_mode or remove_logo == false %} {% set logo_printed = false %} {% if multi_shop_logos == true %} {% for shop in shop_logo_array %} {% if shop.name == Workorder.Shop.name %} {% if shop.logo_url|strlen > 0 %} {% set logo_printed = true %} {% endif %} {% endif %} {% endfor %} {% elseif Workorder.Shop.ReceiptSetup.hasLogo == 'true' %} {% set logo_printed = true %} {% endif %} {% endif %} {% if logo_printed == false %}

{{ 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.address2 }}

{{ 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 %} {% if minimal_mode == true %}

Núm. de orden de trabajo{{ Workorder.workorderID }}

{{ _self.date(Workorder) }} {% else %} {% if make_work_order_number_small == true %}

Núm. de orden de trabajo{{ Workorder.workorderID }}

{{ _self.date(Workorder) }} {% elseif make_work_order_number_small == false %}

Orden de trabajo

{{ _self.date(Workorder) }}

#{{ Workorder.workorderID }}


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

Enganche: {{Workorder.hookIn}}
Sacado: {{Workorder.hookOut}}

{% endif %} {% endif %}

Cliente:

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

{{ Workorder.Customer.company }} {% 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 %} {% if hide_work_order_item == false %}
Artículo de orden de trabajo:
{% 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 %} {% else %} {% endif %} {% endfor %}

{% if hide_status == false %} Estado: {{ Workorder.WorkorderStatus.name }} {% endif %} {% if hide_warranty == false %} {% if Workorder.warranty == 'true' %}
Garantía: Sí {% else %}
Garantía: No {% endif %}
{% else %} {% endif %} {% if hide_start_and_date == false %} Fecha de inicio: {{Workorder.timeIn|correcttimezone|date ("m/d/y h:i a")}}
Vencimiento: {{Workorder.etaOut|correcttimezone|date ("m/d/y h:i a")}}
{% else %} {% endif %} {% if hide_employee == false %} Empleado: {{ Workorder.Employee.firstName }} {{ Workorder.Employee.lastName }} {% else %} {% endif %}

{% set servicerate = Workorder.Shop.serviceRate %} {% set specialorder = false %} {% for WorkorderItem in Workorder.WorkorderItems.WorkorderItem %} {% if WorkorderItem.itemFeeID == 0 %} {% if WorkorderItem.isSpecialOrder == 'false' %} {{ _self.line(WorkorderItem, parameters, _context) }} {% else %} {% set specialorder = true %} {% endif %} {% endif %} {% endfor %} {% for WorkorderLine in Workorder.WorkorderLines.WorkorderLine %} {% if WorkorderLine.itemFeeID == 0 %} {{ _self.line(WorkorderLine, parameters, _context) }} {% endif %} {% endfor %} {% if specialorder == true %} {% for WorkorderItem in Workorder.WorkorderItems.WorkorderItem %} {% if WorkorderItem.isSpecialOrder == 'true' %} {{ _self.line(WorkorderItem, parameters, _context) }} {% endif %} {% endfor %} {% endif %}
Artículo/Trabajo # Precio
Pedidos especiales
{% if Workorder.MetaData.discount > 0 %} {% endif %} {% if Workorder.MetaData.itemFeesSubtotal %} {% endif %}
Mano de obra {{Workorder.MetaData.labor|money}}
Piezas {{Workorder.MetaData.parts|money}}
Descuentos {{Workorder.MetaData.discount|getinverse|money}}
Total de tarifas {{Workorder.MetaData.itemFeesSubtotal|money}}
Impuestos {{Workorder.MetaData.tax|money}}
Total {{Workorder.MetaData.total|money}}
{% if notes_on_tag_only == false %} {% if Workorder.note|strlen > 0 %}

Notas:

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

Notas:

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

Notas internas:

{{ Workorder.internalNote|noteformat|raw }}
{% endif %} {% endif %} {% if hide_barcode == false %} {% if hide_barcode_sku == true %} {% set hide_text = 1 %} {% else %} {% set hide_text = 0 %} {% endif %} {% endif %} {% if hide_Work_Order_Agreement == false %} {% 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 %} {% endif %}
{% endfor %} {% endblock content %} {% macro date(Workorder) %}

{{"now"|correcttimezone|date('m/d/Y h:i:s A')}}

{% endmacro %} {% macro line(Line,parameters,options) %} {{ _self.lineDescription(Line,options) }} {% if Line.Discount %} Descuento: '{{ Line.Discount.name }}' (-{{ Line.SaleLine.calcLineDiscount|money }}) {% endif %} {% if options.per_line_subtotal == true %} {% if options.itemized_hours_labor == true %} {% if Line.unitPriceOverride > 0 %} {{Line.unitQuantity}} x {{ Line.unitPriceOverride|money }} {% elseif Line.hours > 0 or Line.minutes > 0 %} {{ Line.hours }} h {{ Line.minutes }} min x {{ options.servicerate|money }}/h. {% elseif Line.unitPrice > 0 %} {{Line.unitQuantity}} x {{ Line.unitPrice|money }} {% endif %} {% else %} {% if Line.unitPriceOverride > 0 %} {{Line.unitQuantity}} x {{ Line.unitPriceOverride|money }} {% elseif Line.unitPrice > 0 %} {{Line.unitQuantity}} x {{ Line.unitPrice|money }} {% endif %} {% endif %} {% elseif options.itemized_hours_labor == true and Line.unitPriceOverride == '0'%} {% if Line.hours > 0 or Line.minutes > 0 %} {{ Line.hours }} h {{ Line.minutes }} min {% else %} {{Line.unitQuantity}} {% endif %} {% else %} {{Line.unitQuantity}} {% endif %} {% if Line.warranty == 'false' %} {{Line.SaleLine.displayableSubtotal|money}} {% elseif Line.warranty == 'true' %} $0.00 {% endif %} {% for WorkorderSaleLine in Line.SaleLine %} {% if WorkorderSaleLine.itemFeeID != 0 and (WorkorderSaleLine.lineType == 'item_fee' or WorkorderSaleLine.lineType == 'item_fee_refund') %}
{% autoescape true %}{{ WorkorderSaleLine.ItemFee.name|nl2br }}{% endautoescape %}
{{ WorkorderSaleLine.unitQuantity }} {{ WorkorderSaleLine.ItemFee.feeValue|money }} {% endif %} {% endfor %} {% endmacro %} {% macro lineDescription(Line,options) %} {% if Line.itemID != 0 %}
{% autoescape true %}{{ Line.Item.description|nl2br }}{% endautoescape %}
{% if Line.note|strlen > 0 %}
{% autoescape true %}{{ Line.note|noteformat|raw }}{% endautoescape %}
{% endif %} {% if Line.isSpecialOrder == 'true' %}
Empleado: {{ Line.Employee.firstName }} {{ Line.Employee.lastName }}
{% endif %} {% else %}
{% autoescape true %}{{ Line.note|noteformat|raw }}{% endautoescape %} {% if options.employee_name_on_labor_charges == true %}
Empleado: {{ Line.Employee.firstName }} {{ Line.Employee.lastName }}
{% endif %}
{% endif %} {% endmacro %}