frappe / print_designer

Visual print designer for Frappe / ERPNext
GNU Affero General Public License v3.0
179 stars 101 forks source link

[Feature] Selection of multiple fields in Barcode element #256

Closed samy4sam closed 1 month ago

samy4sam commented 1 month ago

For example, to generate QR codes from dynamic URLs, it would be great if you could select several fields in combination with static tests.

Bildschirmfoto 2024-05-09 um 19 54 04
maharshivpatel commented 1 month ago

@samy4sam use jinja !

samy4sam commented 1 month ago

@maharshivpatel thanks for your fast reply!

I tried it with Jinja but, there is an artifact in the qr code which makes the scanned url not useful: https://myerp.com/app/work-order/</a>MFG-WO-2024-00002 Do you have a tipp, how I can get rid of </a>?

Bildschirmfoto 2024-05-09 um 21 11 16
samy4sam commented 1 month ago

I was able to fix it myself: {{ 'https://myerp.com/app/work-order/' + doc.name }}