invoice
{% assign primary_font = "Lato"%} {% assign primary_font_color = "#000000" %} {% assign primary_font_size = "13px"%} {% assign secondary_font = "Lato"%} {% assign secondary_font_co lor = "#333333" %} {% assign theme_color = "#303336"%} var fHead = document.head || document.getElementsByTagName('head')[0]; {% assign font_weights = "300,400,700" | split: ',' %} {% for font_weight in font_weights %} var font1Id = 'font-{{ primary_font | replace: " ", "-" }}-{{ font_weight }}'; if (!document.getElementById(font1Id)) { var linkElement = document.createElement('link'); linkElement.setAttribute('id', font1Id) linkElement.setAttribute('rel', 'stylesheet'); linkElement.setAttribute('type', 'text/css'); linkElement.setAttribute('href', 'https://fonts.googleapis.com/css?family={{ primary_font | replace: " ", "+" }}:{{ font_weight }}&subset=latin-ext'); fHead.appendChild(linkElement); }; {% if secondary_font != blank and secondary_font != primary_font %} var font2Id = 'font-{{ secondary_font | replace: " ", "-" }}-{{ font_weight }}'; if (!document.getElementById(font2Id)) { var linkElement = document.createElement('link'); linkElement.setAttribute('id', font2Id) linkElement.setAttribute('rel', 'stylesheet'); linkElement.setAttribute('type', 'text/css'); linkElement.setAttribute('href', 'https://fonts.googleapis.com/css?family={{ secondary_font | replace: " ", "+" }}:{{ font_weight }}&subset=latin-ext'); fHead.appendChild(linkElement); }; {% endif %} {% endfor %} $(function () { setTimeout(function () { // Fix for Chromium bug (crashing on print preview) var isChrome = /Chrome/.test(navigator.userAgent) && /Google Inc/.test(navigator.vendor); var isEdge = /Edg/.test(navigator.userAgent); if (isChrome || isEdge) { var printerInlinePreview = document.querySelector('.printer-inline-preview'); if (printerInlinePreview) { var parentDiv = printerInlinePreview.parentNode; parentDiv.classList.add('isChromium'); } } }, 600); }); /* ### BASE - PAGE SIZING AND MARGIN SETUP NORMALIZATION ACROSS BROWSERS ### */ @page { margin: 12mm !important; margin-top: 12mm !important; margin-right: 12mm !important; margin-bottom: 12mm !important; margin-left: 12mm !important; } @media print { .isChromium { display: flex; flex-direction: column; } .safari { padding-top: 15px; box-sizing: border-box; } .printer-preview-content:after { content: ""; display: table; clear: both; } .printer-preview-content .printer-preview-content { padding-left: 15px; padding-right: 15px; box-sizing: border-box; } } @media screen { .printer-preview-content { padding: 18px 0; min-height: 800px; /* background-image: url(http://basehold.it/i/18) */ } .printer-preview-content .printer-preview-content { margin-right: auto; margin-left: auto; max-width: 680px; } } @media screen,print { /* ### BASE - TYPOGRAPHY AND REMOVAL OF STANDARD SHOPIFY STYLING ### */ .printer-preview-content .t150333 * { color: {{ secondary_font_color }}; font-family: '{{ primary_font }}'; font-size: {{ primary_font_size }}; font-weight: 400; line-height: 18px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; margin: 0 0 0 0; padding: 0 0 0 0; print-color-adjust: exact; overflow: visible !important; } .printer-preview-content .t150333 h1 { font-size: 28px; line-height: 36px; } .printer-preview-content .t150333 h2 { font-size: 18px; line-height: 36px; } .printer-preview-content .t150333 h3 { font-size: 14px; line-height: 18px; } .printer-preview-content .t150333 h1, .printer-preview-content .t150333 h2, .printer-preview-content .t150333 h3 { margin-bottom: 18px; } .printer-preview-content .t150333 a, .printer-preview-content .t150333 a * { text-decoration: none !important; } .printer-preview-content .t150333 b, .printer-preview-content .t150333 b * { font-weight: bold; } .printer-preview-content .t150333 .text-right { text-align: right; } .printer-preview-content .t150333 .text-center { text-align: center; } .printer-preview-content .t150333 .no-wrap { white-space: nowrap; } /* ### BASE - GRID AND RE-USABLE LAYOUT COMPONENTS ### */ .printer-preview-content .t150333 .row { width: 100%; display: block; clear: both; } .printer-preview-content .t150333 .row:after { content: ""; display: table; clear: both; } .printer-preview-content .t150333 .col-xs-1, .printer-preview-content .t150333 .col-xs-2, .printer-preview-content .t150333 .col-xs-3, .printer-preview-content .t150333 .col-xs-4, .printer-preview-content .t150333 .col-xs-5, .printer-preview-content .t150333 .col-xs-6, .printer-preview-content .t150333 .col-xs-7, .printer-preview-content .t150333 .col-xs-8, .printer-preview-content .t150333 .col-xs-9, .printer-preview-content .t150333 .col-xs-10, .printer-preview-content .t150333 .col-xs-11, .printer-preview-content .t150333 .col-xs-12 { float: left; min-height: 1px; margin-bottom: 36px; } .printer-preview-content .t150333 .col-xs-12 { width: 100%; } .printer-preview-content .t150333 .col-xs-11 { width: 91.66666667%; } .printer-preview-content .t150333 .col-xs-10 { width: 83.33333333%; } .printer-preview-content .t150333 .col-xs-9 { width: 75%; } .printer-preview-content .t150333 .col-xs-8 { width: 66.66666667%; } .printer-preview-content .t150333 .col-xs-7 { width: 58.33333333%; } .printer-preview-content .t150333 .col-xs-6 { width: 50%; } .printer-preview-content .t150333 .col-xs-5 { width: 41.66666667%; } .printer-preview-content .t150333 .col-xs-4 { width: 33.33333333%; } .printer-preview-content .t150333 .col-xs-3 { width: 25%; } .printer-preview-content .t150333 .col-xs-2 { width: 16.66666667%; } .printer-preview-content .t150333 .col-xs-1 { width: 8.33333333%; } .printer-preview-content .t150333 .col-no-margin { margin-bottom: 0 !important; } .printer-preview-content .t150333 .clear-fix::after { content: ""; clear: both; display: table; } .printer-preview-content .t150333 .half-margin-top { margin-top: 9px !important; } .printer-preview-content .t150333 .half-margin-bottom { margin-bottom: 9px !important; } .printer-preview-content .t150333 .margin-bottom { margin-bottom: 18px !important; margin-top: 1px; } .printer-preview-content .t150333 .margin-top { margin-top: 18px !important; } .printer-preview-content .t150333 .double-margin-top { margin-top: 36px !important; } .printer-preview-content .t150333 .double-margin-bottom { margin-bottom: 36px !important; } .printer-preview-content .t150333 .strikethrough { text-decoration: line-through !important; } .printer-preview-content .t150333 .break { word-break: break-all !important; } /* ### BASE - TABLE STYLING ### */ .printer-preview-content .t150333 table, .printer-preview-content .t150333 .table { width: 100%; max-width: 100%; background-color: transparent; border-collapse: collapse; } .printer-preview-content .t150333 table thead { display: table-row-group; } .printer-preview-content .t150333 table tbody tr { page-break-inside:avoid !important; page-break-after:auto !important; } .printer-preview-content .t150333 table tbody tr td { page-break-inside:avoid !important; } .printer-preview-content .t150333 th { white-space: nowrap; text-align: left; vertical-align: middle; border-top: 0; border-bottom: 0; } .printer-preview-content .t150333 td { vertical-align: middle; border-top: 0; border-bottom: 0; } .printer-preview-content .t150333 .order-table tbody > tr:nth-child(odd) td { background-color: #f9f9f9; } .printer-preview-content .t150333 .pricing-table tbody > tr:nth-child(even) > td { background-color: #f9f9f9; } /* .printer-preview-content .t150333 .pricing-table tbody > tr > td.pricing-table-title { word-break: break-all; }*/ .printer-preview-content .t150333 th.order-table-qty { width: 10%; } .printer-preview-content .t150333 th.order-table-price { width: 10%; } .printer-preview-content .t150333 th.order-table-item-total, .printer-preview-content .t150333 th.order-table-reason { width: 17%; } .printer-preview-content .t150333 th.order-table-return-comments { width: 30%; } .printer-preview-content .t150333 .pricing-table-text { text-align: right; white-space: nowrap; } /* ### BASE - PRODUCT IMAGE SIZING TO RETAIN LINE HEIGHT RYTHM) ### */ .printer-preview-content .t150333 .product-image-wrapper { width: 108px; max-height: 108px; vertical-align: middle; text-align: center; } .printer-preview-content .t150333 .product-image { padding: 0 4px; page-break-inside:avoid !important; max-width: 108px; height: auto; max-height: 108px; } /* ### BASE - LISTS RESET ### */ .printer-preview-content .t150333 ul { list-style: none; } .printer-preview-content .t150333 li { color: {{ secondary_font_color }}; list-style: none; } /* ### BASE - LOGO ### */ .printer-preview-content .t150333 .logo-wrapper { display: inline-block; width: 100%; padding-bottom: 9px; } .printer-preview-content .t150333 .logo { float: left; padding-right: 15px; max-width: 90%; max-height: 190.8px; } /* ### BASE - BARCODE ### */ .printer-preview-content .t150333 .order-number-barcode, .printer-preview-content .t150333 .product-barcode { display: block; } /* ### BASE - ADDITONAL COMMON SHARED TYPOGRAPHY AND ALIGNMENT ### */ .printer-preview-content .t150333 .address { margin-right: 5%; } .printer-preview-content .t150333 .col-xs-8 .notes, .printer-preview-content .t150333 .col-xs-6 .notes { margin-right: 20%; } .printer-preview-content .t150333 .notes-title, .printer-preview-content .t150333 .return-codes { margin: 9px 0; } /* ### BASE - HORIZONTAL RULE MARKS ### */ .printer-preview-content .t150333 hr { background: {{ theme_color }}; border-top: 0; border: 0; height: 2px; width: 100%; margin-bottom: -2px; } } @media screen,print { /* ### DESIGN SPECIFIC - TYPOGRAPHY ### */ .printer-preview-content .t150333 h1, .printer-preview-content .t150333 h1 * { font-family: '{{ secondary_font }}'; color: {{ theme_color }}; font-weight: bold; } .printer-preview-content .t150333 h2, .printer-preview-content .t150333 h2 * { font-family: '{{ secondary_font }}'; color: {{ primary_font_color }}; } .printer-preview-content .t150333 h3, .printer-preview-content .t150333 h3 * { font-family: '{{ secondary_font }}'; color: {{ primary_font_color }}; } /* ### DESIGN SPECIFIC - LOGO POSITIONING ### */ .printer-preview-content .t150333 .logo { float: right; padding-right: 0; margin-bottom: 18px; } /* ### DESIGN SPECIFIC - STORE DETAILS ### */ .printer-preview-content .t150333 .shop-block { text-align: center; } .printer-preview-content .t150333 .shop-block .shop-address-block b, .printer-preview-content .t150333 .shop-block .shop-address-block b * { color: {{ primary_font_color }}; } .printer-preview-content .t150333 .shop-block .shop-domain, .printer-preview-content .t150333 .shop-block .shop-domain * { font-weight: bold; } .printer-preview-content .t150333 .shop-return-address b, .printer-preview-content .t150333 .shop-return-address b * { color: {{ primary_font_color }}; } /* ### DESIGN SPECIFIC - ORDER DETAILS ### */ .printer-preview-content .t150333 .order-details-title, .printer-preview-content .t150333 .order-details-title * { display: inline-block; font-weight: bold; color: {{ primary_font_color }}; } /* ### DESIGN SPECIFIC - BILL TO AND SHIP TO ADDRESS ### */ .printer-preview-content .t150333 .address-title, .printer-preview-content .t150333 .address-title * { font-weight: bold; color: {{ theme_color }}; } .printer-preview-content .t150333 .address { margin-left: 2%; } /* ### DESIGN SPECIFIC - TABLE HEADER ### */ .printer-preview-content .t150333 .order-table thead tr th { padding-left: 4px; padding-right: 4px; border-top: 2px solid {{ theme_color }}; padding-top: 7px; border-bottom: 2px solid {{ theme_color }}; padding-bottom:7px; font-weight: bold; } /* ### DESIGN SPECIFIC - TABLE BODY (SHARED) ### */ .printer-preview-content .t150333 .order-table tbody tr td, .printer-preview-content .t150333 .pricing-table tbody tr td { padding-left: 4px; padding-right: 4px; border-top: 0; padding-top: 9px; border-bottom: 1px solid #efefef; padding-bottom:8px; } /* ### DESIGN SPECIFIC - ORDER TABLE SPECIFIC ### */ .printer-preview-content .t150333 .order-table tbody > tr > td.line-item-description, .printer-preview-content .t150333 .order-table tbody > tr > td.line-item-qty { font-weight: bold; color: {{ primary_font_color }}; } .printer-preview-content .t150333 .order-table tbody > tr > td.line-item-description p.line-item-sku { font-weight: normal; } .printer-preview-content .t150333 .order-table tbody > tr > td.line-item-description span.line-item-refund { display: inline-block; padding: 2px 8px; margin-top: 4px; background-color: #FFEA8A; border-radius: 18px; } /* ### DESIGN SPECIFIC - PRICING TABLE SPECIFIC ### */ .printer-preview-content .t150333 .pricing-table tbody > tr.pricing-table-total-row > td { border-top: 2px solid {{ theme_color }}; border-bottom: 2px solid {{ theme_color }}; padding-bottom:7px; } .printer-preview-content .t150333 .pricing-table tbody > tr > td.pricing-table-title, .printer-preview-content .t150333 .pricing-table tbody > tr > td.pricing-table-title span, .printer-preview-content .t150333 .pricing-table tbody > tr > td.pricing-table-title * { font-weight: bold; color: {{ primary_font_color }}; } .printer-preview-content .t150333 .pricing-table tbody > tr.pricing-table-total-row .pricing-table-title, .printer-preview-content .t150333 .pricing-table tbody > tr.pricing-table-total-row .pricing-table-title *, .printer-preview-content .t150333 .pricing-table tbody > tr.pricing-table-total-row .pricing-table-text, .printer-preview-content .t150333 .pricing-table tbody > tr.pricing-table-total-row .pricing-table-text * { font-weight: bold; color: {{ primary_font_color }}; } /* ### DESIGN SPECIFIC - ORDER NOTES ### */ .printer-preview-content .t150333 .notes-title, .printer-preview-content .t150333 .notes-title * { font-weight: bold; color: {{ primary_font_color }}; } /* ### DESIGN SPECIFIC - RETURN FORM REASON CODES ### */ .printer-preview-content .t150333 .return-codes b, .printer-preview-content .t150333 .return-code b * { font-weight: bold; color: {{ primary_font_color }}; } /* ### DESIGN SPECIFIC - THANK YOU MESSAGE ### */ .printer-preview-content .t150333 .thanks-text { text-align: center; font-weight: bold; color: {{ theme_color }}; } .printer-preview-content .t150333 .thanks-text * { font-weight: bold; color: {{ theme_color }}; } /* ### DESIGN SPECIFIC - GIFT MESSAGE ### */ .printer-preview-content .t150333 .gift-text { text-align: center; font-weight: bold; width: 80%; margin: 0 10%; padding-bottom:18px; font-size: 18px; } .printer-preview-content .t150333 .gift-text * { font-weight: bold; font-size: 18px; } .printer-preview-content .t150333 .gift-text svg { padding-bottom:9px; } /* ### DESIGN SPECIFIC - TERMS AND CONDITIONS ### */ .printer-preview-content .t150333 .terms-text { font-size: 11px; text-align: center; } .printer-preview-content .t150333 .terms-text * { font-size: 11px; } /* ### DESIGN SPECIFIC - SOCIAL ICONS ### */ .printer-preview-content .t150333 .social-icons { display: inline; width: 20px; margin: 9px 4px; } } Sales Invoice Invoice No. {{ order_name }} Invoice Date: {{ created_at | date: "%d/%m/%Y" }} {% assign transaction_text = "" %} {% for transaction in transactions %} {% if transaction.status != "failure" and transaction.status != "error" %} {% if transaction.kind == "authorization" or transaction.kind == "sale" %} {% if transaction.payment_details.credit_card_company != blank and transaction.payment_details.credit_card_company != "unknown" %} {% capture t_text %}{{ transaction.payment_details.credit_card_company }}{% endcapture %} {% else %} {% capture t_text %}{{ transaction.gateway | replace: "_", " " | capitalize }}{% endcapture %} {% endif %} {% unless transaction_text contains t_text %} {% if transaction_text != blank %} {% assign transaction_text = transaction_text | append: ", " %} {% endif %} {% assign transaction_text = transaction_text | append: t_text %} {% endunless %} {% endif %} {% endif %} {% endfor %} {% if transaction_text != blank and transaction_text != "manual" %} Payment {{ transaction_text }} {% endif %} {% if shipping_method.title != blank %} Shipping: {{ shipping_method.title }} {% endif %} Bill to {% assign billing_address = billing_address | default: customer.default_address %} {% if billing_address and billing_address != blank %} {{ billing_address.name }} {% if billing_address.company != blank %} {{ billing_address.company }} {% endif %} {{ billing_address.address1 }} {% if billing_address.address2 != blank %} {{ billing_address.address2 }} {% endif %} {{ billing_address.city }} {% if billing_address.province_code != blank %}{{ billing_address.province_code | replace: "ENG", "" }}{% else %}{{ billing_address.province | "England", "" }}{% endif %} {{ billing_address.zip | upcase }} {% if shop.country != billing_address.country %} {{ billing_address.country }} {% endif %} {% elsif customer != blank %} {% if customer.name != blank %} {{ customer.name }} {% endif %} {% if customer.email != blank %} {{ customer.email }} {% endif %} {% endif %} {% if shipping_address and shipping_address != "" and shipping_address != nil %} Ship to {% endif %} {% if shipping_address and shipping_address != blank %} {{ shipping_address.name }} {% if shipping_address.company != blank %} {{ shipping_address.company }} {% endif %} {{ shipping_address.address1 }} {% if shipping_address.address2 != blank %} {{ shipping_address.address2 }} {% endif %} {{ shipping_address.city }} {% if shipping_address.province_code != blank %}{{ shipping_address.province_code | replace: "ENG", "" }}{% else %}{{ shipping_address.province | replace: "England", "" }}{% endif %} {{ shipping_address.zip | upcase }} {% if shop.country != shipping_address.country %} {{ shipping_address.country }} {% endif %} {% endif %} {% assign hidden_variant_ids = "" %} {% for line_item in line_items %} {% if line_item.properties._boldVariantIds %} {% assign hidden_variant_ids = hidden_variant_ids | append: ',' %} {% assign hidden_variant_ids = hidden_variant_ids | append: line_item.properties._boldVariantIds %} {% endif %} {% endfor %} {% assign hidden_variant_ids = hidden_variant_ids | split: ',' %} {% for line_item in line_items %} {% if line_item.quantity < 1 %}{% continue %}{% endif %} {% if hidden_variant_ids contains line_item.variant_id %}{% continue %}{% endif %} {% assign adjusted_item_price = line_item.price %} {% assign adjusted_line_price = line_item.line_price %} {% for line_item2 in line_items %} {% if line_item.properties._boldVariantIds contains line_item2.variant_id and line_item.properties._boldBuilderId == line_item2.properties._boldBuilderId %} {% assign adjusted_item_price = adjusted_item_price | plus: line_item2.price %} {% assign adjusted_line_option_price = line_item2.line_price %} {% assign adjusted_line_price = adjusted_line_price | plus: adjusted_line_option_price %} {% endif %} {% endfor %} {% endfor %} Item Description Qty Price Total {% if line_item.image != blank %}{% endif %} {{ line_item.title | replace: " - Default Title", "" }} {% if line_item.sku != blank %} {{ line_item.sku }} {% endif %} {% for p in line_item.properties %} {% assign p_internal = p.first | slice: 0 %} {% unless p.first contains "builder_id" or p.first contains "builder_info" or p.first contains "master_builder" or p_internal == "_" or p.last == "" or p.last == blank %} {% if p.last contains "cdn.shopify.com" or p.last contains "/uploads/" or p.last contains ".png?" or p.last contains ".jpg?" or p.last contains "//uploadery.s3" %} {{ p.first }}: {% else %} {{ p.first }}: {{ p.last | newline_to_br }} {% endif %} {% endunless %} {% endfor %} {% assign refunded_quantity = 0 %} {% for refund in refunds %} {% for refund_line_item in refund.refund_line_items %} {% if line_item.id == refund_line_item.line_item_id %} {% assign refunded_quantity = refunded_quantity | plus: refund_line_item.quantity %} {% endif %} {% endfor %} {% endfor %} {% if refunded_quantity > 0 %} Refunded × {{ refunded_quantity }} {% endif %} × {{ line_item.quantity }} {% if line_item.original_price and line_item.original_price > adjusted_item_price %} {% assign original_price = line_item.original_price %} {% elsif line_item.variant.compare_at_price and line_item.variant.compare_at_price > adjusted_item_price %} {% assign original_price = line_item.variant.compare_at_price %} {% elsif line_item.variant.price and line_item.variant.price > adjusted_item_price %} {% assign original_price = line_item.variant.price %} {% else %} {% assign original_price = 0 %} {% endif %} {% if original_price > 0 and original_price > adjusted_item_price %} {{ original_price | money }} {% endif %} {{ adjusted_item_price | money }} {{ adjusted_line_price | money }} {% if note != blank %} Notes {% endif %} {{ note | newline_to_br }} {% for discount in discounts %} {% if discount.amount != 0.00 %} {% endif %} {% else %} {% if total_discounts != 0.00 %} {% endif %} {% endfor %} {% if total_tax != 0.00 and total_tax != blank %} {% endif %} Discount{% if discount.code != blank %} {{ discount.code }}{% endif %} -{{ discount.amount | money }} Discount -{{ total_discounts | money }} Subtotal {{ subtotal_price | money }} Shipping {{ shipping_price | default: 0 | money }} Sales Tax {{ total_tax | money }} Total {{ total_price | money }} Thank You For Your Business PLEASE NOTE THAT ALL GOODS BELONG TO POWERLAND INDUSTRIES LTD. UNTIL PAID IN FULL. If you have any questions, please do get in contact. For Bank Payments Please Use Following Details: HSBC Bank Plc. Payee: Powerland Industries Ltd. Sort Code: 40-47-17 Account Number: 93809927 Powerland Industries Ltd Unit 3, Adams Way, Springfield Business Park, Alcester, Warwickshire B49 6PU [email protected] / Tel: 01527 962 968 VAT Number: 221 5145 52 Company Registration Number: 09039034 www.powerland.co.uk
More you might like
Related
Digital Invoice Template, Invoice Template Editable, Receipt
Related
Invoice Hero I Quick Invoice Generator
Related
Ian Wiley - Invoice 100496 (1st invoice)
Related