diff --git a/README b/README
index e69de29..fc33f6b 100644
--- a/README
+++ b/README
@@ -0,0 +1 @@
+Visit our help centre (https://retail-support.lightspeedhq.com/hc/en-us/articles/228842607-Customizing-print-templates#h_01HS20KX3TY85C9ZWPKN4F3KCM) for detailed guidance on updating your custom print templates for item fees.
diff --git a/label/customizable_label.tpl b/label/customizable_label.tpl
index 8c1cf46..e2d1379 100644
--- a/label/customizable_label.tpl
+++ b/label/customizable_label.tpl
@@ -7,7 +7,7 @@ Set any of the options in this section from 'false' to 'true' in order to enable
{% set show_custom_sku = false %} {# Display Custom SKU (if available) above Description #}
{% set show_manufacturer_sku = false %} {# Display Manufacturer SKU (if available) above Description #}
{% set show_upc_code = false %} {# Display the UPC code at the top of the receipt (using UPC codes in barcode does not work) #}
-{% set show_date = false %} {# Display today's date above description (ddmmyy formatting) #}
+{% set show_date = false %} {# Display todays date above description (ddmmyy formatting) #}
{% set price_with_no_cents = false %} {# Remove cents from being displayed in price #}
{% set date_format = 'mdy' %} {# Format the date is shown in if show_date is enabled.
m = 2 digit month, d = 2 digit day, y = 2 digit year, Y = 4 digit year #}
@@ -122,7 +122,7 @@ Set any of the options in this section from 'false' to 'true' in order to enable
{# Normal Label (2.25x1.25) CSS settings #}
- .label.size225x125 .custom_margin {
+ .label.size225x125 {
margin: {{normal_top_margin}} {{normal_right_margin}} {{normal_bottom_margin}} {{normal_left_margin}};
}
@@ -142,7 +142,7 @@ Set any of the options in this section from 'false' to 'true' in order to enable
{# Alt. Label (2.00x1.00) CSS settings #}
- .label.size200x100 .custom_margin {
+ .label.size200x100 {
margin: {{alt_top_margin}} {{alt_right_margin}} {{alt_bottom_margin}} {{alt_left_margin}};
}
@@ -161,7 +161,7 @@ Set any of the options in this section from 'false' to 'true' in order to enable
}
{# Small Label (1.25x1.00) CSS settings #}
- .label.size125x100 .custom_margin {
+ .label.size125x100 {
margin: {{small_top_margin}} {{small_right_margin}} {{small_bottom_margin}} {{small_left_margin}};
}
@@ -181,7 +181,7 @@ Set any of the options in this section from 'false' to 'true' in order to enable
{# Jewelry Label (2.20x.50) CSS settings #}
- .label.size220x50 .custom_margin {
+ .label.size220x50 {
margin: {{jewelry_top_margin}} {{jewelry_right_margin}} {{jewelry_bottom_margin}} {{jewelry_left_margin}};
}
@@ -218,34 +218,29 @@ Set any of the options in this section from 'false' to 'true' in order to enable
{% for category in normal_label_categories %}
{% if category == Label.Item.categoryID %}
-
{% set size_specified = true %}
{% endif %}
{% endfor %}
{% for category in alt_label_categories %}
{% if category == Label.Item.categoryID %}
-
{% set size_specified = true %}
{% endif %}
{% endfor %}
{% for category in small_label_categories %}
{% if category == Label.Item.categoryID %}
-
{% set size_specified = true %}
{% endif %}
{% endfor %}
{% for category in jewelry_label_categories %}
{% if category == Label.Item.categoryID %}
-
{% set size_specified = true %}
{% endif %}
{% endfor %}
{% if size_specified == false %}
-
{% endif %}
{{ Label.MetaData.title }}
@@ -309,7 +304,6 @@ Set any of the options in this section from 'false' to 'true' in order to enable
{% endif %}
-
{% endfor %}
{% endfor %}
diff --git a/purchase_order/purchase_order.tpl b/purchase_order/purchase_order.tpl
index e45ffb6..7c37a53 100644
--- a/purchase_order/purchase_order.tpl
+++ b/purchase_order/purchase_order.tpl
@@ -15,317 +15,435 @@ Set any of the options in this section from 'false' to 'true' in order to enable
{% endblock style %}
{% block content %}
{% for Order in Orders %}
-
{% if hide_general_notes == false %}
{% if Order.Note.note|strlen > 0 %}
Notes:
- {{Order.Note.note}}
+ {{Order.Note.note|nl2br|raw}}
{% endif %}
{% endif %}
{% endfor %}
diff --git a/purchase_order/purchase_order_de.tpl b/purchase_order/purchase_order_de.tpl
new file mode 100644
index 0000000..3c237be
--- /dev/null
+++ b/purchase_order/purchase_order_de.tpl
@@ -0,0 +1,450 @@
+{#
+***Begin Custom Options***
+Set any of the options in this section from 'false' to 'true' in order to enable them in the template
+#}
+{% set hide_rep_info = false %} {# Removes acct rep from PO template #}
+{% set hide_account_number = false %} {# Removes acct number from PO template #}
+{% set hide_shipping_table = false %} {# Removes shipping table from PO template #}
+{% set hide_shipping_notes = false %} {# Removes shipping notes from PO template #}
+{% set hide_general_notes = false %} {# Removes general notes from PO template #}
+{#
+***End Custom Options***
+#}
+{% extends parameters.print ? "printbase" : "base" %}
+{% block style %}
+
+
+
+{% endblock style %}
+{% block content %}
+{% for Order in Orders %}
+
+
+
+{% if hide_general_notes == false %}
+{% if Order.Note.note|strlen > 0 %}
+
Notizen:
+ {{Order.Note.note|nl2br|raw}}
+{% endif %}
+{% endif %}
+{% endfor %}
+{% endblock content %}
diff --git a/purchase_order/purchase_order_es.tpl b/purchase_order/purchase_order_es.tpl
new file mode 100644
index 0000000..8fb4905
--- /dev/null
+++ b/purchase_order/purchase_order_es.tpl
@@ -0,0 +1,450 @@
+{#
+***Begin Custom Options***
+Set any of the options in this section from 'false' to 'true' in order to enable them in the template
+#}
+{% set hide_rep_info = false %} {# Removes acct rep from PO template #}
+{% set hide_account_number = false %} {# Removes acct number from PO template #}
+{% set hide_shipping_table = false %} {# Removes shipping table from PO template #}
+{% set hide_shipping_notes = false %} {# Removes shipping notes from PO template #}
+{% set hide_general_notes = false %} {# Removes general notes from PO template #}
+{#
+***End Custom Options***
+#}
+{% extends parameters.print ? "printbase" : "base" %}
+{% block style %}
+
+
+
+{% endblock style %}
+{% block content %}
+{% for Order in Orders %}
+
+
+ Pedido de compra #{{ Order.orderID }}
+
+
+ Fecha de pedido {{Order.orderedDate|correcttimezone|date ("m/d/y")}}
+ Fecha de entrega estimada {{Order.arrivalDate|correcttimezone|date ("m/d/y")}}
+
+
+
+
+
Proveedor
+
{{ Order.Vendor.name}}
+ {% if hide_rep_info == false %}
+ {% if Order.Vendor.Reps.VendorRep.firstName|strlen > 0 %}
+
+
+{% if hide_general_notes == false %}
+{% if Order.Note.note|strlen > 0 %}
+
Notas:
+ {{Order.Note.note|nl2br|raw}}
+{% endif %}
+{% endif %}
+{% endfor %}
+{% endblock content %}
diff --git a/purchase_order/purchase_order_fr.tpl b/purchase_order/purchase_order_fr.tpl
new file mode 100644
index 0000000..e73d494
--- /dev/null
+++ b/purchase_order/purchase_order_fr.tpl
@@ -0,0 +1,450 @@
+{#
+***Begin Custom Options***
+Set any of the options in this section from 'false' to 'true' in order to enable them in the template
+#}
+{% set hide_rep_info = false %} {# Removes acct rep from PO template #}
+{% set hide_account_number = false %} {# Removes acct number from PO template #}
+{% set hide_shipping_table = false %} {# Removes shipping table from PO template #}
+{% set hide_shipping_notes = false %} {# Removes shipping notes from PO template #}
+{% set hide_general_notes = false %} {# Removes general notes from PO template #}
+{#
+***End Custom Options***
+#}
+{% extends parameters.print ? "printbase" : "base" %}
+{% block style %}
+
+
+
+{% endblock style %}
+{% block content %}
+{% for Order in Orders %}
+
+
+ Bon de commande #{{ Order.orderID }}
+
+
+ Date de commande: {{Order.orderedDate|correcttimezone|date ("m/d/y")}}
+ Date prévue: {{Order.arrivalDate|correcttimezone|date ("m/d/y")}}
+
+
+
+
+
Fournisseur
+
{{ Order.Vendor.name}}
+ {% if hide_rep_info == false %}
+ {% if Order.Vendor.Reps.VendorRep.firstName|strlen > 0 %}
+
+
+{% if hide_general_notes == false %}
+{% if Order.Note.note|strlen > 0 %}
+
Notes :
+ {{Order.Note.note|nl2br|raw}}
+{% endif %}
+{% endif %}
+{% endfor %}
+{% endblock content %}
diff --git a/purchase_order/purchase_order_nl.tpl b/purchase_order/purchase_order_nl.tpl
new file mode 100644
index 0000000..f428f85
--- /dev/null
+++ b/purchase_order/purchase_order_nl.tpl
@@ -0,0 +1,450 @@
+{#
+***Begin Custom Options***
+Set any of the options in this section from 'false' to 'true' in order to enable them in the template
+#}
+{% set hide_rep_info = false %} {# Removes acct rep from PO template #}
+{% set hide_account_number = false %} {# Removes acct number from PO template #}
+{% set hide_shipping_table = false %} {# Removes shipping table from PO template #}
+{% set hide_shipping_notes = false %} {# Removes shipping notes from PO template #}
+{% set hide_general_notes = false %} {# Removes general notes from PO template #}
+{#
+***End Custom Options***
+#}
+{% extends parameters.print ? "printbase" : "base" %}
+{% block style %}
+
+
+
+{% endblock style %}
+{% block content %}
+{% for Order in Orders %}
+
+
{% endif %}
{% if Sale.completed == 'true' and Sale.SalePayments and not parameters.gift_receipt %}
@@ -613,7 +677,11 @@ table.payments td.label {
DO NOT CONSOLIDATE THESE IF STATEMENTS.
Twig doesnt play nice with these functions.
#}
- {{ _self.transaction_details(Sale) }}
+ {{ _self.transaction_details(Sale) }}
+ {% endif %}
+
+ {% if not parameters.email %}
+ {{ _self.remoteDepositLink(Sale,parameters) }}
{% endif %}
{% autoescape true %}{{ Line.Item.description|nl2br }}{% if Line.tax == 'false' or (Line.calcTax1 == 0 and Line.calcTax2 == 0) %}*{% endif %}{% endautoescape %}
+ {% elseif Line.ItemFee and Line.itemFeeID and (Line.lineType == 'item_fee' or Line.lineType == 'item_fee_refund') %}
+
+ {{ Line.ItemFee.name|nl2br }}{% if Line.tax == 'false' or (Line.calcTax1 == 0 and Line.calcTax2 == 0) %}*{% endif %}
+
{% endif %}
{% if Line.Note %}
@@ -695,7 +767,7 @@ table.payments td.label {
{% endfor %}
{% endif %}
- {% if options.per_line_employee %}
+ {% if options.per_line_employee and not options.hide_employee_name %}
Employee: {{ Line.Employee.firstName }}
@@ -711,8 +783,10 @@ table.payments td.label {
{% endif %}
{% if options.workorders_as_title and Sale.SaleLines is empty and Sale.Customer.Workorders is defined %}
Work Orders
+ {% elseif Sale.SaleLines is empty and Sale.Customer.CreditAccount.MetaData.remoteDepositAmount %}
+ Remote deposit request
{% else %}
- {% if parameters.gift_receipt %}Gift{% else %}Sales{% endif %} Receipt
+ {% if parameters.gift_receipt %}Gift Receipt{% else %}Sales Receipt{% endif %}
{% endif %}
{% if options.invoice_as_title and options.print_layout %}
@@ -728,7 +802,7 @@ table.payments td.label {
{% if options.invoice_as_title and options.print_layout %}
{% endif %}
- Receipt VOIDED
+ Receipt VOIDED
{% if options.invoice_as_title and options.print_layout %}
Invoice VOIDED
@@ -759,7 +833,7 @@ table.payments td.label {
{% macro date(Sale) %}
{% if Sale.timeStamp %}
- {{Sale.timeStamp|correcttimezone|date(getDateTimeFormat())}}
+ {{Sale.timeStamp|correcttimezone|date(getDateTimeFormat())}}
{% else %}
{{"now"|date(getDateTimeFormat())}}
{% endif %}
@@ -827,7 +901,7 @@ table.payments td.label {
{% endif %}
{% if Sale.Customer %}
- {% if Sale.Customer.company|strlen > 0 %}
+ {% if Sale.Customer.company|strlen > 0 and not options.show_customer_name_only %}
Company: {{Sale.Customer.company}}
{% endif %}
@@ -885,6 +959,12 @@ table.payments td.label {
{{ _self.lineDescription(Line,options) }}
+ {% if options.show_custom_sku and Line.Item.customSku|strlen > 0 %}
+
Custom SKU: {{ Line.Item.customSku }}
+ {% endif %}
+ {% if options.show_manufacturer_sku and Line.Item.manufacturerSku|strlen > 0 %}
+
Man. SKU: {{ Line.Item.manufacturerSku }}
+ {% endif %}
{% if options.per_line_discount == true and not parameters.gift_receipt %}
{% if Line.calcLineDiscount > 0 %}
Discount: '{{ Line.Discount.name }}' -{{Line.calcLineDiscount|money}}
@@ -894,13 +974,6 @@ table.payments td.label {
{% endif %}
- {% if options.show_custom_sku and Line.Item.customSku %}
-
{{ Line.Item.customSku }}
- {% endif %}
- {% if options.show_manufacturer_sku and Line.Item.manufacturerSku %}
-
{{ Line.Item.manufacturerSku }}
- {% endif %}
-
{% if options.show_msrp == true and not parameters.gift_receipt %}
{% set msrp_printed = false %}
{% for price in Line.Item.Prices.ItemPrice if not msrp_printed %}
@@ -916,7 +989,7 @@ table.payments td.label {
{% if options.per_line_subtotal and options.discounted_line_items and Line.calcLineDiscount != 0 and not parameters.gift_receipt %}
- {{Line.unitQuantity}} x {{Line.displayableUnitPrice|money}}
+ {{Line.unitQuantity}} x {{Line.unitPrice|money}}
{% endif %}
{{Line.unitQuantity}}
{% if options.per_line_subtotal and not parameters.gift_receipt %} x
@@ -934,7 +1007,7 @@ table.payments td.label {
{% if not isTaxInclusive or isTaxInclusive == 'false' %}
{{ Line.calcSubtotal|money }}
{% else %}
- {{ multiply(Line.displayableUnitPrice, Line.unitQuantity)|money }}
+ {{ multiply(Line.unitPrice, Line.unitQuantity)|money }}
{% endif %}
{% endif %}
{{ Line.displayableSubtotal|money }}
@@ -949,13 +1022,6 @@ table.payments td.label {
Items
- {% if options.show_custom_sku and options.show_manufacturer_sku %}
-
Custom SKU
-
Man. SKU
- {% elseif options.show_custom_sku or options.show_manufacturer_sku %}
-
SKU
- {% endif %}
-
{% if options.show_msrp and not parameters.gift_receipt %}
MSRP
{% endif %}
@@ -976,6 +1042,9 @@ table.payments td.label {
{% if not parameters.gift_receipt %}
+ {% if Sale.MetaData.itemFeesSubtotal %}
+
Fee total
{{Sale.MetaData.itemFeesSubtotal|money}}
+ {% endif %}
{% if options.discounted_line_items and Sale.calcDiscount != 0 %}
@@ -986,9 +1055,17 @@ table.payments td.label {
{% endif %}
@@ -1089,18 +1166,18 @@ table.payments td.label {
{% endif %}
{% if options.show_customer_credit_account and Sale.Customer and not parameters.gift_receipt and not store_copy %}
- {% if Sale.Customer.CreditAccount and Sale.Customer.CreditAccount.MetaData.creditBalanceOwed > 0 or Sale.Customer.CreditAccount.MetaData.extraDeposit > 0 %}
+ {% if Sale.Customer.CreditAccount.MetaData.creditBalanceOwed > 0 or Sale.Customer.CreditAccount.MetaData.extraDeposit > 0 %}
Store Account
{% if Sale.Customer.CreditAccount.MetaData.creditBalanceOwed > 0 %}
@@ -1387,14 +1543,19 @@ table.payments td.label {
{% endfor %}
{% endif %}
- {% if Sale.Shop.ReceiptSetup.logo|strlen > 0 and not logo_printed %}
-
- {% if show_shop_name_with_logo %}
+ {% if not logo_printed %}
+ {% if Sale.Shop.ReceiptSetup.logo|strlen > 0 %}
+
+ {% set logo_printed = true %}
+ {% endif %}
+ {% endif %}
+
+ {% if Sale.Shop.name|strlen > 0 %}
+ {% if not logo_printed or options.show_shop_name_with_logo == true %}
{{ Sale.Shop.name }}
{% endif %}
- {% else %}
-
{{ Sale.Shop.name }}
{% endif %}
+
{% if Sale.Shop.ReceiptSetup.header|strlen > 0 %}
{{Sale.Shop.ReceiptSetup.header|nl2br|raw}}
diff --git a/receipt/SaleReceipt_de_CH.tpl b/receipt/SaleReceipt_de_CH.tpl
index 488b3d6..ff09bb1 100644
--- a/receipt/SaleReceipt_de_CH.tpl
+++ b/receipt/SaleReceipt_de_CH.tpl
@@ -16,7 +16,7 @@
{% set hide_customer_vat_number = false %} {# Hide the Customer VAT Number on Sales #}
{% set hide_customer_registration_number = false %} {# Hide the Customer Registration Number on Sales #}
{% set sale_id_instead_of_ticket_number = true %} {# Displays the Sale ID instead of the Ticket Number #}
-{% set invoice_as_title = false %} {# If print_layout is true, "Invoice" will be displayed instead of "Sales Receipt" on A4/Letter/Email formats #}
+{% set invoice_as_title = parameters.invoice_as_title == "true" ? true : false %} {# If print_layout is true, "Invoice" will be displayed instead of "Sales Receipt" on A4/Letter/Email formats #}
{% set workorders_as_title = false %} {# Changes the receipt title to "Work Orders" if there is no Salesline items and 1 or more workorders #}
{% set quote_id_prefix = "" %} {# Adds a string of text as a prefix for the Quote ID. Ex: "Q-". To be used when "sale_id_instead_of_ticket_number" is true #}
{% set sale_id_prefix = "" %} {# Adds a string of text as a prefix for the Sales ID. Ex: "S-". To be used when "sale_id_instead_of_ticket_number" is true #}
@@ -118,6 +118,10 @@ h1 {
text-align: center;
}
+h1.spacer {
+ margin-top: 2em;
+}
+
p.date, p.copy {
font-size: 9pt;
margin: 0;
@@ -207,12 +211,26 @@ table div.line_note {
padding-left: 10px;
}
+table div.line_extra {
+ text-align: left;
+ padding-left: 10px;
+ font-size: .8em;
+}
+
table div.line_serial {
text-align: left;
font-weight: normal;
padding-left: 10px;
}
+table div.line_description_item_fee {
+ padding-left: 10px;
+}
+
+.footerSectionTitle + table div.line_description_item_fee {
+ padding-left: 25px;
+}
+
table.workorders div.line_description {
font-weight: normal;
padding-left: 10px;
@@ -240,12 +258,54 @@ p.thankyou {
.note { text-align: center; }
-
.barcodeContainer {
margin-top: 15px;
text-align: center;
}
+.remotePaymentLinkContainer {
+ text-align: center;
+ margin: 1.5em 0;
+}
+
+span.payOnlineTitle {
+ display: block;
+ font-size: 0.8rem;
+ font-weight: bold;
+ margin: 2rem 0 0.25rem;
+ text-transform: uppercase;
+}
+
+svg.payOnlineIcon {
+ height: 1rem;
+ margin-right: 0.25rem;
+ vertical-align: -0.2rem;
+ width: 1rem;
+}
+
+.payButton {
+ background-color: #1844cc;
+ background-image: linear-gradient(#537dec, #2e61de);
+ border: 1px solid #1844cc;
+ border-radius: 0.1875rem;
+ box-shadow: rgba(255, 255, 255, 0.15) 0px 1px 0px 0px inset;
+ color: #fff;
+ display: inline-block;
+ font-size: 1rem;
+ font-weight: 500;
+ line-height: 2rem;
+ margin: 1.5em 0 0;
+ padding: 0.375rem 1.5rem;
+ text-align: center;
+ text-decoration: none;
+ width: 90%;
+}
+
+.payButton:hover {
+ background-color: #2e61de;
+ background-image: linear-gradient(#2e61de, #2e61de);
+}
+
.workorders .barcodeContainer {
margin-left: 15px;
text-align: left;
@@ -289,6 +349,24 @@ table.payments td.label {
width: 100%;
}
+#receiptTransactionDetails table {
+ max-width: 245px;
+ margin: 0 auto;
+}
+
+#receiptTransactionDetails table td {
+ text-align: right;
+}
+
+#receiptTransactionDetails table td.top {
+ font-weight: bold;
+}
+
+#receiptTransactionDetails table td.label {
+ padding-right: 20px;
+ text-align: left;
+}
+
{% if print_layout %}
/* Receipts only */
@@ -575,19 +653,35 @@ table.payments td.label {
{{ _self.client_workorder_agreement(Sale,_context) }}
+ {% if parameters.email %}
+ {{ _self.remoteDepositLink(Sale,parameters) }}
+ {% endif %}
+
{% if not parameters.gift_receipt %}
{{ _self.no_tax_applied_text(Sale) }}
{% if show_thank_you %}
- Vielen Dank {% if Sale.Customer %}{{Sale.Customer.firstName}} {{Sale.Customer.lastName}}{% endif %}!
+ Vielen Dank {% if Sale.Customer %}{{Sale.Customer.firstName}} {{Sale.Customer.lastName}}{% endif %}!
{% endif %}
{% endif %}
{% if show_barcode %}
-
-
-
+
+
+
+ {% endif %}
+
+ {% if Sale.completed == 'true' and Sale.SalePayments and not parameters.gift_receipt %}
+ {#
+ DO NOT CONSOLIDATE THESE IF STATEMENTS.
+ Twig doesnt play nice with these functions.
+ #}
+ {{ _self.transaction_details(Sale) }}
+ {% endif %}
+
+ {% if not parameters.email %}
+ {{ _self.remoteDepositLink(Sale,parameters) }}
{% endif %}
{% autoescape true %}{{ Line.Item.description|nl2br }}{% if Line.tax == 'false' or (Line.calcTax1 == 0 and Line.calcTax2 == 0) %}*{% endif %}{% endautoescape %}
+ {% elseif Line.ItemFee and Line.itemFeeID and (Line.lineType == 'item_fee' or Line.lineType == 'item_fee_refund') %}
+
+ {{ Line.ItemFee.name|nl2br }}{% if Line.tax == 'false' or (Line.calcTax1 == 0 and Line.calcTax2 == 0) %}*{% endif %}
+
{% endif %}
{% if Line.Note %}
@@ -681,6 +783,8 @@ table.payments td.label {
{% endif %}
{% if options.workorders_as_title and Sale.SaleLines is empty and Sale.Customer.Workorders is defined %}
Arbeitsaufträge
+ {% elseif Sale.SaleLines is empty and Sale.Customer.CreditAccount.MetaData.remoteDepositAmount %}
+ Anfrage zur Ferneinzahlung
{% else %}
{% if parameters.gift_receipt %}Gutscheinquittung{% else %}Quittung{% endif %}
{% endif %}
@@ -698,7 +802,7 @@ table.payments td.label {
{% if options.invoice_as_title and options.print_layout %}
{% endif %}
- Stornierte Quittung
+ Stornierte Quittung
{% if options.invoice_as_title and options.print_layout %}
Stornierte Rechnung
@@ -774,7 +878,7 @@ table.payments td.label {
{% if isVATAndRegistrationNumberOnReceipt() %}
{% if Sale.Shop.vatNumber|strlen and not options.hide_shop_vat_number %}
- MwST:
+ MwST: {{Sale.Shop.vatNumber}}
@@ -797,7 +901,7 @@ table.payments td.label {
{% endif %}
{% if Sale.Customer %}
- {% if Sale.Customer.company|strlen > 0 %}
+ {% if Sale.Customer.company|strlen > 0 and not options.show_customer_name_only %}
Firma: {{Sale.Customer.company}}
{% endif %}
@@ -855,6 +959,12 @@ table.payments td.label {
{{ _self.lineDescription(Line,options) }}
+ {% if options.show_custom_sku and Line.Item.customSku|strlen > 0 %}
+
Persönliche SKU: {{ Line.Item.customSku }}
+ {% endif %}
+ {% if options.show_manufacturer_sku and Line.Item.manufacturerSku|strlen > 0 %}
+
Manuelle SKU: {{ Line.Item.manufacturerSku }}
+ {% endif %}
{% if options.per_line_discount == true and not parameters.gift_receipt %}
{% if Line.calcLineDiscount > 0 %}
Rabatt: '{{ Line.Discount.name }}' -{{Line.calcLineDiscount|money}}
@@ -864,13 +974,6 @@ table.payments td.label {
{% endif %}
- {% if options.show_custom_sku and Line.Item.customSku %}
-
{{ Line.Item.customSku }}
- {% endif %}
- {% if options.show_manufacturer_sku and Line.Item.manufacturerSku %}
-
{{ Line.Item.manufacturerSku }}
- {% endif %}
-
{% if options.show_msrp == true and not parameters.gift_receipt %}
{% set msrp_printed = false %}
{% for price in Line.Item.Prices.ItemPrice if not msrp_printed %}
@@ -886,7 +989,7 @@ table.payments td.label {
{% if options.per_line_subtotal and options.discounted_line_items and Line.calcLineDiscount != 0 and not parameters.gift_receipt %}
- {{Line.unitQuantity}} x {{Line.displayableUnitPrice|money}}
+ {{Line.unitQuantity}} x {{Line.unitPrice|money}}
{% endif %}
{{Line.unitQuantity}}
{% if options.per_line_subtotal and not parameters.gift_receipt %} x
@@ -904,7 +1007,7 @@ table.payments td.label {
{% if not isTaxInclusive or isTaxInclusive == 'false' %}
{{ Line.calcSubtotal|money }}
{% else %}
- {{ multiply(Line.displayableUnitPrice, Line.unitQuantity)|money }}
+ {{ multiply(Line.unitPrice, Line.unitQuantity)|money }}
{% endif %}
{% endif %}
{{ Line.displayableSubtotal|money }}
@@ -919,13 +1022,6 @@ table.payments td.label {
Artikel
- {% if options.show_custom_sku and options.show_manufacturer_sku %}
-
Persönliche SKU
-
Manuelle SKU
- {% elseif options.show_custom_sku or options.show_manufacturer_sku %}
-
SKU
- {% endif %}
-
{% if options.show_msrp and not parameters.gift_receipt %}
MSRP
{% endif %}
@@ -946,6 +1042,9 @@ table.payments td.label {
{% if not parameters.gift_receipt %}
+ {% if Sale.MetaData.itemFeesSubtotal %}
+
Summe Gebührenbetrag
{{Sale.MetaData.itemFeesSubtotal|money}}
+ {% endif %}
{% if options.discounted_line_items and Sale.calcDiscount != 0 %}
@@ -956,9 +1055,17 @@ table.payments td.label {
{% if Payment.amount < 0 %}
@@ -1059,18 +1166,18 @@ table.payments td.label {
{% endif %}
{% if options.show_customer_credit_account and Sale.Customer and not parameters.gift_receipt and not store_copy %}
- {% if Sale.Customer.CreditAccount and Sale.Customer.CreditAccount.MetaData.creditBalanceOwed > 0 or Sale.Customer.CreditAccount.MetaData.extraDeposit > 0 %}
+ {% if Sale.Customer.CreditAccount.MetaData.creditBalanceOwed > 0 or Sale.Customer.CreditAccount.MetaData.extraDeposit > 0 %}
Kundenkonto
{% if Sale.Customer.CreditAccount.MetaData.creditBalanceOwed > 0 %}
+ {% endif %}
+
+ {% if Sale.completed == 'true' and Sale.SalePayments and not parameters.gift_receipt %}
+ {#
+ DO NOT CONSOLIDATE THESE IF STATEMENTS.
+ Twig doesnt play nice with these functions.
+ #}
+ {{ _self.transaction_details(Sale) }}
+ {% endif %}
+
+ {% if not parameters.email %}
+ {{ _self.remoteDepositLink(Sale,parameters) }}
{% endif %}
{% autoescape true %}{{ Line.Item.description|nl2br }}{% if Line.tax == 'false' or (Line.calcTax1 == 0 and Line.calcTax2 == 0) %}*{% endif %}{% endautoescape %}
+ {% elseif Line.ItemFee and Line.itemFeeID and (Line.lineType == 'item_fee' or Line.lineType == 'item_fee_refund') %}
+
+ {{ Line.ItemFee.name|nl2br }}{% if Line.tax == 'false' or (Line.calcTax1 == 0 and Line.calcTax2 == 0) %}*{% endif %}
+
{% endif %}
{% if Line.Note %}
@@ -665,7 +767,7 @@ table.payments td.label {
{% endfor %}
{% endif %}
- {% if options.per_line_employee %}
+ {% if options.per_line_employee and not options.hide_employee_name %}
Empleado: {{ Line.Employee.firstName }}
@@ -681,6 +783,8 @@ table.payments td.label {
{% endif %}
{% if options.workorders_as_title and Sale.SaleLines is empty and Sale.Customer.Workorders is defined %}
Órdenes de trabajo
+ {% elseif Sale.SaleLines is empty and Sale.Customer.CreditAccount.MetaData.remoteDepositAmount %}
+ Solicitud de depósito remoto
{% else %}
{% if parameters.gift_receipt %}Recibo del regalo{% else %}Recibo de ventas{% endif %}
{% endif %}
@@ -698,7 +802,7 @@ table.payments td.label {
{% if options.invoice_as_title and options.print_layout %}
{% endif %}
- Recibo ANULADO
+ Recibo ANULADO
{% if options.invoice_as_title and options.print_layout %}
Factura ANULADO
@@ -744,9 +848,9 @@ table.payments td.label {
{% if options.quote_to_invoice %}
- Factura n.º:
+ Factura n.º:
{% else %}
- N.º cotización:
+ N.º cotización:
{% endif %}
{{options.quote_id_prefix}}{{Sale.quoteID}}
@@ -797,7 +901,7 @@ table.payments td.label {
{% endif %}
{% if Sale.Customer %}
- {% if Sale.Customer.company|strlen > 0 %}
+ {% if Sale.Customer.company|strlen > 0 and not options.show_customer_name_only %}
Companía: {{Sale.Customer.company}}
{% endif %}
@@ -855,6 +959,12 @@ table.payments td.label {
{{ _self.lineDescription(Line,options) }}
+ {% if options.show_custom_sku and Line.Item.customSku|strlen > 0 %}
+
SKU perso.: {{ Line.Item.customSku }}
+ {% endif %}
+ {% if options.show_manufacturer_sku and Line.Item.manufacturerSku|strlen > 0 %}
+
SKU ger.: {{ Line.Item.manufacturerSku }}
+ {% endif %}
{% if options.per_line_discount == true and not parameters.gift_receipt %}
{% if Line.calcLineDiscount > 0 %}
Descuento: '{{ Line.Discount.name }}' -{{Line.calcLineDiscount|money}}
@@ -864,13 +974,6 @@ table.payments td.label {
{% endif %}
- {% if options.show_custom_sku and Line.Item.customSku %}
-
{{ Line.Item.customSku }}
- {% endif %}
- {% if options.show_manufacturer_sku and Line.Item.manufacturerSku %}
-
{{ Line.Item.manufacturerSku }}
- {% endif %}
-
{% if options.show_msrp == true and not parameters.gift_receipt %}
{% set msrp_printed = false %}
{% for price in Line.Item.Prices.ItemPrice if not msrp_printed %}
@@ -886,7 +989,7 @@ table.payments td.label {
{% if options.per_line_subtotal and options.discounted_line_items and Line.calcLineDiscount != 0 and not parameters.gift_receipt %}
- {{Line.unitQuantity}} x {{Line.displayableUnitPrice|money}}
+ {{Line.unitQuantity}} x {{Line.unitPrice|money}}
{% endif %}
{{Line.unitQuantity}}
{% if options.per_line_subtotal and not parameters.gift_receipt %} x
@@ -904,7 +1007,7 @@ table.payments td.label {
{% if not isTaxInclusive or isTaxInclusive == 'false' %}
{{ Line.calcSubtotal|money }}
{% else %}
- {{ multiply(Line.displayableUnitPrice, Line.unitQuantity)|money }}
+ {{ multiply(Line.unitPrice, Line.unitQuantity)|money }}
{% endif %}
{% endif %}
{{ Line.displayableSubtotal|money }}
@@ -919,13 +1022,6 @@ table.payments td.label {
Artículo
- {% if options.show_custom_sku and options.show_manufacturer_sku %}
-
SKU perso.
-
SKU ger.
- {% elseif options.show_custom_sku or options.show_manufacturer_sku %}
-
SKU
- {% endif %}
-
{% if options.show_msrp and not parameters.gift_receipt %}
MSRP
{% endif %}
@@ -946,6 +1042,9 @@ table.payments td.label {
{% if not parameters.gift_receipt %}
+ {% if Sale.MetaData.itemFeesSubtotal %}
+
Total de tarifas
{{Sale.MetaData.itemFeesSubtotal|money}}
+ {% endif %}
{% if options.discounted_line_items and Sale.calcDiscount != 0 %}
@@ -956,9 +1055,17 @@ table.payments td.label {
{% if Payment.amount < 0 %}
@@ -1059,18 +1166,18 @@ table.payments td.label {
{% endif %}
{% if options.show_customer_credit_account and Sale.Customer and not parameters.gift_receipt and not store_copy %}
- {% if Sale.Customer.CreditAccount and Sale.Customer.CreditAccount.MetaData.creditBalanceOwed > 0 or Sale.Customer.CreditAccount.MetaData.extraDeposit > 0 %}
+ {% if Sale.Customer.CreditAccount.MetaData.creditBalanceOwed > 0 or Sale.Customer.CreditAccount.MetaData.extraDeposit > 0 %}
Cuenta de tienda
{% if Sale.Customer.CreditAccount.MetaData.creditBalanceOwed > 0 %}
{% autoescape true %}{{ Line.Item.description|nl2br }}{% if Line.tax == 'false' or (Line.calcTax1 == 0 and Line.calcTax2 == 0) %}*{% endif %}{% endautoescape %}
+ {% elseif Line.ItemFee and Line.itemFeeID and (Line.lineType == 'item_fee' or Line.lineType == 'item_fee_refund') %}
+
+ {{ Line.ItemFee.name|nl2br }}{% if Line.tax == 'false' or (Line.calcTax1 == 0 and Line.calcTax2 == 0) %}*{% endif %}
+
{% endif %}
{% if Line.Note %}
@@ -665,7 +767,7 @@ table.payments td.label {
{% endfor %}
{% endif %}
- {% if options.per_line_employee %}
+ {% if options.per_line_employee and not options.hide_employee_name %}
Employé(e): {{ Line.Employee.firstName }}
@@ -681,6 +783,8 @@ table.payments td.label {
{% endif %}
{% if options.workorders_as_title and Sale.SaleLines is empty and Sale.Customer.Workorders is defined %}
Demandes de service
+ {% elseif Sale.SaleLines is empty and Sale.Customer.CreditAccount.MetaData.remoteDepositAmount %}
+ Demande de dépôt à distance
{% else %}
{% if parameters.gift_receipt %}Reçu cadeau{% else %}Reçu de vente{% endif %}
{% endif %}
@@ -698,7 +802,7 @@ table.payments td.label {
{% if options.invoice_as_title and options.print_layout %}
{% endif %}
- Reçu ANNULÉ
+ Reçu ANNULÉ
{% if options.invoice_as_title and options.print_layout %}
Facture ANNULÉ
@@ -774,7 +878,7 @@ table.payments td.label {
{% if isVATAndRegistrationNumberOnReceipt() %}
{% if Sale.Shop.vatNumber|strlen and not options.hide_shop_vat_number %}
- TVA:
+ TVA: {{Sale.Shop.vatNumber}}
@@ -797,7 +901,7 @@ table.payments td.label {
{% endif %}
{% if Sale.Customer %}
- {% if Sale.Customer.company|strlen > 0 %}
+ {% if Sale.Customer.company|strlen > 0 and not options.show_customer_name_only %}
Entreprise: {{Sale.Customer.company}}
{% endif %}
@@ -855,6 +959,12 @@ table.payments td.label {
{{ _self.lineDescription(Line,options) }}
+ {% if options.show_custom_sku and Line.Item.customSku|strlen > 0 %}
+
SKU pers.: {{ Line.Item.customSku }}
+ {% endif %}
+ {% if options.show_manufacturer_sku and Line.Item.manufacturerSku|strlen > 0 %}
+
SKU man.: {{ Line.Item.manufacturerSku }}
+ {% endif %}
{% if options.per_line_discount == true and not parameters.gift_receipt %}
{% if Line.calcLineDiscount > 0 %}
Réduction: '{{ Line.Discount.name }}' -{{Line.calcLineDiscount|money}}
@@ -864,13 +974,6 @@ table.payments td.label {
{% endif %}
- {% if options.show_custom_sku and Line.Item.customSku %}
-
{{ Line.Item.customSku }}
- {% endif %}
- {% if options.show_manufacturer_sku and Line.Item.manufacturerSku %}
-
{{ Line.Item.manufacturerSku }}
- {% endif %}
-
{% if options.show_msrp == true and not parameters.gift_receipt %}
{% set msrp_printed = false %}
{% for price in Line.Item.Prices.ItemPrice if not msrp_printed %}
@@ -886,7 +989,7 @@ table.payments td.label {
{% if options.per_line_subtotal and options.discounted_line_items and Line.calcLineDiscount != 0 and not parameters.gift_receipt %}
- {{Line.unitQuantity}} x {{Line.displayableUnitPrice|money}}
+ {{Line.unitQuantity}} x {{Line.unitPrice|money}}
{% endif %}
{{Line.unitQuantity}}
{% if options.per_line_subtotal and not parameters.gift_receipt %} x
@@ -904,7 +1007,7 @@ table.payments td.label {
{% if not isTaxInclusive or isTaxInclusive == 'false' %}
{{ Line.calcSubtotal|money }}
{% else %}
- {{ multiply(Line.displayableUnitPrice, Line.unitQuantity)|money }}
+ {{ multiply(Line.unitPrice, Line.unitQuantity)|money }}
{% endif %}
{% endif %}
{{ Line.displayableSubtotal|money }}
@@ -917,14 +1020,7 @@ table.payments td.label {
{% if Sale.SaleLines %}
-
Item
-
- {% if options.show_custom_sku and options.show_manufacturer_sku %}
-
SKU pers.
-
SKU man.
- {% elseif options.show_custom_sku or options.show_manufacturer_sku %}
-
SKU
- {% endif %}
+
Article
{% if options.show_msrp and not parameters.gift_receipt %}
PDSF
@@ -946,6 +1042,9 @@ table.payments td.label {
{% if not parameters.gift_receipt %}
+ {% if Sale.MetaData.itemFeesSubtotal %}
+
Total des frais
{{Sale.MetaData.itemFeesSubtotal|money}}
+ {% endif %}
{% if options.discounted_line_items and Sale.calcDiscount != 0 %}
@@ -956,9 +1055,17 @@ table.payments td.label {
{% if Payment.amount < 0 %}
@@ -1079,18 +1186,18 @@ table.payments td.label {
{% endif %}
{% if options.show_customer_credit_account and Sale.Customer and not parameters.gift_receipt and not store_copy %}
- {% if Sale.Customer.CreditAccount and Sale.Customer.CreditAccount.MetaData.creditBalanceOwed > 0 or Sale.Customer.CreditAccount.MetaData.extraDeposit > 0 %}
+ {% if Sale.Customer.CreditAccount.MetaData.creditBalanceOwed > 0 or Sale.Customer.CreditAccount.MetaData.extraDeposit > 0 %}
Dossier
{% if Sale.Customer.CreditAccount.MetaData.creditBalanceOwed > 0 %}
{% endif %}
{% if Sale.completed == 'true' and Sale.SalePayments and not parameters.gift_receipt %}
@@ -617,7 +681,11 @@ table.payments td.label {
DO NOT CONSOLIDATE THESE IF STATEMENTS.
Twig doesnt play nice with these functions.
#}
- {{ _self.transaction_details(Sale) }}
+ {{ _self.transaction_details(Sale) }}
+ {% endif %}
+
+ {% if not parameters.email %}
+ {{ _self.remoteDepositLink(Sale,parameters) }}
{% endif %}
{% autoescape true %}{{ Line.Item.description|nl2br }}{% if Line.tax == 'false' or (Line.calcTax1 == 0 and Line.calcTax2 == 0) %}*{% endif %}{% endautoescape %}
+ {% elseif Line.ItemFee and Line.itemFeeID and (Line.lineType == 'item_fee' or Line.lineType == 'item_fee_refund') %}
+
+ {{ Line.ItemFee.name|nl2br }}{% if Line.tax == 'false' or (Line.calcTax1 == 0 and Line.calcTax2 == 0) %}*{% endif %}
+
{% endif %}
{% if Line.Note %}
@@ -697,7 +771,7 @@ table.payments td.label {
{% endfor %}
{% endif %}
- {% if options.per_line_employee %}
+ {% if options.per_line_employee and not options.hide_employee_name %}
Employé(e) : {{ Line.Employee.firstName }}
@@ -713,6 +787,8 @@ table.payments td.label {
{% endif %}
{% if options.workorders_as_title and Sale.SaleLines is empty and Sale.Customer.Workorders is defined %}
Demandes de service
+ {% elseif Sale.SaleLines is empty and Sale.Customer.CreditAccount.MetaData.remoteDepositAmount %}
+ Demande de dépôt à distance
{% else %}
{% if parameters.gift_receipt %}Reçu cadeau{% else %}Reçu de vente{% endif %}
{% endif %}
@@ -730,7 +806,7 @@ table.payments td.label {
{% if options.invoice_as_title and options.print_layout %}
{% endif %}
- Reçu ANNULÉ
+ Reçu ANNULÉ
{% if options.invoice_as_title and options.print_layout %}
Facture ANNULÉ
@@ -806,7 +882,7 @@ table.payments td.label {
{% if isVATAndRegistrationNumberOnReceipt() %}
{% if Sale.Shop.vatNumber|strlen and not options.hide_shop_vat_number %}
- TVA :
+ TVA : {{Sale.Shop.vatNumber}}
@@ -829,7 +905,7 @@ table.payments td.label {
{% endif %}
{% if Sale.Customer %}
- {% if Sale.Customer.company|strlen > 0 %}
+ {% if Sale.Customer.company|strlen > 0 and not options.show_customer_name_only %}
Entreprise : {{Sale.Customer.company}}
{% endif %}
@@ -887,6 +963,12 @@ table.payments td.label {
{{ _self.lineDescription(Line,options) }}
+ {% if options.show_custom_sku and Line.Item.customSku|strlen > 0 %}
+
SKU pers.: {{ Line.Item.customSku }}
+ {% endif %}
+ {% if options.show_manufacturer_sku and Line.Item.manufacturerSku|strlen > 0 %}
+
SKU man.: {{ Line.Item.manufacturerSku }}
+ {% endif %}
{% if options.per_line_discount == true and not parameters.gift_receipt %}
{% if Line.calcLineDiscount > 0 %}
Réduction : '{{ Line.Discount.name }}' -{{Line.calcLineDiscount|money}}
@@ -896,13 +978,6 @@ table.payments td.label {
{% endif %}
- {% if options.show_custom_sku and Line.Item.customSku %}
-
{{ Line.Item.customSku }}
- {% endif %}
- {% if options.show_manufacturer_sku and Line.Item.manufacturerSku %}
-
{{ Line.Item.manufacturerSku }}
- {% endif %}
-
{% if options.show_msrp == true and not parameters.gift_receipt %}
{% set msrp_printed = false %}
{% for price in Line.Item.Prices.ItemPrice if not msrp_printed %}
@@ -918,7 +993,7 @@ table.payments td.label {
{% if options.per_line_subtotal and options.discounted_line_items and Line.calcLineDiscount != 0 and not parameters.gift_receipt %}
- {{Line.unitQuantity}} x {{Line.displayableUnitPrice|money}}
+ {{Line.unitQuantity}} x {{Line.unitPrice|money}}
{% endif %}
{{Line.unitQuantity}}
{% if options.per_line_subtotal and not parameters.gift_receipt %} x
@@ -936,7 +1011,7 @@ table.payments td.label {
{% if not isTaxInclusive or isTaxInclusive == 'false' %}
{{ Line.calcSubtotal|money }}
{% else %}
- {{ multiply(Line.displayableUnitPrice, Line.unitQuantity)|money }}
+ {{ multiply(Line.unitPrice, Line.unitQuantity)|money }}
{% endif %}
{% endif %}
{{ Line.displayableSubtotal|money }}
@@ -951,13 +1026,6 @@ table.payments td.label {
Article
- {% if options.show_custom_sku and options.show_manufacturer_sku %}
-
SKU pers.
-
SKU man.
- {% elseif options.show_custom_sku or options.show_manufacturer_sku %}
-
SKU
- {% endif %}
-
{% if options.show_msrp and not parameters.gift_receipt %}
PDSF
{% endif %}
@@ -978,6 +1046,9 @@ table.payments td.label {
{% if not parameters.gift_receipt %}
+ {% if Sale.MetaData.itemFeesSubtotal %}
+
Total des frais
{{Sale.MetaData.itemFeesSubtotal|money}}
+ {% endif %}
{% if options.discounted_line_items and Sale.calcDiscount != 0 %}
@@ -988,9 +1059,17 @@ table.payments td.label {
{% endif %}
@@ -1091,18 +1170,18 @@ table.payments td.label {
{% endif %}
{% if options.show_customer_credit_account and Sale.Customer and not parameters.gift_receipt and not store_copy %}
- {% if Sale.Customer.CreditAccount and Sale.Customer.CreditAccount.MetaData.creditBalanceOwed > 0 or Sale.Customer.CreditAccount.MetaData.extraDeposit > 0 %}
+ {% if Sale.Customer.CreditAccount.MetaData.creditBalanceOwed > 0 or Sale.Customer.CreditAccount.MetaData.extraDeposit > 0 %}
Dossier
{% if Sale.Customer.CreditAccount.MetaData.creditBalanceOwed > 0 %}
+ {% endif %}
+
+ {% if Sale.completed == 'true' and Sale.SalePayments and not parameters.gift_receipt %}
+ {#
+ DO NOT CONSOLIDATE THESE IF STATEMENTS.
+ Twig doesnt play nice with these functions.
+ #}
+ {{ _self.transaction_details(Sale) }}
+ {% endif %}
+
+ {% if not parameters.email %}
+ {{ _self.remoteDepositLink(Sale,parameters) }}
{% endif %}
{% autoescape true %}{{ Line.Item.description|nl2br }}{% if Line.tax == 'false' or (Line.calcTax1 == 0 and Line.calcTax2 == 0) %}*{% endif %}{% endautoescape %}
+ {% elseif Line.ItemFee and Line.itemFeeID and (Line.lineType == 'item_fee' or Line.lineType == 'item_fee_refund') %}
+
+ {{ Line.ItemFee.name|nl2br }}{% if Line.tax == 'false' or (Line.calcTax1 == 0 and Line.calcTax2 == 0) %}*{% endif %}
+
{% endif %}
{% if Line.Note %}
@@ -681,6 +783,8 @@ table.payments td.label {
{% endif %}
{% if options.workorders_as_title and Sale.SaleLines is empty and Sale.Customer.Workorders is defined %}
Demandes de service
+ {% elseif Sale.SaleLines is empty and Sale.Customer.CreditAccount.MetaData.remoteDepositAmount %}
+ Demande de dépôt à distance
{% else %}
{% if parameters.gift_receipt %}Reçu-cadeau{% else %}Reçu de vente{% endif %}
{% endif %}
@@ -698,7 +802,7 @@ table.payments td.label {
{% if options.invoice_as_title and options.print_layout %}
{% endif %}
- Reçu ANNULÉ
+ Reçu ANNULÉ
{% if options.invoice_as_title and options.print_layout %}
Facture ANNULÉ
@@ -774,7 +878,7 @@ table.payments td.label {
{% if isVATAndRegistrationNumberOnReceipt() %}
{% if Sale.Shop.vatNumber|strlen and not options.hide_shop_vat_number %}
- TVA:
+ TVA: {{Sale.Shop.vatNumber}}
@@ -797,7 +901,7 @@ table.payments td.label {
{% endif %}
{% if Sale.Customer %}
- {% if Sale.Customer.company|strlen > 0 %}
+ {% if Sale.Customer.company|strlen > 0 and not options.show_customer_name_only %}
Entreprise: {{Sale.Customer.company}}
{% endif %}
@@ -855,6 +959,12 @@ table.payments td.label {
{{ _self.lineDescription(Line,options) }}
+ {% if options.show_custom_sku and Line.Item.customSku|strlen > 0 %}
+
UGS pers.: {{ Line.Item.customSku }}
+ {% endif %}
+ {% if options.show_manufacturer_sku and Line.Item.manufacturerSku|strlen > 0 %}
+
UGS man.: {{ Line.Item.manufacturerSku }}
+ {% endif %}
{% if options.per_line_discount == true and not parameters.gift_receipt %}
{% if Line.calcLineDiscount > 0 %}
Réduction: '{{ Line.Discount.name }}' -{{Line.calcLineDiscount|money}}
@@ -864,13 +974,6 @@ table.payments td.label {
{% endif %}
- {% if options.show_custom_sku and Line.Item.customSku %}
-
{{ Line.Item.customSku }}
- {% endif %}
- {% if options.show_manufacturer_sku and Line.Item.manufacturerSku %}
-
{{ Line.Item.manufacturerSku }}
- {% endif %}
-
{% if options.show_msrp == true and not parameters.gift_receipt %}
{% set msrp_printed = false %}
{% for price in Line.Item.Prices.ItemPrice if not msrp_printed %}
@@ -886,7 +989,7 @@ table.payments td.label {
{% if options.per_line_subtotal and options.discounted_line_items and Line.calcLineDiscount != 0 and not parameters.gift_receipt %}
- {{Line.unitQuantity}} x {{Line.displayableUnitPrice|money}}
+ {{Line.unitQuantity}} x {{Line.unitPrice|money}}
{% endif %}
{{Line.unitQuantity}}
{% if options.per_line_subtotal and not parameters.gift_receipt %} x
@@ -904,7 +1007,7 @@ table.payments td.label {
{% if not isTaxInclusive or isTaxInclusive == 'false' %}
{{ Line.calcSubtotal|money }}
{% else %}
- {{ multiply(Line.displayableUnitPrice, Line.unitQuantity)|money }}
+ {{ multiply(Line.unitPrice, Line.unitQuantity)|money }}
{% endif %}
{% endif %}
{{ Line.displayableSubtotal|money }}
@@ -919,13 +1022,6 @@ table.payments td.label {
Article
- {% if options.show_custom_sku and options.show_manufacturer_sku %}
-
UGS pers.
-
UGS man.
- {% elseif options.show_custom_sku or options.show_manufacturer_sku %}
-
UGS
- {% endif %}
-
{% if options.show_msrp and not parameters.gift_receipt %}
PDSF
{% endif %}
@@ -946,6 +1042,9 @@ table.payments td.label {
{% if not parameters.gift_receipt %}
+ {% if Sale.MetaData.itemFeesSubtotal %}
+
Total des frais
{{Sale.MetaData.itemFeesSubtotal|money}}
+ {% endif %}
{% if options.discounted_line_items and Sale.calcDiscount != 0 %}
@@ -956,9 +1055,17 @@ table.payments td.label {
{% if Payment.amount < 0 %}
@@ -1059,18 +1166,18 @@ table.payments td.label {
{% endif %}
{% if options.show_customer_credit_account and Sale.Customer and not parameters.gift_receipt and not store_copy %}
- {% if Sale.Customer.CreditAccount and Sale.Customer.CreditAccount.MetaData.creditBalanceOwed > 0 or Sale.Customer.CreditAccount.MetaData.extraDeposit > 0 %}
+ {% if Sale.Customer.CreditAccount.MetaData.creditBalanceOwed > 0 or Sale.Customer.CreditAccount.MetaData.extraDeposit > 0 %}
Dossier
{% if Sale.Customer.CreditAccount.MetaData.creditBalanceOwed > 0 %}
+ {% endif %}
+
+ {% if Sale.completed == 'true' and Sale.SalePayments and not parameters.gift_receipt %}
+ {#
+ DO NOT CONSOLIDATE THESE IF STATEMENTS.
+ Twig doesnt play nice with these functions.
+ #}
+ {{ _self.transaction_details(Sale) }}
+ {% endif %}
+
+ {% if not parameters.email %}
+ {{ _self.remoteDepositLink(Sale,parameters) }}
{% endif %}
+ {% endif %}
{% if options.per_line_discount == true and not parameters.gift_receipt %}
{% if Line.calcLineDiscount > 0 %}
Korting: '{{ Line.Discount.name }}' -{{Line.calcLineDiscount|money}}
@@ -864,13 +974,6 @@ table.payments td.label {
{% endif %}
- {% if options.show_custom_sku and Line.Item.customSku %}
-
{{ Line.Item.customSku }}
- {% endif %}
- {% if options.show_manufacturer_sku and Line.Item.manufacturerSku %}
-
{{ Line.Item.manufacturerSku }}
- {% endif %}
-
{% if options.show_msrp == true and not parameters.gift_receipt %}
{% set msrp_printed = false %}
{% for price in Line.Item.Prices.ItemPrice if not msrp_printed %}
@@ -886,7 +989,7 @@ table.payments td.label {
{% if options.per_line_subtotal and options.discounted_line_items and Line.calcLineDiscount != 0 and not parameters.gift_receipt %}
- {{Line.unitQuantity}} x {{Line.displayableUnitPrice|money}}
+ {{Line.unitQuantity}} x {{Line.unitPrice|money}}
{% endif %}
{{Line.unitQuantity}}
{% if options.per_line_subtotal and not parameters.gift_receipt %} x
@@ -904,7 +1007,7 @@ table.payments td.label {
{% if not isTaxInclusive or isTaxInclusive == 'false' %}
{{ Line.calcSubtotal|money }}
{% else %}
- {{ multiply(Line.displayableUnitPrice, Line.unitQuantity)|money }}
+ {{ multiply(Line.unitPrice, Line.unitQuantity)|money }}
{% endif %}
{% endif %}
{{ Line.displayableSubtotal|money }}
@@ -919,13 +1022,6 @@ table.payments td.label {
Product
- {% if options.show_custom_sku and options.show_manufacturer_sku %}
-
Aangepaste artikelnummer
-
Artikelnummer fabr.
- {% elseif options.show_custom_sku or options.show_manufacturer_sku %}
-
Artikelnummer
- {% endif %}
-
{% if options.show_msrp and not parameters.gift_receipt %}
Adviesprijs
{% endif %}
@@ -946,19 +1042,30 @@ table.payments td.label {
{% if not parameters.gift_receipt %}
{% endif %}
@@ -1079,18 +1186,18 @@ table.payments td.label {
{% endif %}
{% if options.show_customer_credit_account and Sale.Customer and not parameters.gift_receipt and not store_copy %}
- {% if Sale.Customer.CreditAccount and Sale.Customer.CreditAccount.MetaData.creditBalanceOwed > 0 or Sale.Customer.CreditAccount.MetaData.extraDeposit > 0 %}
+ {% if Sale.Customer.CreditAccount.MetaData.creditBalanceOwed > 0 or Sale.Customer.CreditAccount.MetaData.extraDeposit > 0 %}
Op rekening
{% if Sale.Customer.CreditAccount.MetaData.creditBalanceOwed > 0 %}
+ {% endif %}
+
+ {% if Sale.completed == 'true' and Sale.SalePayments and not parameters.gift_receipt %}
+ {#
+ DO NOT CONSOLIDATE THESE IF STATEMENTS.
+ Twig doesnt play nice with these functions.
+ #}
+ {{ _self.transaction_details(Sale) }}
+ {% endif %}
+
+ {% if not parameters.email %}
+ {{ _self.remoteDepositLink(Sale,parameters) }}
{% endif %}
+ {% endif %}
{% if options.per_line_discount == true and not parameters.gift_receipt %}
{% if Line.calcLineDiscount > 0 %}
Korting: '{{ Line.Discount.name }}' -{{Line.calcLineDiscount|money}}
@@ -864,13 +974,6 @@ table.payments td.label {
{% endif %}
- {% if options.show_custom_sku and Line.Item.customSku %}
-
{{ Line.Item.customSku }}
- {% endif %}
- {% if options.show_manufacturer_sku and Line.Item.manufacturerSku %}
-
{{ Line.Item.manufacturerSku }}
- {% endif %}
-
{% if options.show_msrp == true and not parameters.gift_receipt %}
{% set msrp_printed = false %}
{% for price in Line.Item.Prices.ItemPrice if not msrp_printed %}
@@ -886,7 +989,7 @@ table.payments td.label {
{% if options.per_line_subtotal and options.discounted_line_items and Line.calcLineDiscount != 0 and not parameters.gift_receipt %}
- {{Line.unitQuantity}} x {{Line.displayableUnitPrice|money}}
+ {{Line.unitQuantity}} x {{Line.unitPrice|money}}
{% endif %}
{{Line.unitQuantity}}
{% if options.per_line_subtotal and not parameters.gift_receipt %} x
@@ -904,7 +1007,7 @@ table.payments td.label {
{% if not isTaxInclusive or isTaxInclusive == 'false' %}
{{ Line.calcSubtotal|money }}
{% else %}
- {{ multiply(Line.displayableUnitPrice, Line.unitQuantity)|money }}
+ {{ multiply(Line.unitPrice, Line.unitQuantity)|money }}
{% endif %}
{% endif %}
{{ Line.displayableSubtotal|money }}
@@ -919,13 +1022,6 @@ table.payments td.label {
Product
- {% if options.show_custom_sku and options.show_manufacturer_sku %}
-
Aangepaste artikelnummer
-
Artikelnummer fabr.
- {% elseif options.show_custom_sku or options.show_manufacturer_sku %}
-
Artikelnummer
- {% endif %}
-
{% if options.show_msrp and not parameters.gift_receipt %}
Adviesprijs
{% endif %}
@@ -946,19 +1042,30 @@ table.payments td.label {
{% if not parameters.gift_receipt %}
{% endif %}
@@ -1059,18 +1166,18 @@ table.payments td.label {
{% endif %}
{% if options.show_customer_credit_account and Sale.Customer and not parameters.gift_receipt and not store_copy %}
- {% if Sale.Customer.CreditAccount and Sale.Customer.CreditAccount.MetaData.creditBalanceOwed > 0 or Sale.Customer.CreditAccount.MetaData.extraDeposit > 0 %}
+ {% if Sale.Customer.CreditAccount.MetaData.creditBalanceOwed > 0 or Sale.Customer.CreditAccount.MetaData.extraDeposit > 0 %}
Op rekening
{% if Sale.Customer.CreditAccount.MetaData.creditBalanceOwed > 0 %}
+ {% endif %}
+
+{% endmacro %}
diff --git a/workorder/customizable_workorder.tpl b/workorder/customizable_workorder.tpl
index 80f7371..d718805 100644
--- a/workorder/customizable_workorder.tpl
+++ b/workorder/customizable_workorder.tpl
@@ -3,32 +3,32 @@
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 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 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 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 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_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_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 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 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 %}
@@ -160,6 +160,12 @@ table td.description {
width: 100%;
}
+
+table td.item_fee_line_name {
+ text-align: left;
+ padding-left: 10px;
+}
+
table .description small {
font-weight: normal;
}
@@ -356,15 +362,19 @@ img.barcode {
Price
{% 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 %}
- {{ _self.line(WorkorderLine, parameters, _context) }}
+ {% if WorkorderLine.itemFeeID == 0 %}
+ {{ _self.line(WorkorderLine, parameters, _context) }}
+ {% endif %}
{% endfor %}
{% if specialorder == true %}
@@ -406,6 +416,15 @@ img.barcode {
{% endif %}
+ {% if Workorder.MetaData.itemFeesSubtotal %}
+
+ {% for WorkorderSaleLine in Line.SaleLine %}
+ {% if WorkorderSaleLine.itemFeeID != 0 and (WorkorderSaleLine.lineType == 'item_fee' or WorkorderSaleLine.lineType == 'item_fee_refund') %}
+
+ {% for WorkorderSaleLine in Line.SaleLine %}
+ {% if WorkorderSaleLine.itemFeeID != 0 and (WorkorderSaleLine.lineType == 'item_fee' or WorkorderSaleLine.lineType == 'item_fee_refund') %}
+
+ {% for WorkorderSaleLine in Line.SaleLine %}
+ {% if WorkorderSaleLine.itemFeeID != 0 and (WorkorderSaleLine.lineType == 'item_fee' or WorkorderSaleLine.lineType == 'item_fee_refund') %}
+
+ {% for WorkorderSaleLine in Line.SaleLine %}
+ {% if WorkorderSaleLine.itemFeeID != 0 and (WorkorderSaleLine.lineType == 'item_fee' or WorkorderSaleLine.lineType == 'item_fee_refund') %}
+
+ {% for WorkorderSaleLine in Line.SaleLine %}
+ {% if WorkorderSaleLine.itemFeeID != 0 and (WorkorderSaleLine.lineType == 'item_fee' or WorkorderSaleLine.lineType == 'item_fee_refund') %}
+