Skip to content
Discussion options

You must be logged in to vote

Use order.barcode - not barcode directly.

e.g.

{% extends "report/inventree_order_report_base.html" %}

{% load i18n %}
{% load report %}
{% load barcode %}
{% load inventree_extras %}
{% load markdownify %}

{% block header_content %}

    <img class='logo' src='{% qrcode order.barcode %}' alt="{{ customer }}" width='150'>

    <div class='header-right'>
        <h3>{% trans "Sales Order" %} {{ prefix }}{{ reference }}</h3>
        {{ customer.name }}
    </div>

{% endblock header_content %}

leads to:

Replies: 4 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@leejoow
Comment options

@leejoow
Comment options

@SchrodingersGat
Comment options

Answer selected by leejoow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question This is a question barcode Barcode scanning and integration report Report/Label generation
2 participants