嗨。我们如何帮助?< / h1 >< / div >

现金排在销售收据< / h1 >

一些国家法律强制要求现金支付的舍入为某些企业。这些法律是为了减少昂贵的生产小硬币(例如1或2分硬币)。他们也到位,公民在小硬币往往是沉重和繁琐的携带。< / p >< p >遵守这些舍入法,零售POS允许商人圆现金支付和销售总额在收据上打印模板的使用。< / p >

现金排在比利时商人

截至2019年12月1日,比利时政府需要某些企业在应付总金额由个人客户最近的5美分。本法适用于销售,商家和客户身体和在线订单拿起店内,支付现金。< / p >< p >专门帮助比利时商人开始舍入现金支付和收入,销售总额法语(比利时)佛兰德的打印模板编码遵守法律。他们这样做的时候通过显示原始的和圆形的销售总销售收入所支付的现金(无论是全部或部分)。他们还显示原来的和圆形的现金付款收据。< / p >< p >例如,如果销售总额是10.02欧元和5.02欧元现金支付的客户和他们的借记卡和5.00欧元,欧元5.02的现金付款,将圆形5.00欧元的收据。结果,销售总额的10.02欧元也将圆形至10.00欧元。借记卡付款将不圆。< / p >< p >至于税收tax-exclusive账户,它们应用于销售总圆之前,而不是之后。例如,如果销售总额是10.02欧元,收据上的圆形的销售总额将10.00欧元,但税收收据将被应用到原始销售总额10.02欧元。< / p >< p >如果一个帐户tax-inclusive,税收计算基于物品的原价,不是圆形的物品价格。例如,如果原始tax-inclusive物品的价格是10.02欧元,收据上的圆形的物品的价格将是10.00欧元。然而,税收收据计算基于原始tax-inclusive价格10.02欧元。< / p >< p >最后,舍入只发生在销售收据。这不是反映在报告内零售POS。例如,如果收据上的圆形的销售总额是10.00欧元,商人视图下的销售报告>总数,他们将会看到最初的销售总额10.02欧元。这同样适用于现金支付。因为现金支付和销售总额四舍五入为最接近的5美分,然而,原始的区别和圆形的数量不会相差超过2美分。< / p >< p >开始征集现金支付和销售总额收据作为比利时商人,步骤依赖于如果你:< / p >< p >< / p >

现金舍入作为一种新的比利时商人

如果你新比利时商人和零售POS创建账户后12月17日,2019年,默认的打印模板在你的账户自动轮销售总额和现金支付收据给你。如果你创建帐户之前12月17日,2019年,请跟下一节中的说明舍入为现有的比利时商人与默认打印模板。< / p >< p >< / p >

现金舍入现有的比利时商人用默认打印模板

