QR Code in custom print format
QR Code in custom print format
The QR codes in your customized print format will stop working after you upgrade from version-13 to version-14 of the electronic invoice. You can use this method to add QR codes to customized print formats. s.
Step 1: Make a web template for QR Code
You must first construct a web template specifically for the QR Code. To do this, go to the web template list, type "web template" into the awesome bar, and then make a new web template. Give it a name like "E-Invoice QR Code," select "Component" as the type, and select "Printing" as the module.
After that, copy and paste the following code into the template area.
The final step is to add the fields, label, fieldname, and fieldtype as displayed in the image below, and then save the web template.
Step 2: Add web template to custom print format
Replace the existing QR Code image field with a custom HTML section in the custom print format where you want to include the QR Code, then paste the following code snippet there.
Note: Be sure to exactly match the name listed in web block to the name of your web template, which is "E-Invoice QR Code" below.