如果你现有的比利时商人使用默认的打印模板,与零售POS帐户,您需要手动更新打印模板开始征集现金支付和销售收入总额。这样做:< / p >< p >< / p >

  1. 从主菜单中,单击设置>打印模板Screen_Shot_2019-11-29_at_2.51_1.png
    请注意:如果你没有看到打印模板特性,联络支持在你的账户启用它。< / div >
  2. 复制粘贴的代码下面进入SalesField。你需要复制和粘贴的代码取决于如果你使用法国(比利时)或佛兰德打印模板。

    法语(比利时)
    {#
    * * * * * *开始自定义选项
    之间切换的选项在本节中“假”和“真正的”为了模板中启用/禁用它们
    #}

    {#布局调整#}
    {%设置print_layout =参数。print_layout = = " true "吗?真:假%}{#改善收据布局大型显示/纸张大小(A4 /信/电子邮件)#}
    {%设置chrome_right_margin_fix = false %}{#修复一个潜在的问题,右边的收据被切断在Chrome #}
    {%设置firefox_margin_fix = false %}{#修复问题利润率切断当一封信打印机上打印一个Mac #}

    {#销售#}
    {%设置hide_register_name = false %}{#隐藏注册名字销售#}
    {%设置hide_employee_name = false %}{#隐藏员工姓名销售#}
    {%设置hide_shop_vat_number = false %}{#隐藏商店销售增值税税号#}
    {%设置hide_shop_registration_number = false %}{#隐藏商店注册号销售#}
    {%设置hide_customer_vat_number = false %}{#隐藏客户增值税号码销售#}
    {%设置hide_customer_registration_number = false %}{#隐藏客户登记号码销售#}
    {%设置sale_id_instead_of_ticket_number = true %}{#显示了ID,而不是出售机票号码#}
    {%设置invoice_as_title = false %}{#如果print_layout是真的,“发票”将会显示,而不是“销售发票”A4 /信件/电子邮件格式#}
    {%设置workorders_as_title = false %}{#变化收到标题“工作单”如果没有Salesline项目和1个或多个workorders #}
    {%设置quote_id_prefix = " " %}{#添加一个文本字符串的前缀引用ID。例:“Q -”。当使用“sale_id_instead_of_ticket_number”是真正的#}
    {%设置sale_id_prefix = " " %}{#添加一个文本字符串的前缀销售ID。例:“年代”。当使用“sale_id_instead_of_ticket_number”是真正的#}
    {%设置hide_notes_in_sale_receipt = false %}{#隐藏印刷注意销售收据,如果任何#}
    {%设置hide_notes_in_gift_receipt = false %}{#隐藏印刷注意礼物的收据,如果任何#}

    {#项行#}
    {%设置per_line_discount = false %}{#显示每个销售折扣行#}
    {%设置per_line_subtotal = false %}{#显示每个销售行小计(例:“1 x 5.00”) #}
    {%设置discounted_line_items = false %}{#罢工原来价格并显示折扣价格在每一笔销售行#}
    {%设置per_line_employee = false %}{#显示员工对每个销售线#}
    {%设置show_custom_sku = false %}{#添加定制SKU的SKU列,如果可行的话,在每一笔销售行#}
    {%设置show_manufacturer_sku = false %} {# SKU柱制造商SKU补充道,如果可行的话,在每一笔销售行#}
    {%设置show_msrp = false %}{#增加厂商建议零售价列物品厂商建议零售价,如果可行的话,在每一笔销售行#}

    {#混杂。调整#}
    {%设置show_shop_name_with_logo = false %}{#商店标志下的字号显示#}
    {%设置show_thank_you = true %}{#显示“谢谢<客户名称> !”高于底部条形码#}
    {%设置show_transaction_item_count = false %}{#给销售的物品总量接近底部的收据#}
    {%设置show_sale_lines_on_store_copy = true %}{#显示销售信用卡上的线存储复制收据#}
    {%设置quote_to_invoice = false %}{#改变德维斯措辞在销售和制作销售报价(不适用于工作订单引号)#}
    {%设置show_sale_lines_on_gift_receipt = true %}{#显示销售礼物收据上的线#}
    {%设置show_barcode = true %}{#显示底部条形码收据#}
    {%设置show_barcode_sku = true %}{#显示系统ID的底部条形码#}
    {%设置show_workorders_barcode = false %}{#显示workorders条形码#}
    {%设置show_workorders_barcode_sku = true %}{#显示系统ID的底部workorders条形码#}
    {%设置hide_ticket_number_on_quote = false %}{#隐藏了机票号码报价#}
    {%设置hide_quote_id_on_sale = false %}{#隐藏了引用ID销售#}

    {#客户信息#}
    {%设置show_full_customer_address = false %}{#显示客户详细地址,如果可用#}
    {%设置show_customer_name_only = true %}{#隐藏所有客户信息除了他们的名字#}
    {%设置show_customer_notes = false %}{#显示在客户档案中输入笔记#}
    {%设置company_name_override = false %}{#不显示客户名称,如果公司名称存在#}

    {#客户账户#}
    {%设置show_credit_account_signature = false %}{#打印存储复制与签名档,使用一个信用帐户(不是存款)#}
    {%设置show_customer_layaways = true %}{#显示客户预约购物信息的底部收据#}
    {%设置show_customer_specialorders = true %}{#显示客户特殊订单信息的底部收据#}
    {%设置show_customer_workorders = true %}{#显示客户工作订单信息的底部收据#}
    {%设置show_customer_credit_account = true %}{#显示客户信用账户信息的底部收据#}

    {#标识#}
    {%设置logo_width = 225 px的%}{#默认宽度是225 px。#}
    {%设置logo_height = " %}{#默认高度是55 px。#}
    {%设置multi_shop_logos = false %}{#允许多个标志添加对不同地点使用下面的选项#}

    {#
    使用以下shop_logo_array进入你所有的位置和标识的链接图片上传到互联网。
    输入您确切的商店名称(区分大小写)后的引号“名称”:条目,然后输入URL标识后的“标志”:条目。
    一定要设置multi_shop_logos上面设置为true来这些标识生效!
    #}

    {%设置shop_logo_array =
    {
    0:{“名称”:“商店”,“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 ": " "}
    }
    %}

    {#
    * * * * * *结束自定义选项
    #}

    {%扩展参数。打印吗?“printbase”:“基地”%}
    {%块extrastyles %}

    @page{保证金:0 px;}

    身体{
    字体:正常10 pt Helvetica Neue, Helvetica, Arial,无衬线;
    宽度:{{parameters.page_width | pageWidthToCss}};
    保证金:0汽车;
    填充:1 px;< !You need this to make the printer behave -->

    {%如果chrome_right_margin_fix = = true %}
    margin-right: .13in;
    {% endif %}
    {%如果firefox_margin_fix = = true %}
    保证金:25 px;
    {% endif %}
    }

    .store {
    page-break-after:总是;
    margin-bottom: 40像素;
    }

    .receipt {
    字体:正常10 pt Helvetica Neue, Helvetica, Arial,无衬线;
    }

    h1 {
    保证金:.5em 0 0;
    字体大小:12 pt;
    text-align:中心;
    }

    p.date,p。{副本
    字体大小:9分;
    保证金:0;
    text-align:中心;
    }

    p.details {
    字体大小:10 pt;
    text-align:左;
    }

    h2 {
    边界底部:1 px固体黑色;
    首字母:大写;
    字体大小:10 pt;
    保证金:.5em 0 0;
    }

    .receiptHeader {
    text-align:中心;
    }

    .receiptHeader h3 {
    字体大小:12 pt;
    保证金:0;
    }

    .shipping h4 {
    margin-top: 0;
    }

    .receiptHeader img {
    保证金:8 0 px 4 px;
    }

    .receiptShopContact {
    保证金:0;
    }

    表{
    保证金:0 0;
    宽度:100%;
    border-collapse:崩溃;
    }

    表th {text-align:左;}

    tbody th{表
    粗细:正常;
    text-align:左;
    }

    表道明。量、表th。{数量text-align:正确;}
    表道明。数量、表th。量{text-align:中心;}

    th.description {
    宽度:100%;
    }

    道明。量{空白:nowrap;}}

    表。总数{text-align:正确;}
    表。支付{text-align:正确;}
    表。间隔{margin-top: 1 em;}
    表tr.total td{粗细:大胆的;}

    表道明。{数量padding-left: 10 px;}
    表道明。custom_field {
    padding-right: 10 px;
    text-align:中心;
    }

    表。{出售边界底部:1 px固体黑色;}

    表。出售th {
    边界底部:1 px固体黑色;
    粗细:大胆的;
    }

    表div.line_description {
    text-align:左;
    粗细:大胆的;
    }

    表div.line_note {
    text-align:左;
    padding-left: 10 px;
    }

    表div.line_serial {
    text-align:左;
    粗细:正常;
    padding-left: 10 px;
    }

    表。workorders div.line_description {
    粗细:正常;
    padding-left: 10 px;
    }

    表。workorders div.line_note {
    粗细:正常;
    padding-left: 10 px;
    }

    表。workorders div.line_serial {
    粗细:正常;
    padding-left: 20 px;
    }

    表。workorders道明。workorder div.line_note {
    粗细:大胆的;
    padding-left: 0 px;
    }

    p。谢谢{
    保证金:0;
    text-align:中心;
    }

    .note {text-align:中心;}


    .barcodeContainer {
    margin-top: 15 px;
    text-align:中心;
    }

    .workorders .barcodeContainer {
    margin-left: 15 px;
    text-align:左;
    }

    戴斯。莱纳姆:{
    隐藏溢出:
    }

    dl dt {
    粗细:大胆的;
    宽度:80 px;
    浮:左
    }

    dl dd {
    border-top: 2 px固体黑色;
    padding-top: 2 px;
    保证金:1 em 0 0;
    浮:左;
    宽度:180像素
    }

    dl dd p{保证金:0;}

    .strike{文字修饰:线穿过;}

    .receiptCompanyNameField,
    .receiptCustomerNameField,
    .receiptCustomerVatField,
    .receiptCustomerCompanyVatField,
    .receiptCustomerAddressField,
    .receiptPhonesContainer,
    .receiptCustomerNoteField {
    显示:块;
    }

    表。道明。标签{
    粗细:正常;
    text-align:正确;
    宽度:100%;
    }

    {%如果print_layout %}

    / *收据只* /
    @media (max-width: 299 px) {
    .show-on-print {
    显示:没有;
    }
    .hide-on-print {
    显示:块;
    }
    }

    @media (min-width: 480 px) {
    / *电子邮件攻击,不介意优化* /
    表。saletotals {
    浮:正确;
    Margin-top: 50 px;
    宽度:50% !重要;
    }

    表。支付{
    宽度:100%;
    }

    表。支付{
    浮:左;
    margin-top: 5 px;
    宽度:50%;
    text-align:左;
    }

    表。支付tr道明。{数量
    text-align:正确;
    宽度:汽车;
    }

    表。支付tr道明。{数量
    text-align:左;
    宽度:100%;
    }


    表。道明。标签{
    粗细:大胆的;
    text-align:左;
    空白:nowrap;}
    宽度:继承;
    }
    }

    / *电子邮件,信件,A4只* /
    @media (min-width: 300 px) {

    .show-on-print {
    显示:块;
    }
    .hide-on-print {
    显示:没有;
    }

    身体{
    填充:15 px;
    位置:相对;
    }

    .receiptHeader {
    浮:左;
    位置:相对;
    max-width: 50%;
    text-align:左;
    }

    .receiptHeader img {
    显示:块;
    保证金:0 0 10 px;
    max-width: 120 px;
    }

    .receiptHeader h3。receiptShopName {
    字体大小:14 pt;
    margin-bottom: 3 px;
    文字修饰:下划线;
    }

    .receiptShopName,
    .receiptShopContact {
    text-align:左;
    }

    .receiptTypeTitle,
    .receiptTypeTitle跨度{
    字体大小:18 pt;
    浮:正确;
    明确:正确的;
    text-align:中心;
    margin-top: 0;
    }

    .receiptTypeTitle跨度。hide-on-print {
    字体大小:0;
    显示:没有;
    }

    p.date,
    p。{副本
    浮:正确;
    明确:正确的;
    }

    # receiptInfo {
    明确:;
    padding-top: 15 px;
    padding-left: 0 px;
    }

    # receiptInfo:{后
    内容:“”;
    显示:表;
    明确:;
    }

    .receiptQuoteIdField,
    .receiptTicketIdField {
    明确:正确的;
    浮:正确;
    }
    .receiptQuoteIdLabel,
    .receiptTicketIdLabel {
    显示:没有!重要;
    }
    # receiptQuoteId,
    # receiptTicketId {
    字体大小:14 pt;
    粗细:大胆的;
    显示:块;
    浮:正确;
    }

    .vatNumberField,
    .companyRegistrationNumberField,
    .receiptRegisterNameField,
    .receiptEmployeeNameField {
    明确:正确的;
    浮:正确;
    text-align:正确;
    }
    .vatNumberField跨度,
    .companyRegistrationNumberField跨度,
    .receiptRegisterNameField跨度,
    .receiptEmployeeNameField跨度{
    字体大小:8 pt;
    }

    .receiptCustomerAddressLabel,
    .receiptEmailLabel {
    显示:没有!重要;
    }

    .receiptCompanyNameField,
    .receiptCustomerNameField,
    .receiptCustomerVatField,
    .receiptCustomerCompanyVatField {
    margin-bottom: 3 px;
    margin-top: 3 px;
    }

    .receiptCompanyNameLabel,
    .receiptCustomerNameLabel,
    .receiptCustomerVatLabel,
    .receiptCustomerCompanyVatLabel {
    字体大小:11分;
    粗细:大胆的;
    }
    # receiptCompanyName,
    # receiptCustomerName {
    字体大小:12 pt;
    }

    .receiptCompanyNameField,
    .receiptCustomerNameField,
    .receiptCustomerVatField,
    .receiptCustomerCompanyVatField,
    .receiptCustomerAddressField,
    .receiptPhonesContainer,
    .receiptCustomerNoteField {
    显示:块;
    max-width: 40%;
    }

    表。{出售
    明确:;
    padding-top: 30 px;
    }

    表。tbody tr:销售的第一个孩子,
    表。道明{tbody tr:销售的第一个孩子
    padding-top: 10 px;
    }
    表。出售tbody tr:胎,
    表。出售tbody tr:胎td {
    padding-bottom: 10 px;
    }
    表。销售tbody th,
    表。tbody td{出售
    padding-bottom: 5 px;
    padding-top: 5 px;
    }

    .paymentTitle,
    .notesTitle,
    .footerSectionTitle {
    字体大小:12 pt;
    padding-top: 15 px;
    首字母:没有;
    }
    .footerSectionTitle {
    明确:;
    }
    .notesTitle {
    浮:左;
    宽度:100%;
    }

    .thankyou {
    明确:;
    padding-top: 30 px;
    }

    img。条码{
    边界:没有;
    高度:30 px;
    宽度:150 px;
    }

    }

    {% endif %}

    {% endblock extrastyles %}

    {%块内容%}
    {%设置page_load = false %}
    {%在销售销售%}
    {%如果没有参数。页面或参数。页面= = 1%}
    如果Sale.Shop.ReceiptSetup {%。creditcardAgree | strlen > 0,而不是参数。gift_receipt而不是参数。电子邮件%}
    {% Sale.SalePayments SalePayment。SalePayment %}
    如果参数{%。force_cc_agree或参数。print_workorder_agree %}
    {{_self.store_receipt(销售、参数、_context SalePayment)}}
    {%设置page_load = true %}
    {%其他%}
    如果SalePayment {%。归档= =‘假’和SalePayment.MetaData.ReceiptData。requires_receipt_signature | CompBool = = true %}
    {{_self.store_receipt(销售、参数、_context SalePayment)}}
    {%设置page_load = true %}
    {% endif %}
    {% endif %}
    {% endfor %}
    {% endif %}
    {% endif %}

    {%如果没有参数。页面或参数。页面= = 2或不page_load %}
    < !replace.email_custom_header_msg -->
    < div >
    {{_self.ship_to(销售、_context)}}
    {{_self.header(销售、_context)}}
    {{_self.title(销售、参数、_context)}}
    {{_self.date(销售)}}
    {{_self.sale_details(销售、_context)}}
    {%如果没有参数。gift_receipt或show_sale_lines_on_gift_receipt %}
    {{_self.receipt(销售、参数、假,_context)}}
    {% endif %}

    {#项目计数循环#}
    {%如果show_transaction_item_count %}
    {%设置transaction_item_count = 0%}
    {% Sale.SaleLines线。SaleLine %}
    {%设置transaction_item_count = transaction_item_count +行。unitQuantity %}
    {% endfor %}
    < p >数量总d 'items: {{transaction_item_count}} < / p >
    {% endif %}

    {%如果出售。quoteID Sale.Quote。笔记| strlen > 0%} < p id =“receiptQuoteNote”类= "注意" > {{Sale.Quote。笔记| noteformat |生}}< / p > {% endif %}

    如果Sale.Shop.ReceiptSetup {%。generalMsg | strlen > 0%} < p id =“receiptNote”类= "注意" > {{Sale.Shop.ReceiptSetup。generalMsg | noteformat |生}}< / p > {% endif %}

    {{_self.client_workorder_agreement(销售、_context)}}

    {%如果没有参数。gift_receipt %}
    {{_self.no_tax_applied_text(销售)}}
    < p id = " receiptThankYouNote " class = "谢谢" >
    {%如果show_thank_you %}
    谢谢{%如果出售。客户%}{{Sale.Customer.firstName}} {{Sale.Customer.lastName}}{% endif %}!
    {% endif %}
    < / p >
    {% endif %}

    {%如果show_barcode %}
    < p class = " barcodeContainer " >
    < img id = " barcodeImage "高度=“50”宽度= " 250 "类=“条形码”src = " / barcode.php ?类型=单据编号={{出售。ticketNumber}} &hide_text ={{不是show_barcode_sku}} " >
    < / p >
    {% endif %}
    < / div >

    < !replace.email_custom_footer_msg -->
    {% endif %}
    {% endfor %}
    {% endblock内容%}

    {%宏观no_tax_applied_text(出售)%}
    {%设置has_non_taxed_item =‘假’%}
    {% Sale.SaleLines线。SaleLine %}
    {#如果没有税收,不是workorder线,除非是workorders劳动行#}
    {%如果(线。税收= =“假”或(线。calcTax1 = = 0和线。calcTax2 = = 0))
    (线。isWorkorder = =‘假’或Line.Note。注意= =‘劳动’))%}
    {%设置has_non_taxed_item =“真实”%}
    {% endif %}
    {% endfor %}
    {%如果(has_non_taxed_item = = '真的')%}
    < p id = " noTaxApplied " class = "谢谢" > *没有任何税款appliquee < / p >
    {% endif %}
    {% endmacro %}

    {%宏观store_receipt(销售、参数选择、付款)%}
    < div class = "存储" >
    {{_self.header(销售、_context)}}
    {{_self.title(销售、参数选项)}}
    < p class = "复制" > Copie du商店< / p >
    {{_self.date(销售)}}
    {{_self.sale_details(销售、选项)}}

    {%如果选项。show_sale_lines_on_store_copy %}
    {{_self.receipt(销售、参数,真的,选项)}}
    {%其他%}
    < h2类= " paymentTitle " > Paiements < / h2 >
    <表类=“支付”>
    {{_self.cc_payment_info(销售、付款)}}
    < /表>
    {% endif %}

    {%如果出售。quoteID Sale.Quote。笔记| strlen > 0%} < p class = "注意" > {{Sale.Quote。笔记| noteformat |生}}< / p > {% endif %}

    {{_self.cc_agreement(销售、付款、选项)}}
    {{_self.shop_workorder_agreement(销售)}}

    < img高度=“50”宽度= =“条形码”src = " 250 "类" / barcode.php ?类型=单据编号= {{Sale.ticketNumber}} " >

    {{_self.ship_to(销售、选项)}}
    < / div >
    {% endmacro %}

    {%宏观lineDescription(线、期权)%}
    {%如果线。项目%}
    < div class = ' line_description ' >
    {% autoescape真的%}{{Line.Item.description | nl2br}}{%如果线。税收= =“假”或(线。calcTax1 = = 0和线。calcTax2 = = 0) %} * {% endif %} {% endautoescape %}
    < / div >
    {% endif %}
    {%如果线。注意%}
    < div class = ' line_note ' >
    {% autoescape真的%}
    {{Line.Note。注意| noteformat |生}}
    < !If line has no tax and is not a workorder line, unless it is the workorder's "Labor" line -->
    如果(行{%。税收= =“假”或(线。calcTax1 = = 0和线。calcTax2 = = 0))
    (线。isWorkorder = =‘假’或Line.Note。注意= =‘劳动’)%}
    *
    {% endif %}
    {% endautoescape %}
    < / div >
    {% endif %}
    {%如果线。序列化%}
    {% Line.Serialized序列化。序列化%}
    < div class = ' line_serial ' >
    的联赛:{{序列化。串行}}{{序列化。颜色}}{{序列化。大小}}
    < / div >
    {% endfor %}
    {% endif %}
    {%如果选项。per_line_employee %}
    < div class = ' line_note ' >
    雇工(e): {{Line.Employee。firstName}}
    < / div >
    {% endif %}
    {% endmacro %}

    {%宏观标题(销售、参数选项)%}
    < h1类= " receiptTypeTitle " >
    {%如果出售。calcTotal > = 0%}
    {%如果Sale.completed = =“真实”%}
    {%如果选项。invoice_as_title和选项。print_layout %}
    < span class = " hide-on-print " >
    {% endif %}
    {%如果选项。workorders_as_title和销售。SaleLines是空的,Sale.Customer。定义Workorders %}
    德服务需求
    {%其他%}
    如果参数{%。gift_receipt %}Reçu cadeau{% else %}Reçu de vente{% endif %}
    {% endif %}
    {%如果选项。invoice_as_title和选项。print_layout %}
    < / span >
    < span class = " show-on-print " >
    {%如果选项。workorders_as_title和销售。SaleLines是空的,Sale.Customer。定义Workorders %}
    德服务需求
    {%其他%}
    制作
    {% endif %}
    < / span >
    {% endif %}
    {% elseif出售。废弃的= =“真实”%}
    {%如果选项。invoice_as_title和选项。print_layout %}
    < span class = " hide-on-print " >
    {% endif %}
    Recu <大>环带大> < /
    {%如果选项。invoice_as_title和选项。print_layout %}
    < / span >
    < span class = " show-on-print " >制作环带< / span >
    {% endif %}
    {%其他%}
    {%如果选项。quote_to_invoice %}
    制作
    {%其他%}
    德维斯
    {% endif %}
    {%如果不出售。quoteID %}
    <大>(不是联合国RECU) < /大>
    {% endif %}
    {% endif %}
    {%其他%}
    {%如果选项。invoice_as_title和选项。print_layout %}
    < span class = " hide-on-print " >
    {% endif %}
    Recu de remboursement
    {%如果选项。invoice_as_title和选项。print_layout %}
    < / span >
    < span class = " show-on-print " >制作de remboursement < / span >
    {% endif %}
    {% endif %}
    < / h1 >
    {% endmacro %}

    {%宏观日期(出售)%}
    < p class = "日期" id = " receiptDateTime " >
    {%如果出售。时间戳%}
    {{Sale.timeStamp | correcttimezone |日期(getDateTimeFormat ())}}
    {%其他%}
    {{“现在”|日期(getDateTimeFormat ())}}
    {% endif %}
    < / p >
    {% endmacro %}

    {%宏观sale_details(销售、选项)%}
    < p id = " receiptInfo " class = "细节" >
    {%如果选项。hide_quote_id_on_sale Sale.completed = =“真实”%}
    {%其他%}
    {%如果出售。quoteID > 0%}
    < span class = " receiptQuoteIdField " >
    < span class = " receiptQuoteIdLabel " >
    {%如果选项。quote_to_invoice %}
    #制作:
    {%其他%}
    #德维斯:
    {% endif %}
    < / span >
    < span id = " receiptQuoteId " > {{options.quote_id_prefix}} {{Sale.quoteID}} < / span >
    < br / >
    < / span >
    {% endif %}
    {% endif %}

    {%如果选项。hide_ticket_number_on_quote Sale.completed ! =“真正”和销售。quoteID > 0%}
    {%其他%}
    < span class = " receiptTicketIdField " >
    < span class = " receiptTicketIdLabel " >
    {%如果选项。其他sale_id_instead_of_ticket_number %}销售:{% %}制作:{% endif %} < / span >
    < span id = " receiptTicketId " >
    {%如果选项。sale_id_instead_of_ticket_number %}
    {{options.sale_id_prefix}} {{Sale.saleID}}
    {%其他%}
    {{Sale.ticketNumber}}
    {% endif %}
    < / span >
    < br / >
    < / span >
    {% endif %}

    {%如果isVATAndRegistrationNumberOnReceipt () %}
    如果Sale.Shop {%。vatNumber | strlen而不是选项。hide_shop_vat_number %}
    < span class = " vatNumberField " >
    TVA: < span class = " vatNumberLabel " > < / span >
    < span id = " vatNumber " > {{Sale.Shop.vatNumber}} < / span >
    < br / >
    < / span >
    {% endif %}
    {%如果Sale.Shop.companyRegistrationNumber | strlen而不是选项。hide_shop_registration_number %}
    < span class = " companyRegistrationNumberField " >
    < span class = " companyRegistrationNumberLabel " > # d 'enregistrement cie: < / span >
    < span id = " companyRegistrationNumber " > {{Sale.Shop.companyRegistrationNumber}} < / span >
    < br / >
    < / span >
    {% endif %}
    {% endif %}

    {%如果出售。注册并不是选项。hide_register_name %}
    < span class = " receiptRegisterNameField " > <跨类= " receiptRegisterNameLabel " > Caisse: < / span > < span id = " receiptRegisterName " > {{Sale.Register.name}} < / span > < br / > < / span >
    {% endif %}

    {%如果出售。员工而不是选项。hide_employee_name %}
    < span class = " receiptEmployeeNameField " > <跨类= " receiptEmployeeNameLabel " >雇工(e): < / span > < span id = " receiptEmployeeName " > {{Sale.Employee。firstName}} < / span > < br / > < / span >
    {% endif %}

    {%如果出售。客户%}
    {%如果Sale.Customer.company | strlen > 0%}
    < span class = " receiptCompanyNameField " > <跨类= " receiptCompanyNameLabel " >企业:< / span > < span id = " receiptCompanyName " > {{Sale.Customer.company}} < / span > < br / > < / span >
    {% endif %}

    {%如果不options.company_name_override Sale.Customer.company | strlen > 0%}
    < span class = " receiptCustomerNameField " > <跨类= " receiptCustomerNameLabel " >客户:< / span > < span id = " receiptCustomerName " > {{Sale.Customer。firstName}} {{Sale.Customer。lastName}} < / span > < br / > < / span >
    {% endif %}

    {%如果不是选项。show_customer_name_only %}
    {%如果选项。show_full_customer_address %}
    < span class = " receiptCustomerAddressField " >
    < span class = " receiptCustomerAddressLabel " >地址:< / span >
    {{_self.address (Sale.Customer.Contact, ', '选项)}}
    < / span >
    {% endif %}

    < span id = =“缩进”>“receiptPhonesContainer”类
    {% Sale.Customer.Contact.Phones的电话。ContactPhone %}
    < span情报自动处理= " receiptPhoneNumber " >{{电话。useType}}:{{电话。号码}}< / span > < br / >
    {% endfor %}

    {% Sale.Customer.Contact.Emails的电子邮件。ContactEmail %}
    < span class = " receiptEmailLabel " > Courriel: < / span > < span id = " receiptEmail " >{{邮件。地址}}({{Email.useType}}) < / span > < br / >
    {% endfor %}
    < / span >
    {% endif %}

    {%如果isVATAndRegistrationNumberOnReceipt () %}
    如果Sale.Customer {%。vatNumber | strlen而不是选项。hide_customer_vat_number %}
    < span class = " receiptCustomerVatField " >
    < span class = " receiptCustomerVatLabel " > # TVA客户:< / span >
    < span id = " customerVatNumber " > {{Sale.Customer.vatNumber}} < / span >
    < br / >
    < / span >
    {% endif %}

    {%如果Sale.Customer.companyRegistrationNumber | strlen而不是选项。hide_customer_registration_number %}
    < span class = " receiptCustomerCompanyVatField " >
    < span class = " receiptCustomerCompanyVatLabel " > #商会客户:< / span >
    < span id = " customerCompanyVatNumber " > {{Sale.Customer.companyRegistrationNumber}} < / span >
    < br / >
    < / span >
    {% endif %}
    {% endif %}

    {%如果选项。show_customer_notes %}
    如果Sale.Customer.Note {%。注意| strlen > 0%}
    < span class = " receiptCustomerNoteField " > <跨类= " receiptCustomerNoteLabel " >注意:< / span > {{Sale.Customer.Note。注意| noteformat |生}}< br / > < / span >
    {% endif %}
    {% endif %}
    {% endif %}
    < / p >
    {% endmacro %}

    {%宏线(isTaxInclusive、线、参数选项)%}
    < tr >
    < th情报自动处理= " lineItemDescription”class = "描述" >
    {{_self.lineDescription(线、期权)}}
    {%如果选项。per_line_discount = = true,而不是参数。gift_receipt %}
    {%如果线。calcLineDiscount > 0%}
    <小>减少:{{Line.Discount.name}}, {{Line.calcLineDiscount |钱}}< /小>
    {% elseif线。calcLineDiscount < 0%}
    <小>:减少的{{Line.Discount.name}} {{Line.calcLineDiscount | getinverse |钱}}< /小>
    {% endif %}
    {% endif %}
    < / th >

    {%如果选项。show_custom_sku Line.Item。customSku %}
    < td类= " custom_field " > {{Line.Item。customSku}} < / td >
    {% endif %}
    {%如果选项。show_manufacturer_sku Line.Item。manufacturerSku %}
    < td类= " custom_field " > {{Line.Item。manufacturerSku}} < / td >
    {% endif %}

    {%如果选项。show_msrp = = true,而不是参数。gift_receipt %}
    {%设置msrp_printed = false %}
    {% Line.Item.Prices价格。ItemPrice如果不是msrp_printed %}
    {%如果价格。useType = =“厂商建议零售价”和价格。数量! = " 0 " %}
    < td类= " custom_field " >{{价格。|钱}}< / td >
    {%设置msrp_printed = true %}
    {% endif %}
    {% endfor %}
    {%如果不是msrp_printed %}
    < td类= " custom_field " > N / D < / td >
    {% endif %}
    {% endif %}

    < td情报自动处理= " lineItemQuantity " class = "数量" >
    {%如果选项。per_line_subtotal和选项。discounted_line_items和线。calcLineDiscount ! = 0,而不是参数。gift_receipt %}
    < span class = "罢工”>{{线。x unitQuantity}} {{Line.displayableUnitPrice |钱}}< / span >
    {% endif %}
    {{Line.unitQuantity}}
    {%如果选项。per_line_subtotal而不是参数。gift_receipt x %}
    {%如果选项。discounted_line_items %}
    {{分裂(行。displayableSubtotal Line.unitQuantity) |钱}}
    {%其他%}
    {{Line.displayableUnitPrice |钱}}
    {% endif %}
    {% endif %}
    < / td >

    < td情报自动处理= " lineItemPrice " class = "数量" >
    {%如果没有参数。gift_receipt %}
    {%如果选项。discounted_line_items而不是选项。per_line_subtotal和线。calcLineDiscount ! = 0%}
    {%如果不是isTaxInclusive或isTaxInclusive = =‘假’%}
    < span class = "罢工”>{{线。calcSubtotal |钱}}< / span > < br / >
    {%其他%}
    < span class = "罢工”>{{乘(行。displayableUnitPrice Line.unitQuantity) |钱}}< / span > < br / >
    {% endif %}
    {% endif %}
    {{线。displayableSubtotal |钱}}
    {% endif %}
    < / td >
    < / tr >
    {% endmacro %}

    {%宏观收据(销售、参数、store_copy选项)%}
    {%如果出售。SaleLines %}
    <表类=“销售额度”>
    < tr >
    < th类= "描述" > < / th >项

    {%如果选项。show_custom_sku和选项。show_manufacturer_sku %}
    < th类= " custom_field " > SKU珀耳斯。< / th >
    < th类= " custom_field " > SKU的人。< / th >
    {% elseif选项。show_custom_sku或选项。show_manufacturer_sku %}
    < th类= " custom_field " > SKU < / th >
    {% endif %}

    {%如果选项。show_msrp而不是参数。gift_receipt %}
    < th类= " custom_field " > PDSF < / th >
    {% endif %}

    < th类= "数量" > # < / th >

    {%如果没有参数。gift_receipt %}
    < th类= "数量" >大奖赛< / th >
    {% endif %}
    < / tr >
    tbody > <
    {% Sale.SaleLines线。SaleLine %}
    {{_self.line (Sale.isTaxInclusive、线、参数选项)}}
    {% endfor %}
    tbody > < /
    < /表>

    {%如果没有参数。gift_receipt %}
    <表类= " saletotals总数" >
    tbody id = " receiptSaleTotals " > <
    < tr >
    < td宽度=“100%”>
    {%如果选项。discounted_line_items和销售。calcDiscount ! = 0%}
    Sous-total用减少
    {%其他%}
    Sous-total
    {% endif %}
    < / td >
    < td id = " receiptSaleTotalsSubtotal " class = "数量" >
    {%如果选项。discounted_line_items %}
    {{减去(出售。displayableSubtotal Sale.calcDiscount) |钱}}
    {%其他%}
    {{Sale.displayableSubtotal |钱}}
    {% endif %}
    < / td >
    < / tr >
    {%如果不是选项。discounted_line_items和销售。calcDiscount > 0%}
    减少< tr > < td > < / td > < td id =“receiptSaleTotalsDiscounts”类= "数量" > - {{Sale.calcDiscount |钱}}< / td > < / tr >
    {% elseif不是选项。discounted_line_items和销售。calcDiscount < 0%}
    减少< tr > < td > < / td > < td id =“receiptSaleTotalsDiscounts”类= "数量" > {{Sale.calcDiscount | getinverse |钱}}< / td > < / tr >
    {% endif %}
    {% Sale.TaxClassTotals税收。税收%}
    {%如果税。taxname和税收。率> 0%}
    < tr > < td情报自动处理= =“100%”>“receiptSaleTotalsTaxName”宽度{{税。taxname}}({{税。小计|钱}}@ {{Tax.rate}} %) < / td > < td情报自动处理=“receiptSaleTotalsTaxValue”类= "数量" > {{Tax.amount |钱}}< / td > < / tr >
    {% endif %}
    {%如果税。taxname2和税收。rate2 > 0%}
    < tr > < td情报自动处理= =“100%”>“receiptSaleTotalsTaxName”宽度{{税。taxname2}}({{税。subtotal2 |钱}}@ {{Tax.rate2}} %) < / td > < td情报自动处理=“receiptSaleTotalsTaxValue”类= "数量" > {{Tax.amount2 |钱}}< / td > < / tr >
    {% endif %}
    {% endfor %}
    < tr > < td宽度=“100%”>总des税收< / td > < td id =“receiptSaleTotalsTax”类= "数量" > {{Sale.taxTotal |钱}}< / td > < / tr >
    {%设置cash_total = 0%}
    {%设置non_cash_total = 0%}
    {% Sale.SalePayments付款。SalePayment %}
    如果Payment.PaymentType {%。代码= =“现金”%}
    {%设置cash_total = cash_total +付款。量| floatval %}
    {%其他%}
    {%设置non_cash_total = non_cash_total +付款。量| floatval %}
    {% endif %}
    {% endfor %}
    {%设置roundedCashTotal = ((cash_total * 20) |轮)/ 20%}
    {%设置roundedTotal = roundedCashTotal + non_cash_total %}
    {%如果roundedTotal ! =销售。calcTotal %}
    {%如果Sale.completed = = " false "和销售。quoteID > 0%}
    < tr类=“总”> < td > < / td >总< td id =“receiptSaleTotalsTotal”类= "数量" > {{Sale.calcTotal |钱}}< / td > < / tr >
    {%其他%}
    < tr类=“总”> < td > < / td >总< td id =“receiptSaleTotalsTotal”类= "数量" > {{Sale.calcTotal |钱}}< / td > < / tr >
    < tr类=“总”> < td >总arrondi < / td > < td id =“receiptSaleTotalsRoundedTotal”类= "数量" > {{roundedTotal |钱}}< / td > < / tr >
    {% endif %}
    {%其他%}
    < tr类=“总”> < td > < / td >总< td id =“receiptSaleTotalsTotal”类= "数量" > {{Sale.calcTotal |钱}}< / td > < / tr >
    {% endif %}
    tbody > < /
    < /表>
    {% endif %}
    {% endif %}

    {%如果Sale.completed = =“正确”,而不是参数。gift_receipt %}
    {%如果出售。SalePayments %}
    < h2类= " paymentTitle " > Paiements < / h2 >
    <表id = " receiptPayments " class = "支付" >
    tbody > <
    {% Sale.SalePayments付款。SalePayment %}
    {%如果Payment.PaymentType.name ! = '现金' %}
    < !NOT Cash Payment -->
    如果Payment.CreditAccount {%。giftCard = =“真实”%}
    < !Gift Card -->
    {%如果付款。量> 0%}
    < tr >
    < td类= "标签" > Prelevement苏尔署名cadeau < / td >
    < td id = " receiptPaymentsGiftCardValue " class = "数量" > {{Payment.amount |钱}}< / td >
    < / tr >
    < tr >
    < td类= "标签" >大甩卖< / td >
    < td id = " receiptPaymentsGiftCardBalance " class = "数量" > {{Payment.CreditAccount.balance | getinverse |钱}}< / td >
    < / tr >
    {% elseif付款。< 0和销售数量。calcTotal < 0%}
    < tr >
    < td类= "标签" > Remboursement苏尔署名cadeau < / td >
    < td id = " receiptPaymentsGiftCardValue " class = "数量" > {{Payment.amount | getinverse |钱}}< / td >
    < / tr >
    < tr >
    < td类= "标签" >大甩卖< / td >
    < td id = " receiptPaymentsGiftCardBalance " class = "数量" > {{Payment.CreditAccount.balance | getinverse |钱}}
    < / tr >
    {% elseif付款。< 0和销售数量。calcTotal > = 0%}
    < tr >
    < td类= "标签" > Achat署名cadeau < / td >
    < td id = " receiptPaymentsGiftCardValue " class = "数量" > {{Payment.amount | getinverse |钱}}< / td >
    < / tr >
    < tr >
    < td类= "标签" >大甩卖< / td >
    < td id = " receiptPaymentsGiftCardBalance " class = "数量" > {{Payment.CreditAccount.balance | getinverse |钱}}< / td >
    < / tr >
    {% endif %}
    {% elseif付款。creditAccountID} = = 0%
    < !NOT Customer Account -->
    {{_self.cc_payment_info(销售、付款)}}
    {% elseif付款。信用账户%}
    < !Customer Account -->
    < tr >
    {%如果付款。量< 0%}
    < td类= "标签" >得宝盟帐户< / td >
    < td id = " receiptPaymentsCreditAccountDepositValue " class = "数量" > {{Payment.amount | getinverse |钱}}< / td >
    {%其他%}
    < td类= "标签" > Prelevement盟帐户< / td >
    < td id = " receiptPaymentsCreditAccountChargeValue " class = "数量" > {{Payment.amount |钱}}< / td >
    {% endif %}
    < / tr >
    {% endif %}
    {% endif %}
    {% endfor %}
    < tr > < td colspan = " 2 " > < / td > < / tr >
    {{_self.sale_cash_payment(销售)}}
    tbody > < /
    < /表>
    {% endif %}

    {%如果出售。客户而不是store_copy %}
    {%如果选项。show_customer_layaways %}
    {{_self.layaways (Sale.Customer Sale.isTaxInclusive、parameters.gift_receipt选项)}}
    {% endif %}
    {%如果选项。show_customer_specialorders %}
    {{_self.specialorders (Sale.Customer Sale.isTaxInclusive、parameters.gift_receipt选项)}}
    {% endif %}
    {%如果选项。show_customer_workorders %}
    {{_self.workorders (Sale.Customer、parameters.gift_receipt选项)}}
    {% endif %}
    {% endif %}

    {%如果选项。show_customer_credit_account和销售。客户,而不是参数。gift_receipt而不是store_copy %}
    如果Sale.Customer {%。信用账户和Sale.Customer.CreditAccount.MetaData。creditBalanceOwed > 0或Sale.Customer.CreditAccount.MetaData。extraDeposit > 0%}
    < h2类= " footerSectionTitle " >档案< / h2 >
    <表类=“总数”>
    如果Sale.Customer.CreditAccount.MetaData {%。creditBalanceOwed > 0%}
    < tr >
    < td宽度=“100%”>大甩卖du: < / td >
    < td类= "数量" > {{Sale.Customer.CreditAccount.MetaData。creditBalanceOwed |钱}}< / td >
    < / tr >
    {% elseif Sale.Customer.CreditAccount.MetaData。extraDeposit > 0%}
    < tr >
    < td宽度=“100%”>在仓库:< / td >
    < td类= "数量" > {{Sale.Customer.CreditAccount.MetaData。extraDeposit |钱}}< / td >
    < / tr >
    {% endif %}
    < /表>
    {% endif %}
    如果Sale.Customer.MetaData {%。getAmountToCompleteAll > 0%}
    <表类=“总数”>
    < tr类=“总”>
    < td宽度=“100%”>大甩卖restant: < / td >
    < td类= "数量" > {{Sale.Customer.MetaData。getAmountToCompleteAll |钱}}< / td >
    < / tr >
    < /表>
    {% endif %}
    {% endif %}
    {% endif %}
    {%如果(没有参数。gift_receipt而不是options.hide_notes_in_sale_receipt)或(参数。gift_receipt而不是options.hide_notes_in_gift_receipt) %}
    {{_self.show_note (Sale.SaleNotes)}}
    {% endif %}
    {% endmacro %}

    {%宏观cc_payment_info(销售、付款)%}
    < tr >
    {%如果付款。存档= = '假' %}
    {%如果付款。ccChargeID > 0和Payment.CCCharge.declined = = '假' %}
    < td类= =“100%”>“标签”宽度
    {{Payment.PaymentType.name}}
    < br >的菜单:{{Payment.CCCharge.xnum}}
    如果Payment.CCCharge {%。cardType | strlen > 0%}
    < br >类型:{{Payment.CCCharge.cardType}}
    {% endif %}
    如果Payment.CCCharge {%。cardholderName | strlen > 0%}
    < br > Detenteur: {{Payment.CCCharge.cardholderName}}
    {% endif %}
    如果Payment.CCCharge {%。entryMethod | strlen > 0%}
    < br > Saisie: {{Payment.CCCharge.entryMethod}}
    {% endif %}
    如果Payment.CCCharge {%。验证码| strlen > 0%}
    < br >认可:{{Payment.CCCharge.authCode}}
    {% endif %}
    如果Payment.CCCharge {%。gatewayTransID | strlen > 0, Payment.CCCharge。gatewayTransID | strlen < 48%}
    < br > ID: {{Payment.CCCharge.gatewayTransID}}
    {% endif %}
    如果Payment.CCCharge.MetaData {%。isEMV %}
    如果Payment.CCCharge.MetaData {%。援助| strlen > 0%}
    < br > ID de l 'appli: {{Payment.CCCharge.MetaData.AID}}
    {% endif %}
    如果Payment.CCCharge.MetaData {%。ApplicationLabel | strlen > 0%}
    < br >礼仪de l 'application: {{Payment.CCCharge.MetaData.ApplicationLabel}}
    {% endif %}
    如果Payment.CCCharge.MetaData {%。PINStatement | strlen > 0%}
    < br > Statut du代码夹:{{Payment.CCCharge.MetaData.PINStatement}}
    {% endif %}
    {% endif %}
    < / td >
    < td类= "数量" > {{Payment.amount |钱}}< / td >
    {% elseif付款。ccChargeID} = = 0%
    < td类= =“100%”>“标签”宽度
    {{Payment.PaymentType.name}}
    < / td >
    < td类= "数量" > {{Payment.amount |钱}}< / td >
    {% endif %}
    {% endif %}
    < / tr >
    {% endmacro %}

    {%宏观cc_agreement(销售、付款、选项)%}
    如果Payment.MetaData.ReceiptData {%。requires_receipt_signature | CompBool = = true %}
    如果Sale.Shop.ReceiptSetup {%。creditcardAgree | strlen > 0%}
    < p > {{Sale.Shop.ReceiptSetup.creditcardAgree | noteformat |生}}< / p >
    {% endif %}
    < dl id = " signatureSection " class = "签名" >
    < dt >签名:< / dt >
    < dd >
    {{Payment.CCCharge。cardholderName}} < br / >
    < / dd >
    < / dl >
    {% endif %}
    {% endmacro %}

    {%宏观shop_workorder_agreement(出售)%}
    如果Sale.Shop.ReceiptSetup {%。workorderAgree | strlen > 0和销售。Workorders %}
    < !
    @FIXME
    应该只打印此work_order如果从未签署过协议。
    事务- > customer_id - > printWorkorderAgreement($事务- > transaction_id) - - >
    < div class = "签名" >
    < p > {{Sale.Shop.ReceiptSetup.workorderAgree | noteformat |生}}< / p >
    < dl类= "签名" >
    < dt >签名:< / dt >
    < dd > {{Sale.Customer。firstName}} {{Sale.Customer.lastName}} < / dd >
    < / dl >
    < / div >
    {% endif %}
    {% endmacro %}

    {%宏观client_workorder_agreement(销售、选项)%}
    {%如果选项。workorders_as_title和销售。SaleLines是空的,Sale.Customer。Workorders和Sale.Shop.ReceiptSetup定义。workorderAgree | strlen > 0%}
    < p > {{Sale.Shop.ReceiptSetup.workorderAgree | noteformat |生}}< / p >
    {% endif %}
    {% endmacro %}

    {%宏观ship_to(销售、选项)%}
    {%如果出售。ShipTo %}
    < div class = "发货" >
    < h4 >地址de分册< / h4 >
    {{_self.shipping_address (Sale.ShipTo、Sale.ShipTo.Contact选项)}}

    {% Sale.ShipTo.Contact.Phones的电话。如果循环ContactPhone %} {%。第%}
    < p >电话:{{电话。}}({{Phone.useType}}) < / p >
    {% endif %} {% endfor %}

    如果Sale.ShipTo {%。shipNote | strlen > 0%}
    < h5 > < / h5 >指令
    {{Sale.ShipTo.shipNote}} < p > < / p >
    {% endif %}
    < / div >
    {% endif %}
    {% endmacro %}

    {%宏观shipping_address(客户、联系人、选项)%}
    < p >
    {%如果Customer.company | strlen > 0%} {{Customer.company}} < br > {% endif %}
    {%如果Customer.company | strlen > 0%}经办人:{% endif %}{{客户。firstName}} {{Customer.lastName}} < br >
    {{_self.address(接触,“< br >”,选项)}}
    < / p >
    {% endmacro %}

    {%宏观地址(接触,分隔符,选项)%}
    {% autoescape错误%}
    {% = Contact.Addresses设置地址。ContactAddress %}

    {%如果地址。address1 |}{{地址strlen > 0%。address1}}{{分隔符}}{% endif %}
    {%如果地址。address2 |}{{地址strlen > 0%。address2}}{{分隔符}}{% endif %}
    {%如果地址。zip |}{{地址strlen > 0%。zip}} {% endif %}
    {%如果地址。城市|}{{地址strlen > 0%。城市}}{% endif %}
    {%如果地址。状态|}{{地址strlen > 0%。州}}{% endif %}{%如果地址。zip | strlen > 0或地址。城市| strlen > 0或地址。状态| strlen > 0%}{{分隔符}}{% endif %}
    {%如果地址。国家|}{{地址strlen > 0%。国家}}{% endif %}

    {% endautoescape %}
    {% endmacro %}

    {%宏观头(销售、选项)%}
    < div class = " receiptHeader " >
    {%设置logo_printed = false %}
    {%如果选项。multi_shop_logos %}
    {%的购物选择。shop_logo_array如果不是logo_printed %}
    {%如果shop.name = = Sale.Shop.name %}
    {%如果商店。logo_url | strlen > 0%}
    < img src = "{{商店。logo_url}}“宽度={{选项。logo_width}}高度= "{{选项。logo_height}}”class = "标志" >
    {%设置logo_printed = true %}
    {% endif %}
    {% endif %}
    {% endfor %}
    {% endif %}

    如果Sale.Shop.ReceiptSetup {%。标志| strlen > 0而不是logo_printed %}
    < img src = " {{Sale.Shop.ReceiptSetup。商标}}"宽度= "{{选项。logo_width}} "高度= "{{选项。logo_height}}”class = "标志" >
    {%如果show_shop_name_with_logo %}
    < h3类= " receiptShopName " > {{Sale.Shop.name}} < / h3 >
    {% endif %}
    {%其他%}
    < h3类= " receiptShopName " > {{Sale.Shop.name}} < / h3 >
    {% endif %}
    < p class = " receiptShopContact " >
    如果Sale.Shop.ReceiptSetup {%。头| strlen > 0%}
    < p > {{Sale.Shop.ReceiptSetup.header | nl2br |生}}< / p >
    {%其他%}
    {{_self.address (Sale.Shop.Contact < br >,选项)}}
    {% Sale.Shop.Contact.Phones ContactPhone。ContactPhone %}
    < br / > {{ContactPhone.number}}
    {% endfor %}
    {% endif %}
    < / p >
    < / div >
    {% endmacro %}

    {%宏观分期预付(客户、isTaxInclusive参数,选项)%}
    如果客户{%。礼物和客户。礼物|长度> 0%}
    < h2类= " footerSectionTitle " >米塞斯de cote < / h2 >
    <表类=“礼物”>
    tbody > <
    {% Customer.Layaways线。SaleLine %}
    {{_self.line (isTaxInclusive、线、参数选项)}}
    {% endfor %}
    tbody > < /
    < /表>
    <表类= " layways总数" >
    < tr >
    < td类= =“100%”>“标签”宽度Sous-total < / td >
    < td类= "数量" > {{Customer.MetaData.layawaysSubtotalNoDiscount |钱}}< / td >
    < / tr >
    如果Customer.MetaData {%。layawaysAllDiscounts > 0%}
    < tr >
    < td类= =“100%”>“标签”宽度减少< / td >
    < td类= "数量" > {{Customer.MetaData.layawaysAllDiscounts | getinverse |钱}}< / td >
    < / tr >
    {% endif %}
    < tr >
    < td类= =“100%”>“标签”宽度邮资< / td >
    < td类= "数量" > {{Customer.MetaData.layawaysTaxTotal |钱}}< / td >
    < / tr >
    < tr类=“总”>
    < td class = "标签"宽度=“100%”> < / td >总
    < td类= "数量" > {{Customer.MetaData.layawaysTotal |钱}}< / td >
    < / tr >
    < /表>
    {% endif %}
    {% endmacro %}

    {%宏观specialorders(客户、isTaxInclusive参数,选项)%}
    如果客户{%。SpecialOrders |长度> 0%}
    < h2 class = " footerSectionTitle " id = " lineItemSectionSO " >命令特别< / h2 >
    <表id = " containerSOLineItems " class = "行specialorders " >
    tbody > <
    {% Customer.SpecialOrders线。SaleLine %}
    {{_self.line (isTaxInclusive、线、参数选项)}}
    {% endfor %}
    tbody > < /
    < /表>
    <表id = " containerSOTotals " class = " specialorders总数" >
    < tr >
    < td类= =“100%”>“标签”宽度Sous-total < / td >
    < td类= "数量" > {{Customer.MetaData.specialOrdersSubtotalNoDiscount |钱}}< / td >
    < / tr >
    如果Customer.MetaData {%。specialOrdersAllDiscounts > 0%}
    < tr >
    < td类= =“100%”>“标签”宽度减少< / td >
    < td类= "数量" > {{Customer.MetaData.specialOrdersAllDiscounts | getinverse |钱}}< / td >
    < / tr >
    {% endif %}
    < tr >
    < td类= =“100%”>“标签”宽度邮资< / td >
    < td类= "数量" > {{Customer.MetaData.specialOrdersTaxTotal |钱}}< / td >
    < / tr >
    < tr类=“总”>
    < td class = "标签"宽度=“100%”> < / td >总
    < td类= "数量" > {{Customer.MetaData.specialOrdersTotal |钱}}< / td >
    < / tr >
    < /表>
    {% endif %}
    {% endmacro %}

    {%宏观workorders(客户、参数选项)%}
    如果客户{%。Workorders |长度> 0%}
    < h2类= " footerSectionTitle " >需求de服务在课程< / h2 >
    <表类= "行workorders " >
    {% Customer.Workorders线。SaleLine %}
    < tr >
    如果Line.MetaData {%。workorderTotal %}
    < td类= " workorder“colspan = " 2 " >
    {{_self.lineDescription(线、期权)}}
    {%如果选项。show_workorders_barcode %}
    < p class = " barcodeContainer " >
    < img id = " barcodeImage "
    身高= " 50 "
    宽度= " 250 "
    类=“条形码”
    src = " / barcode.php吗?类型=单据编号= {{Line.MetaData。workorderSystemSku}} &&hide_text ={{不是选项。show_workorders_barcode_sku}} " >
    < / p >
    {% endif %}
    < / td >
    {%其他%}
    < td > {{_self.lineDescription(线、期权)}}< / td >
    < td类= "数量" > {{Line.calcSubtotal |钱}}< / td >
    {% endif %}
    < / tr >
    {% endfor %}
    < /表>
    如果Customer.MetaData {%。workordersTotal > 0%}
    <表类= " workorders总数" >
    < tr >
    < td类= =“100%”>“标签”宽度Sous-total < / td >
    < td类= "数量" > {{Customer.MetaData.workordersSubtotalNoDiscount |钱}}< / td >
    < / tr >
    如果Customer.MetaData {%。specialOrdersAllDiscounts > 0%}
    < tr >
    < td类= =“100%”>“标签”宽度减少< / td >
    < td类= "数量" > {{Customer.MetaData.workordersAllDiscounts | getinverse |钱}}< / td >
    < / tr >
    {% endif %}
    < tr >
    < td类= =“100%”>“标签”宽度邮资< / td >
    < td类= "数量" > {{Customer.MetaData.workordersTaxTotal |钱}}< / td >
    < / tr >
    < tr类=“总”>
    < td class = "标签"宽度=“100%”> < / td >总
    < td类= "数量" > {{Customer.MetaData.workordersTotal |钱}}< / td >
    < / tr >
    < /表>
    {% endif %}
    {% endif %}
    {% endmacro %}

    {%宏观sale_cash_payment(出售)%}
    {%设置cashTotal = 0%}
    {%设置payCash =‘假’%}
    {% Sale.SalePayments付款。SalePayment %}
    如果Payment.PaymentType {%。代码= =“现金”%}
    {%设置cashTotal = cashTotal +付款。量| floatval %}
    {%设置payCash =“真实”%}
    {% endif %}
    {% endfor %}
    {%如果payCash = =“真实”%}
    {%设置roundedCashChange = (((Sale.change | floatval) * 20) |轮)/ 20%}
    {%设置roundedCashAmount = (((cashTotal * 20) |轮)/ 20)%}
    {%设置originalCashPayedTotalValue =销售。改变| floatval + cashTotal %}
    {%设置roundedCashPayedTotalValue = roundedCashAmount +销售。改变| floatval %}
    < tr > < td >竖杆paye en易翔< / td > < td > {{originalCashPayedTotalValue |钱}}< / td > < / tr >
    {%如果originalCashPayedTotalValue = = roundedCashPayedTotalValue %}
    < tr > < td类= "标签" >易翔< / td > < td id =“receiptPaymentsCash”类= "数量" > {{cashTotal |钱}}< / td > < / tr >
    {%如果(Sale.change | floatval) ! = roundedCashChange %}
    < tr > < td类= "标签" > Monnaie < / td > < td id =“receiptPaymentsChange”类= "数量" > {{Sale.change |钱}}< / td > < / tr >
    < tr > < td类= "标签" > Arrondi de la monnaie rendue < / td > < td id =“receiptPaymentsChange”类= "数量" > {{roundedCashChange |钱}}< / td > < / tr >
    {%其他%}
    < tr > < td类= "标签" > Monnaie < / td > < td id =“receiptPaymentsChange”类= "数量" > {{Sale.change |钱}}< / td > < / tr >
    {% endif %}
    {%其他%}
    < tr > < td类= "标签" >易翔< / td > < td id =“receiptPaymentsCash”类= "数量" > {{cashTotal |钱}}< / td > < / tr >
    < tr > < td类= "标签" >总arrondi en易翔< / td > < td id =“receiptRoundedPaymentsCash”类= "数量" > {{roundedCashAmount |钱}}< / td > < / tr >
    {%如果(Sale.change | floatval) ! = roundedCashChange %}
    < tr > < td类= "标签" > Monnaie < / td > < td id =“receiptPaymentsChange”类= "数量" > {{Sale.change |钱}}< / td > < / tr >
    < tr > < td类= "标签" > Arrondi de la monnaie rendue < / td > < td id =“receiptRoundedPaymentsChange”类= "数量" > {{roundedCashChange |钱}}< / td > < / tr >
    {%其他%}
    < tr > < td类= "标签" > Monnaie < / td > < td id =“receiptPaymentsChange”类= "数量" > {{Sale.change |钱}}< / td > < / tr >
    {% endif %}
    {% endif %}
    {% endif %}
    {% endmacro %}

    {%宏观show_note (SaleNotes) %}
    {%在SaleNotes SaleNote %}
    如果SaleNote {%。PrintedNote SaleNote.PrintedNote。注意! = " %}
    < h2类= " notesTitle " > < / h2 >指出
    <表>
    < tr >
    < td >
    {{SaleNote.PrintedNote.note}}
    < / td >
    < / tr >
    < /表>
    {% endif %}
    {% endfor %}
    {% endmacro %}
    佛兰德的
    {#
    * * * * * *开始自定义选项
    之间切换的选项在本节中“假”和“真正的”为了模板中启用/禁用它们
    #}

    {#布局调整#}
    {%设置print_layout =参数。print_layout = = " true "吗?真:假%}{#改善收据布局大型显示/纸张大小(A4 /信/电子邮件)#}
    {%设置chrome_right_margin_fix = false %}{#修复一个潜在的问题,右边的收据被切断在Chrome #}
    {%设置firefox_margin_fix = false %}{#修复问题利润率切断当一封信打印机上打印一个Mac #}

    {#销售#}
    {%设置hide_register_name = false %}{#隐藏注册名字销售#}
    {%设置hide_employee_name = false %}{#隐藏员工姓名销售#}
    {%设置hide_shop_vat_number = false %}{#隐藏商店销售增值税税号#}
    {%设置hide_shop_registration_number = false %}{#隐藏商店注册号销售#}
    {%设置hide_customer_vat_number = false %}{#隐藏客户增值税号码销售#}
    {%设置hide_customer_registration_number = false %}{#隐藏客户登记号码销售#}
    {%设置sale_id_instead_of_ticket_number = true %}{#显示了ID,而不是出售机票号码#}
    {%设置invoice_as_title = false %}{#如果print_layout是真的,“发票”将会显示,而不是“销售发票”A4 /信件/电子邮件格式#}
    {%设置workorders_as_title = false %}{#变化收到标题“工作单”如果没有Salesline项目和1个或多个workorders #}
    {%设置quote_id_prefix = " " %}{#添加一个文本字符串的前缀引用ID。例:“Q -”。当使用“sale_id_instead_of_ticket_number”是真正的#}
    {%设置sale_id_prefix = " " %}{#添加一个文本字符串的前缀销售ID。例:“年代”。当使用“sale_id_instead_of_ticket_number”是真正的#}
    {%设置hide_notes_in_sale_receipt = false %}{#隐藏印刷注意销售收据,如果任何#}
    {%设置hide_notes_in_gift_receipt = false %}{#隐藏印刷注意礼物的收据,如果任何#}

    {#项行#}
    {%设置per_line_discount = false %}{#显示每个销售折扣行#}
    {%设置per_line_subtotal = false %}{#显示每个销售行小计(例:“1 x 5.00”) #}
    {%设置discounted_line_items = false %}{#罢工原来价格并显示折扣价格在每一笔销售行#}
    {%设置per_line_employee = false %}{#显示员工对每个销售线#}
    {%设置show_custom_sku = false %}{#添加定制SKU的SKU列,如果可行的话,在每一笔销售行#}
    {%设置show_manufacturer_sku = false %} {# SKU柱制造商SKU补充道,如果可行的话,在每一笔销售行#}
    {%设置show_msrp = false %}{#增加厂商建议零售价列物品厂商建议零售价,如果可行的话,在每一笔销售行#}

    {#混杂。调整#}
    {%设置show_shop_name_with_logo = false %}{#商店标志下的字号显示#}
    {%设置show_thank_you = true %}{#显示“Bedankt <客户名称> !”高于底部条形码#}
    {%设置show_transaction_item_count = false %}{#给销售的物品总量接近底部的收据#}
    {%设置show_sale_lines_on_store_copy = false %}{#显示销售信用卡上的线存储复制收据#}
    {%设置quote_to_invoice = false %}{#改变Offerte措辞Factuur在销售和销售报价(不适用于工作订单引号)#}
    {%设置show_sale_lines_on_gift_receipt = true %}{#显示销售礼物收据上的线#}
    {%设置show_barcode = true %}{#显示底部条形码收据#}
    {%设置show_barcode_sku = true %}{#显示系统ID的底部条形码#}
    {%设置show_workorders_barcode = false %}{#显示workorders条形码#}
    {%设置show_workorders_barcode_sku = true %}{#显示系统ID的底部workorders条形码#}
    {%设置hide_ticket_number_on_quote = false %}{#隐藏了机票号码报价#}
    {%设置hide_quote_id_on_sale = false %}{#隐藏了引用ID销售#}

    {#客户信息#}
    {%设置show_full_customer_address = false %}{#显示客户详细地址,如果可用#}
    {%设置show_customer_name_only = true %}{#隐藏所有客户信息除了他们的名字#}
    {%设置show_customer_notes = false %}{#显示在客户档案中输入笔记#}
    {%设置company_name_override = false %}{#不显示客户名称,如果公司名称存在#}

    {#客户账户#}
    {%设置show_credit_account_signature = false %}{#打印存储复制与签名档,使用一个信用帐户(不是存款)#}
    {%设置show_customer_layaways = true %}{#显示客户预约购物信息的底部收据#}
    {%设置show_customer_specialorders = true %}{#显示客户特殊订单信息的底部收据#}
    {%设置show_customer_workorders = true %}{#显示客户工作订单信息的底部收据#}
    {%设置show_customer_credit_account = true %}{#显示客户信用账户信息的底部收据#}

    {#标识#}
    {%设置logo_width = 225 px的%}{#默认宽度是225 px。#}
    {%设置logo_height = " %}{#默认高度是55 px。#}
    {%设置multi_shop_logos = false %}{#允许多个标志添加对不同地点使用下面的选项#}

    {#
    使用以下shop_logo_array进入你所有的位置和标识的链接图片上传到互联网。
    输入您确切的商店名称(区分大小写)后的引号“名称”:条目,然后输入URL标识后的“标志”:条目。
    一定要设置multi_shop_logos上面设置为true来这些标识生效!
    #}

    {%设置shop_logo_array =
    {
    0:{“名称”:“商店”,“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 ": " "}
    }
    %}

    {#
    * * * * * *结束自定义选项
    #}

    {%扩展参数。打印吗?“printbase”:“基地”%}
    {%块extrastyles %}

    @page{保证金:0 px;}

    身体{
    字体:正常10 pt Helvetica Neue, Helvetica, Arial,无衬线;
    宽度:{{parameters.page_width | pageWidthToCss}};
    保证金:0汽车;
    填充:1 px;< !You need this to make the printer behave -->

    {%如果chrome_right_margin_fix = = true %}
    margin-right: .13in;
    {% endif %}
    {%如果firefox_margin_fix = = true %}
    保证金:25 px;
    {% endif %}
    }

    .store {
    page-break-after:总是;
    margin-bottom: 40像素;
    }

    .receipt {
    字体:正常10 pt Helvetica Neue, Helvetica, Arial,无衬线;
    }

    h1 {
    保证金:.5em 0 0;
    字体大小:12 pt;
    text-align:中心;
    }

    p.date,p。{副本
    字体大小:9分;
    保证金:0;
    text-align:中心;
    }

    p.details {
    字体大小:10 pt;
    text-align:左;
    }

    h2 {
    边界底部:1 px固体黑色;
    首字母:大写;
    字体大小:10 pt;
    保证金:.5em 0 0;
    }

    .receiptHeader {
    text-align:中心;
    }

    .receiptHeader h3 {
    字体大小:12 pt;
    保证金:0;
    }

    .shipping h4 {
    margin-top: 0;
    }

    .receiptHeader img {
    保证金:8 0 px 4 px;
    }

    .receiptShopContact {
    保证金:0;
    }

    表{
    保证金:0 0;
    宽度:100%;
    border-collapse:崩溃;
    }

    表th {text-align:左;}

    tbody th{表
    粗细:正常;
    text-align:左;
    }

    表道明。量、表th。{数量text-align:正确;}
    表道明。数量、表th。量{text-align:中心;}

    th.description {
    宽度:100%;
    }

    道明。量{空白:nowrap;}}

    表。总数{text-align:正确;}
    表。支付{text-align:正确;}
    表。间隔{margin-top: 1 em;}
    表tr.total td{粗细:大胆的;}

    表道明。{数量padding-left: 10 px;}
    表道明。custom_field {
    padding-right: 10 px;
    text-align:中心;
    }

    表。{出售边界底部:1 px固体黑色;}

    表。出售th {
    边界底部:1 px固体黑色;
    粗细:大胆的;
    }

    表div.line_description {
    text-align:左;
    粗细:大胆的;
    }

    表div.line_note {
    text-align:左;
    padding-left: 10 px;
    }

    表div.line_serial {
    text-align:左;
    粗细:正常;
    padding-left: 10 px;
    }

    表。workorders div.line_description {
    粗细:正常;
    padding-left: 10 px;
    }

    表。workorders div.line_note {
    粗细:正常;
    padding-left: 10 px;
    }

    表。workorders div.line_serial {
    粗细:正常;
    padding-left: 20 px;
    }

    表。workorders道明。workorder div.line_note {
    粗细:大胆的;
    padding-left: 0 px;
    }

    p。谢谢{
    保证金:0;
    text-align:中心;
    }

    .note {text-align:中心;}


    .barcodeContainer {
    margin-top: 15 px;
    text-align:中心;
    }

    .workorders .barcodeContainer {
    margin-left: 15 px;
    text-align:左;
    }

    戴斯。莱纳姆:{
    隐藏溢出:
    }

    dl dt {
    粗细:大胆的;
    宽度:80 px;
    浮:左
    }

    dl dd {
    border-top: 2 px固体黑色;
    padding-top: 2 px;
    保证金:1 em 0 0;
    浮:左;
    宽度:180像素
    }

    dl dd p{保证金:0;}

    .strike{文字修饰:线穿过;}

    .receiptCompanyNameField,
    .receiptCustomerNameField,
    .receiptCustomerVatField,
    .receiptCustomerCompanyVatField,
    .receiptCustomerAddressField,
    .receiptPhonesContainer,
    .receiptCustomerNoteField {
    显示:块;
    }

    表。道明。标签{
    粗细:正常;
    text-align:正确;
    宽度:100%;
    }

    {%如果print_layout %}

    / *收据只* /
    @media (max-width: 299 px) {
    .show-on-print {
    显示:没有;
    }
    .hide-on-print {
    显示:块;
    }
    }

    @media (min-width: 480 px) {
    / *电子邮件攻击,不介意优化* /
    表。saletotals {
    浮:正确;
    Margin-top: 50 px;
    宽度:50% !重要;
    }

    表。支付{
    宽度:100%;
    }

    表。支付{
    浮:左;
    margin-top: 5 px;
    宽度:50%;
    text-align:左;
    }

    表。支付tr道明。{数量
    text-align:正确;
    宽度:汽车;
    }

    表。支付tr道明。{数量
    text-align:左;
    宽度:100%;
    }


    表。道明。标签{
    粗细:大胆的;
    text-align:左;
    空白:nowrap;}
    宽度:继承;
    }
    }

    / *电子邮件,信件,A4只* /
    @media (min-width: 300 px) {

    .show-on-print {
    显示:块;
    }
    .hide-on-print {
    显示:没有;
    }

    身体{
    填充:15 px;
    位置:相对;
    }

    .receiptHeader {
    浮:左;
    位置:相对;
    max-width: 50%;
    text-align:左;
    }

    .receiptHeader img {
    显示:块;
    保证金:0 0 10 px;
    max-width: 120 px;
    }

    .receiptHeader h3。receiptShopName {
    字体大小:14 pt;
    margin-bottom: 3 px;
    文字修饰:下划线;
    }

    .receiptShopName,
    .receiptShopContact {
    text-align:左;
    }

    .receiptTypeTitle,
    .receiptTypeTitle跨度{
    字体大小:18 pt;
    浮:正确;
    明确:正确的;
    text-align:中心;
    margin-top: 0;
    }

    .receiptTypeTitle跨度。hide-on-print {
    字体大小:0;
    显示:没有;
    }

    p.date,
    p。{副本
    浮:正确;
    明确:正确的;
    }

    # receiptInfo {
    明确:;
    padding-top: 15 px;
    padding-left: 0 px;
    }

    # receiptInfo:{后
    内容:“”;
    显示:表;
    明确:;
    }

    .receiptQuoteIdField,
    .receiptTicketIdField {
    明确:正确的;
    浮:正确;
    }
    .receiptQuoteIdLabel,
    .receiptTicketIdLabel {
    显示:没有!重要;
    }
    # receiptQuoteId,
    # receiptTicketId {
    字体大小:14 pt;
    粗细:大胆的;
    显示:块;
    浮:正确;
    }

    .vatNumberField,
    .companyRegistrationNumberField,
    .receiptRegisterNameField,
    .receiptEmployeeNameField {
    明确:正确的;
    浮:正确;
    text-align:正确;
    }
    .vatNumberField跨度,
    .companyRegistrationNumberField跨度,
    .receiptRegisterNameField跨度,
    .receiptEmployeeNameField跨度{
    字体大小:8 pt;
    }

    .receiptCustomerAddressLabel,
    .receiptEmailLabel {
    显示:没有!重要;
    }

    .receiptCompanyNameField,
    .receiptCustomerNameField,
    .receiptCustomerVatField,
    .receiptCustomerCompanyVatField {
    margin-bottom: 3 px;
    margin-top: 3 px;
    }

    .receiptCompanyNameLabel,
    .receiptCustomerNameLabel,
    .receiptCustomerVatLabel,
    .receiptCustomerCompanyVatLabel {
    字体大小:11分;
    粗细:大胆的;
    }
    # receiptCompanyName,
    # receiptCustomerName {
    字体大小:12 pt;
    }

    .receiptCompanyNameField,
    .receiptCustomerNameField,
    .receiptCustomerVatField,
    .receiptCustomerCompanyVatField,
    .receiptCustomerAddressField,
    .receiptPhonesContainer,
    .receiptCustomerNoteField {
    显示:块;
    max-width: 40%;
    }

    表。{出售
    明确:;
    padding-top: 30 px;
    }

    表。tbody tr:销售的第一个孩子,
    表。道明{tbody tr:销售的第一个孩子
    padding-top: 10 px;
    }
    表。出售tbody tr:胎,
    表。出售tbody tr:胎td {
    padding-bottom: 10 px;
    }
    表。销售tbody th,
    表。tbody td{出售
    padding-bottom: 5 px;
    padding-top: 5 px;
    }

    .paymentTitle,
    .notesTitle,
    .footerSectionTitle {
    字体大小:12 pt;
    padding-top: 15 px;
    首字母:没有;
    }
    .footerSectionTitle {
    明确:;
    }
    .notesTitle {
    浮:左;
    宽度:100%;
    }

    .thankyou {
    明确:;
    padding-top: 30 px;
    }

    img。条码{
    边界:没有;
    高度:30 px;
    宽度:150 px;
    }

    }

    {% endif %}

    {% endblock extrastyles %}

    {%块内容%}
    {%设置page_load = false %}
    {%在销售销售%}
    {%如果没有参数。页面或参数。页面= = 1%}
    如果Sale.Shop.ReceiptSetup {%。creditcardAgree | strlen > 0,而不是参数。gift_receipt而不是参数。电子邮件%}
    {% Sale.SalePayments SalePayment。SalePayment %}
    如果参数{%。force_cc_agree或参数。print_workorder_agree %}
    {{_self.store_receipt(销售、参数、_context SalePayment)}}
    {%设置page_load = true %}
    {%其他%}
    如果SalePayment {%。归档= =‘假’和SalePayment.MetaData.ReceiptData。requires_receipt_signature | CompBool = = true %}
    {{_self.store_receipt(销售、参数、_context SalePayment)}}
    {%设置page_load = true %}
    {% endif %}
    {% endif %}
    {% endfor %}
    {% endif %}
    {% endif %}

    {%如果没有参数。页面或参数。页面= = 2或不page_load %}
    < !replace.email_custom_header_msg -->
    < div >
    {{_self.ship_to(销售、_context)}}
    {{_self.header(销售、_context)}}
    {{_self.title(销售、参数、_context)}}
    {{_self.date(销售)}}
    {{_self.sale_details(销售、_context)}}
    {%如果没有参数。gift_receipt或show_sale_lines_on_gift_receipt %}
    {{_self.receipt(销售、参数、假,_context)}}
    {% endif %}

    {#项目计数循环#}
    {%如果show_transaction_item_count %}
    {%设置transaction_item_count = 0%}
    {% Sale.SaleLines线。SaleLine %}
    {%设置transaction_item_count = transaction_item_count +行。unitQuantity %}
    {% endfor %}
    < p > Totaal aantal项目:{{transaction_item_count}} < / p >
    {% endif %}

    {%如果出售。quoteID Sale.Quote。笔记| strlen > 0%} < p id =“receiptQuoteNote”类= "注意" > {{Sale.Quote。笔记| noteformat |生}}< / p > {% endif %}

    如果Sale.Shop.ReceiptSetup {%。generalMsg | strlen > 0%} < p id =“receiptNote”类= "注意" > {{Sale.Shop.ReceiptSetup。generalMsg | noteformat |生}}< / p > {% endif %}

    {{_self.client_workorder_agreement(销售、_context)}}

    {%如果没有参数。gift_receipt %}
    {{_self.no_tax_applied_text(销售)}}
    < p id = " receiptThankYouNote " class = "谢谢" >
    {%如果show_thank_you %}
    如果销售Bedankt {%。客户%}{{Sale.Customer.firstName}} {{Sale.Customer.lastName}}{% endif %}!
    {% endif %}
    < / p >
    {% endif %}

    {%如果show_barcode %}
    < p class = " barcodeContainer " >
    < img id = " barcodeImage "高度=“50”宽度= " 250 "类=“条形码”src = " / barcode.php ?类型=单据编号={{出售。ticketNumber}} &hide_text ={{不是show_barcode_sku}} " >
    < / p >
    {% endif %}
    < / div >

    < !replace.email_custom_footer_msg -->
    {% endif %}
    {% endfor %}
    {% endblock内容%}

    {%宏观no_tax_applied_text(出售)%}
    {%设置has_non_taxed_item =‘假’%}
    {% Sale.SaleLines线。SaleLine %}
    {#如果没有税收,不是workorder线,除非是workorders劳动行#}
    {%如果(线。税收= =“假”或(线。calcTax1 = = 0和线。calcTax2 = = 0))
    (线。isWorkorder = =‘假’或Line.Note。注意= =‘劳动’))%}
    {%设置has_non_taxed_item =“真实”%}
    {% endif %}
    {% endfor %}
    {%如果(has_non_taxed_item = = '真的')%}
    < p id = " noTaxApplied " class = "谢谢" > * Geen belasting toegepast < / p >
    {% endif %}
    {% endmacro %}

    {%宏观store_receipt(销售、参数选择、付款)%}
    < div class = "存储" >
    {{_self.header(销售、_context)}}
    {{_self.title(销售、参数选项)}}
    < p class = "复制" > Winkelbon < / p >
    {{_self.date(销售)}}
    {{_self.sale_details(销售、选项)}}

    {%如果选项。show_sale_lines_on_store_copy %}
    {{_self.receipt(销售、参数,真的,选项)}}
    {%其他%}
    < h2类= " paymentTitle " > Betalingen < / h2 >
    <表类=“支付”>
    {{_self.cc_payment_info(销售、付款)}}
    < /表>
    {% endif %}

    {%如果出售。quoteID Sale.Quote。笔记| strlen > 0%} < p class = "注意" > {{Sale.Quote。笔记| noteformat |生}}< / p > {% endif %}

    {{_self.cc_agreement(销售、付款、选项)}}
    {{_self.shop_workorder_agreement(销售)}}

    < img高度=“50”宽度= =“条形码”src = " 250 "类" / barcode.php ?类型=单据编号= {{Sale.ticketNumber}} " >

    {{_self.ship_to(销售、选项)}}
    < / div >
    {% endmacro %}

    {%宏观lineDescription(线、期权)%}
    {%如果线。项目%}
    < div class = ' line_description ' >
    {% autoescape真的%}{{Line.Item.description | nl2br}}{%如果线。税收= =“假”或(线。calcTax1 = = 0和线。calcTax2 = = 0) %} * {% endif %} {% endautoescape %}
    < / div >
    {% endif %}
    {%如果线。注意%}
    < div class = ' line_note ' >
    {% autoescape真的%}
    {{Line.Note。注意| noteformat |生}}
    < !If line has no tax and is not a workorder line, unless it is the workorder's "Labor" line -->
    如果(行{%。税收= =“假”或(线。calcTax1 = = 0和线。calcTax2 = = 0))
    (线。isWorkorder = =‘假’或Line.Note。注意= =‘劳动’)%}
    *
    {% endif %}
    {% endautoescape %}
    < / div >
    {% endif %}
    {%如果线。序列化%}
    {% Line.Serialized序列化。序列化%}
    < div class = ' line_serial ' >
    Serienr。:{{序列化。串行}}{{序列化。颜色}}{{序列化。大小}}
    < / div >
    {% endfor %}
    {% endif %}
    {%如果选项。per_line_employee %}
    < div class = ' line_note ' >
    Medewerker: {{Line.Employee。firstName}}
    < / div >
    {% endif %}
    {% endmacro %}

    {%宏观标题(销售、参数选项)%}
    < h1类= " receiptTypeTitle " >
    {%如果出售。calcTotal > = 0%}
    {%如果Sale.completed = =“真实”%}
    {%如果选项。invoice_as_title和选项。print_layout %}
    < span class = " hide-on-print " >
    {% endif %}
    {%如果选项。workorders_as_title和销售。SaleLines是空的,Sale.Customer。定义Workorders %}
    Werkbonnen
    {%其他%}
    如果参数{%。gift_receipt %}Geschenkbewijs{% else %}Ontvangstbewijs{% endif %}
    {% endif %}
    {%如果选项。invoice_as_title和选项。print_layout %}
    < / span >
    < span class = " show-on-print " >
    {%如果选项。workorders_as_title和销售。SaleLines是空的,Sale.Customer。定义Workorders %}
    Werkbonnen
    {%其他%}
    Factuur
    {% endif %}
    < / span >
    {% endif %}
    {% elseif出售。废弃的= =“真实”%}
    {%如果选项。invoice_as_title和选项。print_layout %}
    < span class = " hide-on-print " >
    {% endif %}
    BON <大> GEANNULEERD大> < /
    {%如果选项。invoice_as_title和选项。print_layout %}
    < / span >
    < span class = " show-on-print " > Factuur GEANNULEERD < / span >
    {% endif %}
    {%其他%}
    {%如果选项。quote_to_invoice %}
    Factuur
    {%其他%}
    Offerte
    {% endif %}
    {%如果不出售。quoteID %}
    <大> (GEEN BON) < /大>
    {% endif %}
    {% endif %}
    {%其他%}
    {%如果选项。invoice_as_title和选项。print_layout %}
    < span class = " hide-on-print " >
    {% endif %}
    回到原地ontvangstbewijs
    {%如果选项。invoice_as_title和选项。print_layout %}
    < / span >
    < span class = " show-on-print " >归还factuur < / span >
    {% endif %}
    {% endif %}
    < / h1 >
    {% endmacro %}

    {%宏观日期(出售)%}
    < p class = "日期" id = " receiptDateTime " >
    {%如果出售。时间戳%}
    {{Sale.timeStamp | correcttimezone |日期(getDateTimeFormat ())}}
    {%其他%}
    {{“现在”|日期(getDateTimeFormat ())}}
    {% endif %}
    < / p >
    {% endmacro %}

    {%宏观sale_details(销售、选项)%}
    < p id = " receiptInfo " class = "细节" >
    {%如果选项。hide_quote_id_on_sale Sale.completed = =“真实”%}
    {%其他%}
    {%如果出售。quoteID > 0%}
    < span class = " receiptQuoteIdField " >
    < span class = " receiptQuoteIdLabel " >
    {%如果选项。quote_to_invoice %}
    Factuurnr #:
    {%其他%}
    Offertenr。
    {% endif %}
    < / span >
    < span id = " receiptQuoteId " > {{options.quote_id_prefix}} {{Sale.quoteID}} < / span >
    < br / >
    < / span >
    {% endif %}
    {% endif %}

    {%如果选项。hide_ticket_number_on_quote Sale.completed ! =“真正”和销售。quoteID > 0%}
    {%其他%}
    < span class = " receiptTicketIdField " >
    < span class = " receiptTicketIdLabel " >
    {%如果选项。其他sale_id_instead_of_ticket_number %} Verkoop:{% %}票:{% endif %} < / span >
    < span id = " receiptTicketId " >
    {%如果选项。sale_id_instead_of_ticket_number %}
    {{options.sale_id_prefix}} {{Sale.saleID}}
    {%其他%}
    {{Sale.ticketNumber}}
    {% endif %}
    < / span >
    < br / >
    < / span >
    {% endif %}

    {%如果isVATAndRegistrationNumberOnReceipt () %}
    如果Sale.Shop {%。vatNumber | strlen而不是选项。hide_shop_vat_number %}
    < span class = " vatNumberField " >
    < span class = " vatNumberLabel " > BTW-nr: < / span >
    < span id = " vatNumber " > {{Sale.Shop.vatNumber}} < / span >
    < br / >
    < / span >
    {% endif %}
    {%如果Sale.Shop.companyRegistrationNumber | strlen而不是选项。hide_shop_registration_number %}
    < span class = " companyRegistrationNumberField " >
    < span class = " companyRegistrationNumberLabel " > Handelsregisternr: < / span >
    < span id = " companyRegistrationNumber " > {{Sale.Shop.companyRegistrationNumber}} < / span >
    < br / >
    < / span >
    {% endif %}
    {% endif %}

    {%如果出售。注册并不是选项。hide_register_name %}
    < span class = " receiptRegisterNameField " > <跨类= " receiptRegisterNameLabel " >卡萨岛:< / span > < span id = " receiptRegisterName " > {{Sale.Register.name}} < / span > < br / > < / span >
    {% endif %}

    {%如果出售。员工而不是选项。hide_employee_name %}
    < span class = " receiptEmployeeNameField " > <跨类= " receiptEmployeeNameLabel " > Medewerker: < / span > < span id = " receiptEmployeeName " > {{Sale.Employee。firstName}} < / span > < br / > < / span >
    {% endif %}

    {%如果出售。客户%}
    {%如果Sale.Customer.company | strlen > 0%}
    < span class = " receiptCompanyNameField " > <跨类= " receiptCompanyNameLabel " > Bedrijf: < / span > < span id = " receiptCompanyName " > {{Sale.Customer.company}} < / span > < br / > < / span >
    {% endif %}

    {%如果不options.company_name_override Sale.Customer.company | strlen > 0%}
    < span class = " receiptCustomerNameField " > <跨类= " receiptCustomerNameLabel " > Klant: < / span > < span id = " receiptCustomerName " > {{Sale.Customer。firstName}} {{Sale.Customer。lastName}} < / span > < br / > < / span >
    {% endif %}

    {%如果不是选项。show_customer_name_only %}
    {%如果选项。show_full_customer_address %}
    < span class = " receiptCustomerAddressField " >
    < span class = " receiptCustomerAddressLabel " >地址:< / span >
    {{_self.address (Sale.Customer.Contact, ', '选项)}}
    < / span >
    {% endif %}

    < span id = =“缩进”>“receiptPhonesContainer”类
    {% Sale.Customer.Contact.Phones的电话。ContactPhone %}
    < span情报自动处理= " receiptPhoneNumber " >{{电话。useType}}:{{电话。号码}}< / span > < br / >
    {% endfor %}

    {% Sale.Customer.Contact.Emails的电子邮件。ContactEmail %}
    < span class = " receiptEmailLabel " > E-mailadres: < / span > < span id = " receiptEmail " >{{邮件。地址}}({{Email.useType}}) < / span > < br / >
    {% endfor %}
    < / span >
    {% endif %}

    {%如果isVATAndRegistrationNumberOnReceipt () %}
    如果Sale.Customer {%。vatNumber | strlen而不是选项。hide_customer_vat_number %}
    < span class = " receiptCustomerVatField " >
    < span class = " receiptCustomerVatLabel " > Klant BTW-nr: < / span >
    < span id = " customerVatNumber " > {{Sale.Customer.vatNumber}} < / span >
    < br / >
    < / span >
    {% endif %}

    {%如果Sale.Customer.companyRegistrationNumber | strlen而不是选项。hide_customer_registration_number %}
    < span class = " receiptCustomerCompanyVatField " >
    < span class = " receiptCustomerCompanyVatLabel " > Klant handelsregisternr: < / span >
    < span id = " customerCompanyVatNumber " > {{Sale.Customer.companyRegistrationNumber}} < / span >
    < br / >
    < / span >
    {% endif %}
    {% endif %}

    {%如果选项。show_customer_notes %}
    如果Sale.Customer.Note {%。注意| strlen > 0%}
    < span class = " receiptCustomerNoteField " > <跨类= " receiptCustomerNoteLabel " > Opmerking: < / span > {{Sale.Customer.Note。注意| noteformat |生}}< br / > < / span >
    {% endif %}
    {% endif %}
    {% endif %}
    < / p >
    {% endmacro %}

    {%宏线(isTaxInclusive、线、参数选项)%}
    < tr >
    < th情报自动处理= " lineItemDescription”class = "描述" >
    {{_self.lineDescription(线、期权)}}
    {%如果选项。per_line_discount = = true,而不是参数。gift_receipt %}
    {%如果线。calcLineDiscount > 0%}
    <小>科特:{{Line.Discount.name}}, {{Line.calcLineDiscount |钱}}< /小>
    {% elseif线。calcLineDiscount < 0%}
    <小>科特:“{{Line.Discount.name}} {{Line.calcLineDiscount | getinverse |钱}}< /小>
    {% endif %}
    {% endif %}
    < / th >

    {%如果选项。show_custom_sku Line.Item。customSku %}
    < td类= " custom_field " > {{Line.Item。customSku}} < / td >
    {% endif %}
    {%如果选项。show_manufacturer_sku Line.Item。manufacturerSku %}
    < td类= " custom_field " > {{Line.Item。manufacturerSku}} < / td >
    {% endif %}

    {%如果选项。show_msrp = = true,而不是参数。gift_receipt %}
    {%设置msrp_printed = false %}
    {% Line.Item.Prices价格。ItemPrice如果不是msrp_printed %}
    {%如果价格。useType = =“厂商建议零售价”和价格。数量! = " 0 " %}
    < td类= " custom_field " >{{价格。|钱}}< / td >
    {%设置msrp_printed = true %}
    {% endif %}
    {% endfor %}
    {%如果不是msrp_printed %}
    < td class = " custom_field " > N.v.t。< / td >
    {% endif %}
    {% endif %}

    < td情报自动处理= " lineItemQuantity " class = "数量" >
    {%如果选项。per_line_subtotal和选项。discounted_line_items和线。calcLineDiscount ! = 0,而不是参数。gift_receipt %}
    < span class = "罢工”>{{线。x unitQuantity}} {{Line.displayableUnitPrice |钱}}< / span >
    {% endif %}
    {{Line.unitQuantity}}
    {%如果选项。per_line_subtotal而不是参数。gift_receipt x %}
    {%如果选项。discounted_line_items %}
    {{分裂(行。displayableSubtotal Line.unitQuantity) |钱}}
    {%其他%}
    {{Line.displayableUnitPrice |钱}}
    {% endif %}
    {% endif %}
    < / td >

    < td情报自动处理= " lineItemPrice " class = "数量" >
    {%如果没有参数。gift_receipt %}
    {%如果选项。discounted_line_items而不是选项。per_line_subtotal和线。calcLineDiscount ! = 0%}
    {%如果不是isTaxInclusive或isTaxInclusive = =‘假’%}
    < span class = "罢工”>{{线。calcSubtotal |钱}}< / span > < br / >
    {%其他%}
    < span class = "罢工”>{{乘(行。displayableUnitPrice Line.unitQuantity) |钱}}< / span > < br / >
    {% endif %}
    {% endif %}
    {{线。displayableSubtotal |钱}}
    {% endif %}
    < / td >
    < / tr >
    {% endmacro %}

    {%宏观收据(销售、参数、store_copy选项)%}
    {%如果出售。SaleLines %}
    <表类=“销售额度”>
    < tr >
    < th类= "描述" > < / th >产品

    {%如果选项。show_custom_sku和选项。show_manufacturer_sku %}
    < th类= " custom_field " > Aangepaste artikelnummer < / th >
    < th类= " custom_field " > Artikelnummer fabr。< / th >
    {% elseif选项。show_custom_sku或选项。show_manufacturer_sku %}
    < th类= " custom_field " > Artikelnummer < / th >
    {% endif %}

    {%如果选项。show_msrp而不是参数。gift_receipt %}
    < th类= " custom_field " > Adviesprijs < / th >
    {% endif %}

    < th class = "数量" > Nr。< / th >

    {%如果没有参数。gift_receipt %}
    < th类= "数量" > Prijs < / th >
    {% endif %}
    < / tr >
    tbody > <
    {% Sale.SaleLines线。SaleLine %}
    {{_self.line (Sale.isTaxInclusive、线、参数选项)}}
    {% endfor %}
    tbody > < /
    < /表>

    {%如果没有参数。gift_receipt %}
    <表类= " saletotals总数" >
    tbody id = " receiptSaleTotals " > <
    < tr >
    < td宽度=“100%”>
    {%如果选项。discounted_line_items和销售。calcDiscount ! = 0%}
    Subtotaal + kortingen
    {%其他%}
    Subtotaal
    {% endif %}
    < / td >
    < td id = " receiptSaleTotalsSubtotal " class = "数量" >
    {%如果选项。discounted_line_items %}
    {{减去(出售。displayableSubtotal Sale.calcDiscount) |钱}}
    {%其他%}
    {{Sale.displayableSubtotal |钱}}
    {% endif %}
    < / td >
    < / tr >
    {%如果不是选项。discounted_line_items和销售。calcDiscount > 0%}
    < tr > < td > Kortingen < / td > < td id =“receiptSaleTotalsDiscounts”类= "数量" > - {{Sale.calcDiscount |钱}}< / td > < / tr >
    {% elseif不是选项。discounted_line_items和销售。calcDiscount < 0%}
    < tr > < td > Kortingen < / td > < td id =“receiptSaleTotalsDiscounts”类= "数量" > {{Sale.calcDiscount | getinverse |钱}}< / td > < / tr >
    {% endif %}
    {% Sale.TaxClassTotals税收。税收%}
    {%如果税。taxname和税收。率> 0%}
    < tr > < td情报自动处理= =“100%”>“receiptSaleTotalsTaxName”宽度{{税。taxname}}({{税。小计|钱}}@ {{Tax.rate}} %) < / td > < td情报自动处理=“receiptSaleTotalsTaxValue”类= "数量" > {{Tax.amount |钱}}< / td > < / tr >
    {% endif %}
    {%如果税。taxname2和税收。rate2 > 0%}
    < tr > < td情报自动处理= =“100%”>“receiptSaleTotalsTaxName”宽度{{税。taxname2}}({{税。subtotal2 |钱}}@ {{Tax.rate2}} %) < / td > < td情报自动处理=“receiptSaleTotalsTaxValue”类= "数量" > {{Tax.amount2 |钱}}< / td > < / tr >
    {% endif %}
    {% endfor %}
    < tr > < td宽度=“100%”> Totaal belasting < / td > < td id =“receiptSaleTotalsTax”类= "数量" > {{Sale.taxTotal |钱}}< / td > < / tr >
    {%设置cash_total = 0%}
    {%设置non_cash_total = 0%}
    {% Sale.SalePayments付款。SalePayment %}
    如果Payment.PaymentType {%。代码= =“现金”%}
    {%设置cash_total = cash_total +付款。量| floatval %}
    {%其他%}
    {%设置non_cash_total = non_cash_total +付款。量| floatval %}
    {% endif %}
    {% endfor %}
    {%设置roundedCashTotal = ((cash_total * 20) |轮)/ 20%}
    {%设置roundedTotal = roundedCashTotal + non_cash_total %}
    {%如果roundedTotal ! =销售。calcTotal %}
    {%如果Sale.completed = = " false "和销售。quoteID > 0%}
    < tr类=“总”> < td > Totaal < / td > < td id =“receiptSaleTotalsTotal”类= "数量" > {{Sale.calcTotal |钱}}< / td > < / tr >
    {%其他%}
    < tr类=“总”> < td > Totaal < / td > < td id =“receiptSaleTotalsTotal”类= "数量" > {{Sale.calcTotal |钱}}< / td > < / tr >
    < tr类=“总”> < td > Afgerond totaal < / td > < td id =“receiptSaleTotalsRoundedTotal”类= "数量" > {{roundedTotal |钱}}< / td > < / tr >
    {% endif %}
    {%其他%}
    < tr类=“总”> < td > Totaal < / td > < td id =“receiptSaleTotalsTotal”类= "数量" > {{Sale.calcTotal |钱}}< / td > < / tr >
    {% endif %}
    tbody > < /
    < /表>
    {% endif %}
    {% endif %}

    {%如果Sale.completed = =“正确”,而不是参数。gift_receipt %}
    {%如果出售。SalePayments %}
    < h2类= " paymentTitle " > Betalingen < / h2 >
    <表id = " receiptPayments " class = "支付" >
    tbody > <
    {% Sale.SalePayments付款。SalePayment %}
    {%如果Payment.PaymentType.name ! = '现金' %}
    < !NOT Cash Payment -->
    如果Payment.CreditAccount {%。giftCard = =“真实”%}
    < !Gift Card -->
    {%如果付款。量> 0%}
    < tr >
    < td类= "标签" > Afgeschreven van cadeaubon < / td >
    < td id = " receiptPaymentsGiftCardValue " class = "数量" > {{Payment.amount |钱}}< / td >
    < / tr >
    < tr >
    < td类= "标签" >点了道明> < /
    < td id = " receiptPaymentsGiftCardBalance " class = "数量" > {{Payment.CreditAccount.balance | getinverse |钱}}< / td >
    < / tr >
    {% elseif付款。< 0和销售数量。calcTotal < 0%}
    < tr >
    < td类= "标签" > Teruggave op cadeaubon bijschrijven < / td >
    < td id = " receiptPaymentsGiftCardValue " class = "数量" > {{Payment.amount | getinverse |钱}}< / td >
    < / tr >
    < tr >
    < td类= "标签" >点了道明> < /
    < td id = " receiptPaymentsGiftCardBalance " class = "数量" > {{Payment.CreditAccount.balance | getinverse |钱}}
    < / tr >
    {% elseif付款。< 0和销售数量。calcTotal > = 0%}
    < tr >
    < td类= "标签" > Aankoop cadeaubon < / td >
    < td id = " receiptPaymentsGiftCardValue " class = "数量" > {{Payment.amount | getinverse |钱}}< / td >
    < / tr >
    < tr >
    < td类= "标签" >点了道明> < /
    < td id = " receiptPaymentsGiftCardBalance " class = "数量" > {{Payment.CreditAccount.balance | getinverse |钱}}< / td >
    < / tr >
    {% endif %}
    {% elseif付款。creditAccountID} = = 0%
    < !NOT Customer Account -->
    {{_self.cc_payment_info(销售、付款)}}
    {% elseif付款。信用账户%}
    < !Customer Account -->
    < tr >
    {%如果付款。量< 0%}
    < td类= "标签" > Aanbetaling op rekening < / td >
    < td id = " receiptPaymentsCreditAccountDepositValue " class = "数量" > {{Payment.amount | getinverse |钱}}< / td >
    {%其他%}
    < td类= "标签" > Betalen op rekening < / td >
    < td id = " receiptPaymentsCreditAccountChargeValue " class = "数量" > {{Payment.amount |钱}}< / td >
    {% endif %}
    < / tr >
    {% endif %}
    {% endif %}
    {% endfor %}
    < tr > < td colspan = " 2 " > < / td > < / tr >
    {{_self.sale_cash_payment(销售)}}
    tbody > < /
    < /表>
    {% endif %}

    {%如果出售。客户而不是store_copy %}
    {%如果选项。show_customer_layaways %}
    {{_self.layaways (Sale.Customer Sale.isTaxInclusive、parameters.gift_receipt选项)}}
    {% endif %}
    {%如果选项。show_customer_specialorders %}
    {{_self.specialorders (Sale.Customer Sale.isTaxInclusive、parameters.gift_receipt选项)}}
    {% endif %}
    {%如果选项。show_customer_workorders %}
    {{_self.workorders (Sale.Customer、parameters.gift_receipt选项)}}
    {% endif %}
    {% endif %}

    {%如果选项。show_customer_credit_account和销售。客户,而不是参数。gift_receipt而不是store_copy %}
    如果Sale.Customer {%。信用账户和Sale.Customer.CreditAccount.MetaData。creditBalanceOwed > 0或Sale.Customer.CreditAccount.MetaData。extraDeposit > 0%}
    < h2类= " footerSectionTitle " > Op rekening < / h2 >
    <表类=“总数”>
    如果Sale.Customer.CreditAccount.MetaData {%。creditBalanceOwed > 0%}
    < tr >
    < td宽度=“100%”> Verschuldigd点了:< / td >
    < td类= "数量" > {{Sale.Customer.CreditAccount.MetaData。creditBalanceOwed |钱}}< / td >
    < / tr >
    {% elseif Sale.Customer.CreditAccount.MetaData。extraDeposit > 0%}
    < tr >
    < td宽度=“100%”> Aanbetaling op rekening: < / td >
    < td类= "数量" > {{Sale.Customer.CreditAccount.MetaData。extraDeposit |钱}}< / td >
    < / tr >
    {% endif %}
    < /表>
    {% endif %}
    如果Sale.Customer.MetaData {%。getAmountToCompleteAll > 0%}
    <表类=“总数”>
    < tr类=“总”>
    < td宽度=“100%”> Resterend bedrag: < / td >
    < td类= "数量" > {{Sale.Customer.MetaData。getAmountToCompleteAll |钱}}< / td >
    < / tr >
    < /表>
    {% endif %}
    {% endif %}
    {% endif %}
    {%如果(没有参数。gift_receipt而不是options.hide_notes_in_sale_receipt)或(参数。gift_receipt而不是options.hide_notes_in_gift_receipt) %}
    {{_self.show_note (Sale.SaleNotes)}}
    {% endif %}
    {% endmacro %}

    {%宏观cc_payment_info(销售、付款)%}
    < tr >
    {%如果付款。存档= = '假' %}
    {%如果付款。ccChargeID > 0和Payment.CCCharge.declined = = '假' %}
    < td类= =“100%”>“标签”宽度
    {{Payment.PaymentType.name}}
    < br > Kaartnr: {{Payment.CCCharge.xnum}}
    如果Payment.CCCharge {%。cardType | strlen > 0%}
    < br >类型:{{Payment.CCCharge.cardType}}
    {% endif %}
    如果Payment.CCCharge {%。cardholderName | strlen > 0%}
    < br > Eigenaar kaart: {{Payment.CCCharge.cardholderName}}
    {% endif %}
    如果Payment.CCCharge {%。entryMethod | strlen > 0%}
    < br >其:{{Payment.CCCharge.entryMethod}}
    {% endif %}
    如果Payment.CCCharge {%。验证码| strlen > 0%}
    < br > Goedkeuring: {{Payment.CCCharge.authCode}}
    {% endif %}
    如果Payment.CCCharge {%。gatewayTransID | strlen > 0, Payment.CCCharge。gatewayTransID | strlen < 48%}
    < br > ID: {{Payment.CCCharge.gatewayTransID}}
    {% endif %}
    如果Payment.CCCharge.MetaData {%。isEMV %}
    如果Payment.CCCharge.MetaData {%。援助| strlen > 0%}
    < br >援助:{{Payment.CCCharge.MetaData.AID}}
    {% endif %}
    如果Payment.CCCharge.MetaData {%。ApplicationLabel | strlen > 0%}
    < br > Applicatielabel: {{Payment.CCCharge.MetaData.ApplicationLabel}}
    {% endif %}
    如果Payment.CCCharge.MetaData {%。PINStatement | strlen > 0%}
    < br > PIN-status: {{Payment.CCCharge.MetaData.PINStatement}}
    {% endif %}
    {% endif %}
    < / td >
    < td类= "数量" > {{Payment.amount |钱}}< / td >
    {% elseif付款。ccChargeID} = = 0%
    < td类= =“100%”>“标签”宽度
    {{Payment.PaymentType.name}}
    < / td >
    < td类= "数量" > {{Payment.amount |钱}}< / td >
    {% endif %}
    {% endif %}
    < / tr >
    {% endmacro %}

    {%宏观cc_agreement(销售、付款、选项)%}
    如果Payment.MetaData.ReceiptData {%。requires_receipt_signature | CompBool = = true %}
    如果Sale.Shop.ReceiptSetup {%。creditcardAgree | strlen > 0%}
    < p > {{Sale.Shop.ReceiptSetup.creditcardAgree | noteformat |生}}< / p >
    {% endif %}
    < dl id = " signatureSection " class = "签名" >
    < dt > Handtekening: < / dt >
    < dd >
    {{Payment.CCCharge。cardholderName}} < br / >
    < / dd >
    < / dl >
    {% endif %}
    {% endmacro %}

    {%宏观shop_workorder_agreement(出售)%}
    如果Sale.Shop.ReceiptSetup {%。workorderAgree | strlen > 0和销售。Workorders %}
    < !
    @FIXME
    应该只打印此work_order如果从未签署过协议。
    事务- > customer_id - > printWorkorderAgreement($事务- > transaction_id) - - >
    < div class = "签名" >
    < p > {{Sale.Shop.ReceiptSetup.workorderAgree | noteformat |生}}< / p >
    < dl类= "签名" >
    < dt > Handtekening: < / dt >
    < dd > {{Sale.Customer。firstName}} {{Sale.Customer.lastName}} < / dd >
    < / dl >
    < / div >
    {% endif %}
    {% endmacro %}

    {%宏观client_workorder_agreement(销售、选项)%}
    {%如果选项。workorders_as_title和销售。SaleLines是空的,Sale.Customer。Workorders和Sale.Shop.ReceiptSetup定义。workorderAgree | strlen > 0%}
    < p > {{Sale.Shop.ReceiptSetup.workorderAgree | noteformat |生}}< / p >
    {% endif %}
    {% endmacro %}

    {%宏观ship_to(销售、选项)%}
    {%如果出售。ShipTo %}
    < div class = "发货" >
    < h4 > Verzenden naar < / h4 >
    {{_self.shipping_address (Sale.ShipTo、Sale.ShipTo.Contact选项)}}

    {% Sale.ShipTo.Contact.Phones的电话。如果循环ContactPhone %} {%。第%}
    < p > Telefoonnr:{{电话。}}({{Phone.useType}}) < / p >
    {% endif %} {% endfor %}

    如果Sale.ShipTo {%。shipNote | strlen > 0%}
    < h5 > Instructies < / h5 >
    {{Sale.ShipTo.shipNote}} < p > < / p >
    {% endif %}
    < / div >
    {% endif %}
    {% endmacro %}

    {%宏观shipping_address(客户、联系人、选项)%}
    < p >
    {%如果Customer.company | strlen > 0%} {{Customer.company}} < br > {% endif %}
    {%如果Customer.company | strlen > 0%}经办人:{% endif %}{{客户。firstName}} {{Customer.lastName}} < br >
    {{_self.address(接触,“< br >”,选项)}}
    < / p >
    {% endmacro %}

    {%宏观地址(接触,分隔符,选项)%}
    {% autoescape错误%}
    {% = Contact.Addresses设置地址。ContactAddress %}

    {%如果地址。address1 |}{{地址strlen > 0%。address1}}{{分隔符}}{% endif %}
    {%如果地址。address2 |}{{地址strlen > 0%。address2}}{{分隔符}}{% endif %}
    {%如果地址。zip |}{{地址strlen > 0%。zip}} {% endif %}
    {%如果地址。城市|}{{地址strlen > 0%。城市}}{% endif %}
    {%如果地址。状态|}{{地址strlen > 0%。州}}{% endif %}{%如果地址。zip | strlen > 0或地址。城市| strlen > 0或地址。状态| strlen > 0%}{{分隔符}}{% endif %}
    {%如果地址。国家|}{{地址strlen > 0%。国家}}{% endif %}

    {% endautoescape %}
    {% endmacro %}

    {%宏观头(销售、选项)%}
    < div class = " receiptHeader " >
    {%设置logo_printed = false %}
    {%如果选项。multi_shop_logos %}
    {%的购物选择。shop_logo_array如果不是logo_printed %}
    {%如果shop.name = = Sale.Shop.name %}
    {%如果商店。logo_url | strlen > 0%}
    < img src = "{{商店。logo_url}}“宽度={{选项。logo_width}}高度= "{{选项。logo_height}}”class = "标志" >
    {%设置logo_printed = true %}
    {% endif %}
    {% endif %}
    {% endfor %}
    {% endif %}

    如果Sale.Shop.ReceiptSetup {%。标志| strlen > 0而不是logo_printed %}
    < img src = " {{Sale.Shop.ReceiptSetup。商标}}"宽度= "{{选项。logo_width}} "高度= "{{选项。logo_height}}”class = "标志" >
    {%如果show_shop_name_with_logo %}
    < h3类= " receiptShopName " > {{Sale.Shop.name}} < / h3 >
    {% endif %}
    {%其他%}
    < h3类= " receiptShopName " > {{Sale.Shop.name}} < / h3 >
    {% endif %}
    < p class = " receiptShopContact " >
    如果Sale.Shop.ReceiptSetup {%。头| strlen > 0%}
    < p > {{Sale.Shop.ReceiptSetup.header | nl2br |生}}< / p >
    {%其他%}
    {{_self.address (Sale.Shop.Contact < br >,选项)}}
    {% Sale.Shop.Contact.Phones ContactPhone。ContactPhone %}
    < br / > {{ContactPhone.number}}
    {% endfor %}
    {% endif %}
    < / p >
    < / div >
    {% endmacro %}

    {%宏观分期预付(客户、isTaxInclusive参数,选项)%}
    如果客户{%。礼物和客户。礼物|长度> 0%}
    < h2类= " footerSectionTitle " >分开gehouden项目< / h2 >
    <表类=“礼物”>
    tbody > <
    {% Customer.Layaways线。SaleLine %}
    {{_self.line (isTaxInclusive、线、参数选项)}}
    {% endfor %}
    tbody > < /
    < /表>
    <表类= " layways总数" >
    < tr >
    < td类= =“100%”>“标签”宽度Subtotaal < / td >
    < td类= "数量" > {{Customer.MetaData.layawaysSubtotalNoDiscount |钱}}< / td >
    < / tr >
    如果Customer.MetaData {%。layawaysAllDiscounts > 0%}
    < tr >
    < td类= =“100%”>“标签”宽度Kortingen < / td >
    < td类= "数量" > {{Customer.MetaData.layawaysAllDiscounts | getinverse |钱}}< / td >
    < / tr >
    {% endif %}
    < tr >
    < td类= =“100%”>“标签”宽度Totaal belasting < / td >
    < td类= "数量" > {{Customer.MetaData.layawaysTaxTotal |钱}}< / td >
    < / tr >
    < tr类=“总”>
    < td类= =“100%”>“标签”宽度Totaal < / td >
    < td类= "数量" > {{Customer.MetaData.layawaysTotal |钱}}< / td >
    < / tr >
    < /表>
    {% endif %}
    {% endmacro %}

    {%宏观specialorders(客户、isTaxInclusive参数,选项)%}
    如果客户{%。SpecialOrders |长度> 0%}
    < h2 class = " footerSectionTitle " id = " lineItemSectionSO " > Speciale bestellingen < / h2 >
    <表id = " containerSOLineItems " class = "行specialorders " >
    tbody > <
    {% Customer.SpecialOrders线。SaleLine %}
    {{_self.line (isTaxInclusive、线、参数选项)}}
    {% endfor %}
    tbody > < /
    < /表>
    <表id = " containerSOTotals " class = " specialorders总数" >
    < tr >
    < td类= =“100%”>“标签”宽度Subtotaal < / td >
    < td类= "数量" > {{Customer.MetaData.specialOrdersSubtotalNoDiscount |钱}}< / td >
    < / tr >
    如果Customer.MetaData {%。specialOrdersAllDiscounts > 0%}
    < tr >
    < td类= =“100%”>“标签”宽度Kortingen < / td >
    < td类= "数量" > {{Customer.MetaData.specialOrdersAllDiscounts | getinverse |钱}}< / td >
    < / tr >
    {% endif %}
    < tr >
    < td类= =“100%”>“标签”宽度Totaal belasting < / td >
    < td类= "数量" > {{Customer.MetaData.specialOrdersTaxTotal |钱}}< / td >
    < / tr >
    < tr类=“总”>
    < td类= =“100%”>“标签”宽度Totaal < / td >
    < td类= "数量" > {{Customer.MetaData.specialOrdersTotal |钱}}< / td >
    < / tr >
    < /表>
    {% endif %}
    {% endmacro %}

    {%宏观workorders(客户、参数选项)%}
    如果客户{%。Workorders |长度> 0%}
    < h2 class = " footerSectionTitle " > Open werkbonnen < / h2 >
    <表类= "行workorders " >
    {% Customer.Workorders线。SaleLine %}
    < tr >
    如果Line.MetaData {%。workorderTotal %}
    < td类= " workorder“colspan = " 2 " >
    {{_self.lineDescription(线、期权)}}
    {%如果选项。show_workorders_barcode %}
    < p class = " barcodeContainer " >
    < img id = " barcodeImage "
    身高= " 50 "
    宽度= " 250 "
    类=“条形码”
    src = " / barcode.php吗?类型=单据编号= {{Line.MetaData。workorderSystemSku}} &&hide_text ={{不是选项。show_workorders_barcode_sku}} " >
    < / p >
    {% endif %}
    < / td >
    {%其他%}
    < td > {{_self.lineDescription(线、期权)}}< / td >
    < td类= "数量" > {{Line.calcSubtotal |钱}}< / td >
    {% endif %}
    < / tr >
    {% endfor %}
    < /表>
    如果Customer.MetaData {%。workordersTotal > 0%}
    <表类= " workorders总数" >
    < tr >
    < td类= =“100%”>“标签”宽度Subtotaal < / td >
    < td类= "数量" > {{Customer.MetaData.workordersSubtotalNoDiscount |钱}}< / td >
    < / tr >
    如果Customer.MetaData {%。specialOrdersAllDiscounts > 0%}
    < tr >
    < td类= =“100%”>“标签”宽度Kortingen < / td >
    < td类= "数量" > {{Customer.MetaData.workordersAllDiscounts | getinverse |钱}}< / td >
    < / tr >
    {% endif %}
    < tr >
    < td类= =“100%”>“标签”宽度Totaal belasting < / td >
    < td类= "数量" > {{Customer.MetaData.workordersTaxTotal |钱}}< / td >
    < / tr >
    < tr类=“总”>
    < td类= =“100%”>“标签”宽度Totaal < / td >
    < td类= "数量" > {{Customer.MetaData.workordersTotal |钱}}< / td >
    < / tr >
    < /表>
    {% endif %}
    {% endif %}
    {% endmacro %}

    {%宏观sale_cash_payment(出售)%}
    {%设置cashTotal = 0%}
    {%设置payCash =‘假’%}
    {% Sale.SalePayments付款。SalePayment %}
    如果Payment.PaymentType {%。代码= =“现金”%}
    {%设置cashTotal = cashTotal +付款。量| floatval %}
    {%设置payCash =“真实”%}
    {% endif %}
    {% endfor %}
    {%如果payCash = =“真实”%}
    {%设置roundedCashChange = (((Sale.change | floatval) * 20) |轮)/ 20%}
    {%设置roundedCashAmount = (((cashTotal * 20) |轮)/ 20)%}
    {%设置originalCashPayedTotalValue =销售。改变| floatval + cashTotal %}
    {%设置roundedCashPayedTotalValue = roundedCashAmount +销售。改变| floatval %}
    < tr > < td >供给量betaald bedrag < / td > < td > {{originalCashPayedTotalValue |钱}}< / td > < / tr >
    {%如果originalCashPayedTotalValue = = roundedCashPayedTotalValue %}
    < tr >显示< td类= "标签" > < / td > < td id =“receiptPaymentsCash”类= "数量" > {{cashTotal |钱}}< / td > < / tr >
    {%如果(Sale.change | floatval) ! = roundedCashChange %}
    < tr > < td类= "标签" > Wisselgeld < / td > < td id =“receiptPaymentsChange”类= "数量" > {{Sale.change |钱}}< / td > < / tr >
    < tr > < td类= "标签" > Wisselgeld afgerond < / td > < td id =“receiptRoundedPaymentsChange”类= "数量" > {{roundedCashChange |钱}}< / td > < / tr >
    {%其他%}
    < tr > < td类= "标签" > Wisselgeld < / td > < td id =“receiptPaymentsChange”类= "数量" > {{Sale.change |钱}}< / td > < / tr >
    {% endif %}
    {%其他%}
    < tr >显示< td类= "标签" > < / td > < td id =“receiptPaymentsCash”类= "数量" > {{cashTotal |钱}}< / td > < / tr >
    < tr > < td类= "标签" >显示Totaal afgerond < / td > < td id =“receiptRoundedPaymentsCash”类= "数量" > {{roundedCashAmount |钱}}< / td > < / tr >
    {%如果(Sale.change | floatval) ! = roundedCashChange %}
    < tr > < td类= "标签" > Wisselgeld < / td > < td id =“receiptPaymentsChange”类= "数量" > {{Sale.change |钱}}< / td > < / tr >
    < tr > < td类= "标签" > Wisselgeld afgerond < / td > < td id =“receiptRoundedPaymentsChange”类= "数量" > {{roundedCashChange |钱}}< / td > < / tr >
    {%其他%}
    < tr > < td类= "标签" > Wisselgeld < / td > < td id =“receiptPaymentsChange”类= "数量" > {{Sale.change |钱}}< / td > < / tr >
    {% endif %}
    {% endif %}
    {% endif %}
    {% endmacro %}

    {%宏观show_note (SaleNotes) %}
    {%在SaleNotes SaleNote %}
    如果SaleNote {%。PrintedNote SaleNote.PrintedNote。注意! = " %}
    < h2类= " notesTitle " > AANTEKENINGEN < / h2 >
    <表>
    < tr >
    < td >
    {{SaleNote.PrintedNote.note}}
    < / td >
    < / tr >
    < /表>
    {% endif %}
    {% endfor %}
    {% endmacro %}
  3. 点击在页面的任何地方保存您的更改。
  4. 从主菜单中,单击报告>收到了Screen_Shot_2019-11-29_at_2.53_1.png
  5. 从付款类型下拉,选择现金
  6. 点击搜索
  7. 单击出售ID相关的现金支付。Screen_Shot_2019-11-29_at_2.54_1.png
  8. 点击打印收据检查如果圆形现金付款收据上显示。Screen_Shot_2019-11-29_at_2.56_1__1_.png

现金舍入现有的比利时商人使用自定义打印模板

如果你现有的比利时商人使用一个自定义打印模板,您只需要手动编辑的代码与舍入你的法国(比利时)或佛兰德打印模板开始征集销售总额和现金支付收据。只有编辑相关的代码中舍入打印模板,定制你已经让它将不受影响。< / p >< p >开始征集现金支付收据和销售总额:< / p >< p >< / p >

  1. 从主菜单中,单击设置>打印模板Screen_Shot_2019-11-29_at_2.51_1.png
  2. SalesReceipt领域,搜索代码下面和删除它。您需要删除的代码取决于如果你使用法国(比利时)或佛兰德打印模板。

    {% endif %} {% endmacro %} {% endif %} {% endmacro %}
    法语(比利时)
    {%宏观sale_cash_payment(出售)%}{% =销售总额。改变| floatval %}{% set pay_cash = 'false' %} {% for Payment in Sale.SalePayments.SalePayment %} {% if Payment.PaymentType.name == 'Cash' and Payment.archived == 'false' %} {% set total = total + Payment.amount|floatval %} {% set pay_cash = 'true' %} {% endif %} {% endfor %} {% if pay_cash == 'true' %} 
    Comptant{{total|money}}
    Monnaie{{Sale.change|money}}
    佛兰德的
    {%宏观sale_cash_payment(出售)%}{% =销售总额。改变| floatval %}{% set pay_cash = 'false' %} {% for Payment in Sale.SalePayments.SalePayment %} {% if Payment.PaymentType.name == 'Cash' and Payment.archived == 'false' %} {% set total = total + Payment.amount|floatval %} {% set pay_cash = 'true' %} {% endif %} {% endfor %} {% if pay_cash == 'true' %} 
    Contant{{total|money}}
    Wisselgeld{{Sale.change|money}}
  3. 复制粘贴的代码下面进入SalesField。你需要复制和粘贴的代码取决于如果你使用法国(比利时)或佛兰德打印模板。

    法语(比利时)
    {%宏观sale_cash_payment(出售)%}
    {%设置cashTotal = 0%}
    {%设置payCash =‘假’%}
    {% Sale.SalePayments付款。SalePayment %}
    如果Payment.PaymentType {%。代码= =“现金”%}
    {%设置cashTotal = cashTotal +付款。量| floatval %}
    {%设置payCash =“真实”%}
    {% endif %}
    {% endfor %}
    {%如果payCash = =“真实”%}
    {%设置roundedCashChange = (((Sale.change | floatval) * 20) |轮)/ 20%}
    {%设置roundedCashAmount = (((cashTotal * 20) |轮)/ 20)%}
    {%设置originalCashPayedTotalValue =销售。改变| floatval + cashTotal %}
    {%设置roundedCashPayedTotalValue = roundedCashAmount +销售。改变| floatval %}
    < tr > < td >竖杆paye en易翔< / td > < td > {{originalCashPayedTotalValue |钱}}< / td > < / tr >
    {%如果originalCashPayedTotalValue = = roundedCashPayedTotalValue %}
    < tr > < td类= "标签" >易翔< / td > < td id =“receiptPaymentsCash”类= "数量" > {{cashTotal |钱}}< / td > < / tr >
    {%如果(Sale.change | floatval) ! = roundedCashChange %}
    < tr > < td类= "标签" > Monnaie < / td > < td id =“receiptPaymentsChange”类= "数量" > {{Sale.change |钱}}< / td > < / tr >
    < tr > < td类= "标签" > Arrondi de la monnaie rendue < / td > < td id =“receiptPaymentsChange”类= "数量" > {{roundedCashChange |钱}}< / td > < / tr >
    {%其他%}
    < tr > < td类= "标签" > Monnaie < / td > < td id =“receiptPaymentsChange”类= "数量" > {{Sale.change |钱}}< / td > < / tr >
    {% endif %}
    {%其他%}
    < tr > < td类= "标签" >易翔< / td > < td id =“receiptPaymentsCash”类= "数量" > {{cashTotal |钱}}< / td > < / tr >
    < tr > < td类= "标签" >总arrondi en易翔< / td > < td id =“receiptRoundedPaymentsCash”类= "数量" > {{roundedCashAmount |钱}}< / td > < / tr >
    {%如果(Sale.change | floatval) ! = roundedCashChange %}
    < tr > < td类= "标签" > Monnaie < / td > < td id =“receiptPaymentsChange”类= "数量" > {{Sale.change |钱}}< / td > < / tr >
    < tr > < td类= "标签" > Arrondi de la monnaie rendue < / td > < td id =“receiptRoundedPaymentsChange”类= "数量" > {{roundedCashChange |钱}}< / td > < / tr >
    {%其他%}
    < tr > < td类= "标签" > Monnaie < / td > < td id =“receiptPaymentsChange”类= "数量" > {{Sale.change |钱}}< / td > < / tr >
    {% endif %}
    {% endif %}
    {% endif %}
    {% endmacro %}
    佛兰德的
    {%宏观sale_cash_payment(出售)%}
    {%设置cashTotal = 0%}
    {%设置payCash =‘假’%}
    {% Sale.SalePayments付款。SalePayment %}
    如果Payment.PaymentType {%。代码= =“现金”%}
    {%设置cashTotal = cashTotal +付款。量| floatval %}
    {%设置payCash =“真实”%}
    {% endif %}
    {% endfor %}
    {%如果payCash = =“真实”%}
    {%设置roundedCashChange = (((Sale.change | floatval) * 20) |轮)/ 20%}
    {%设置roundedCashAmount = (((cashTotal * 20) |轮)/ 20)%}
    {%设置originalCashPayedTotalValue =销售。改变| floatval + cashTotal %}
    {%设置roundedCashPayedTotalValue = roundedCashAmount +销售。改变| floatval %}
    < tr > < td >供给量betaald bedrag < / td > < td > {{originalCashPayedTotalValue |钱}}< / td > < / tr >
    {%如果originalCashPayedTotalValue = = roundedCashPayedTotalValue %}
    < tr >显示< td类= "标签" > < / td > < td id =“receiptPaymentsCash”类= "数量" > {{cashTotal |钱}}< / td > < / tr >
    {%如果(Sale.change | floatval) ! = roundedCashChange %}
    < tr > < td类= "标签" > Wisselgeld < / td > < td id =“receiptPaymentsChange”类= "数量" > {{Sale.change |钱}}< / td > < / tr >
    < tr > < td类= "标签" > Wisselgeld afgerond < / td > < td id =“receiptRoundedPaymentsChange”类= "数量" > {{roundedCashChange |钱}}< / td > < / tr >
    {%其他%}
    < tr > < td类= "标签" > Wisselgeld < / td > < td id =“receiptPaymentsChange”类= "数量" > {{Sale.change |钱}}< / td > < / tr >
    {% endif %}
    {%其他%}
    < tr >显示< td类= "标签" > < / td > < td id =“receiptPaymentsCash”类= "数量" > {{cashTotal |钱}}< / td > < / tr >
    < tr > < td类= "标签" >显示Totaal afgerond < / td > < td id =“receiptRoundedPaymentsCash”类= "数量" > {{roundedCashAmount |钱}}< / td > < / tr >
    {%如果(Sale.change | floatval) ! = roundedCashChange %}
    < tr > < td类= "标签" > Wisselgeld < / td > < td id =“receiptPaymentsChange”类= "数量" > {{Sale.change |钱}}< / td > < / tr >
    < tr > < td类= "标签" > Wisselgeld afgerond < / td > < td id =“receiptRoundedPaymentsChange”类= "数量" > {{roundedCashChange |钱}}< / td > < / tr >
    {%其他%}
    < tr > < td类= "标签" > Wisselgeld < / td > < td id =“receiptPaymentsChange”类= "数量" > {{Sale.change |钱}}< / td > < / tr >
    {% endif %}
    {% endif %}
    {% endif %}
    {% endmacro %}
  4. SalesReceipt领域,搜索代码下面和删除它。

    法语(比利时)
    < tr类=“总”> < td > < / td >总< td id =“receiptSaleTotalsTotal”类= "数量" > {{Sale.calcTotal |钱}}< / td > < / tr >
    佛兰德的
    < tr类=“总”> < td > Totaal < / td > < td id =“receiptSaleTotalsTotal”类= "数量" > {{Sale.calcTotal |钱}}< / td > < / tr >
  5. 复制粘贴的代码下面进入SalesField。你需要复制和粘贴的代码取决于如果你使用法国(比利时)或佛兰德打印模板。

    法语(比利时)
    {%设置cash_total = 0%}
    {%设置non_cash_total = 0%}
    {% Sale.SalePayments付款。SalePayment %}
    如果Payment.PaymentType {%。代码= =“现金”%}
    {%设置cash_total = cash_total +付款。量| floatval %}
    {%其他%}
    {%设置non_cash_total = non_cash_total +付款。量| floatval %}
    {% endif %}
    {% endfor %}
    {%设置roundedCashTotal = ((cash_total * 20) |轮)/ 20%}
    {%设置roundedTotal = roundedCashTotal + non_cash_total %}
    {%如果roundedTotal ! =销售。calcTotal %}
    {%如果Sale.completed = = " false "和销售。quoteID > 0%}
    < tr类=“总”> < td > < / td >总< td id =“receiptSaleTotalsTotal”类= "数量" > {{Sale.calcTotal |钱}}< / td > < / tr >
    {%其他%}
    < tr类=“总”> < td > < / td >总< td id =“receiptSaleTotalsTotal”类= "数量" > {{Sale.calcTotal |钱}}< / td > < / tr >
    < tr类=“总”> < td >总arrondi < / td > < td id =“receiptSaleTotalsRoundedTotal”类= "数量" > {{roundedTotal |钱}}< / td > < / tr >
    {% endif %}
    {%其他%}
    < tr类=“总”> < td > < / td >总< td id =“receiptSaleTotalsTotal”类= "数量" > {{Sale.calcTotal |钱}}< / td > < / tr >
    {% endif %}
    佛兰德的
    {%设置cash_total = 0%}
    {%设置non_cash_total = 0%}
    {% Sale.SalePayments付款。SalePayment %}
    如果Payment.PaymentType {%。代码= =“现金”%}
    {%设置cash_total = cash_total +付款。量| floatval %}
    {%其他%}
    {%设置non_cash_total = non_cash_total +付款。量| floatval %}
    {% endif %}
    {% endfor %}
    {%设置roundedCashTotal = ((cash_total * 20) |轮)/ 20%}
    {%设置roundedTotal = roundedCashTotal + non_cash_total %}
    {%如果roundedTotal ! =销售。calcTotal %}
    {%如果Sale.completed = = " false "和销售。quoteID > 0%}
    < tr类=“总”> < td > Totaal < / td > < td id =“receiptSaleTotalsTotal”类= "数量" > {{Sale.calcTotal |钱}}< / td > < / tr >
    {%其他%}
    < tr类=“总”> < td > Totaal < / td > < td id =“receiptSaleTotalsTotal”类= "数量" > {{Sale.calcTotal |钱}}< / td > < / tr >
    < tr类=“总”> < td > Afgerond totaal < / td > < td id =“receiptSaleTotalsRoundedTotal”类= "数量" > {{roundedTotal |钱}}< / td > < / tr >
    {% endif %}
    {%其他%}
    < tr类=“总”> < td > Totaal < / td > < td id =“receiptSaleTotalsTotal”类= "数量" > {{Sale.calcTotal |钱}}< / td > < / tr >
    {% endif %}
  6. 点击在页面的任何地方保存您的更改。
  7. 从主菜单中,单击报告>收到了Screen_Shot_2019-11-29_at_2.53_1.png
  8. 从付款类型下拉,选择现金
  9. 点击搜索
  10. 单击出售ID相关的现金支付。Screen_Shot_2019-11-29_at_2.54_1.png
  11. 点击打印收据检查如果圆形现金付款收据上显示。Screen_Shot_2019-11-29_at_2.56_1__1_.png

这篇文章有用吗?

1出2发现这有帮助< / span >< / div >