Module Ultimateqrcode EN: Difference between revisions

From Dolibarr ERP CRM Wiki
Jump to navigation Jump to search
No edit summary
Tag: 2017 source edit
No edit summary
Tag: 2017 source edit
 
(5 intermediate revisions by the same user not shown)
Line 3: Line 3:
     Links below are automatically managed by PolyglotBot
     Links below are automatically managed by PolyglotBot
     You can edit links on the English source page : Module_Ultimateqrcode_EN -->
     You can edit links on the English source page : Module_Ultimateqrcode_EN -->
[[en:Module_Ultimateqrcode_EN]]
[[fr:Module_Ultimateqrcode_FR]]
[[de:Module_Ultimateqrcode_DE]]
[[es:Module_Ultimateqrcode_ES]]
[[it:Module_Ultimateqrcode_IT]]
<!-- END interlang links -->
<!-- END interlang links -->


[[Category:Complementary_modules]]
[[Category:Add-on modules]]
[[Category:Ultimateqrcode]]
[[Category:Ultimateqrcode]]
{{TemplateDocDev}}
{{TemplateDocDev}}
Line 17: Line 20:
|webbuy={{LinkToPluginDownloadDoliStore|keyword=ultimateqrcode}}
|webbuy={{LinkToPluginDownloadDoliStore|keyword=ultimateqrcode}}
|status=stable
|status=stable
|prerequisites=
|prerequisites=PHP 8.2 or above, PHP GD extension
|minversion=14.0.0
|minversion=25.0.0
|note=
|note=Compatible with Dolibarr v25 and PHP 8.5
}}
}}
UltimateQRcode adds '''QR codes''' to Dolibarr records (third parties, contacts, products, commercial documents, projects…). Each QR code encodes the fields you choose, can carry a logo in its centre and prints on a 120 × 57 mm label. Person records also get a '''vCard QR code''' that a smartphone scans to add the contact to its address book.
----
= Requirements =
{| class="wikitable"
! Item !! Version
|-
| '''Dolibarr''' || 25.0.0 or above
|-
| '''PHP''' || 8.2 or above (tested up to PHP 8.5)
|-
| '''PHP extension''' || GD (PNG image generation)
|-
| '''Dolibarr modules''' || No mandatory module. Tabs only appear on objects whose module is enabled (Invoices, Stocks, Projects…)
|}
The ''chillerlan/php-qrcode'' and ''michelf/php-markdown'' libraries are shipped with the module: no Composer installation is needed.
----


= Installation =
= Installation =


# Download the module and place it in the <code>htdocs/custom/ultimateqrcode/</code> directory
# Download the <code>module_ultimateqrcode-25.0.x.zip</code> archive from the [https://www.dolistore.com DoliStore]
# In Dolibarr: go to '''Home → Setup → Modules/Applications'''
# In Dolibarr: '''Home → Setup → Modules/Applications''', tab '''Deploy/install external app/module''', upload the archive. Otherwise, unzip the archive into <code>htdocs/custom/</code>: you must get <code>htdocs/custom/ultimateqrcode/</code>
# Find '''UltimateQRcode''' in the ''Atoo-Net'' section and activate it
# Find the '''UltimateQRcode''' module in the list and enable it
# Configure permissions per user group (see [[#Rights_and_permissions|Rights and permissions]])
# Grant the permissions to users or groups (see [[#Permissions|Permissions]])
 
: '''Upgrading from an earlier version:''' replace the <code>ultimateqrcode</code> folder, then '''disable and re-enable''' the module so that Dolibarr reloads the tabs and permissions.


----
----


= Module Configuration =
= Module setup =


Access configuration via '''Home → Setup → Modules/Applications → UltimateQRcode''' (wrench icon), or directly through the administration menu.
Open the setup page from '''Home → Setup → Modules/Applications → UltimateQRcode''' (gear icon).


The configuration page has three tabs.
The setup page has four tabs: '''QR codes''', '''QR with logo''', '''User guide''' and '''About'''.


== Tab "QR codes" (free generator) ==
== "QR codes" tab (free generator) ==


[[File:Ultimateqrcode-admin-qrcodes-fr.png|center|900px|Free QR code generator]]
[[File:Ultimateqrcode-v25-admin-qrcodes-en.png|center|900px|Free QR code generator]]


This tab provides an '''on-demand QR code generator''':
This tab is an '''on-demand QR code generator''': the QR code created here is not linked to any Dolibarr record and can encode any content.


{| class="wikitable"
{| class="wikitable"
! Field !! Description
! Field !! Description
|-
|-
| '''Data''' || Content to encode: URL, email address, free text, vCard, etc.
| '''Enter here the data to encode in the QR code''' || The content to encode: URL, e-mail address, phone number, free text…
|-
| '''Quality''' || Error correction level:<br/>• '''Low''' (L, ≈ 7 %): most compact QR code<br/>• '''Medium''' (M, ≈ 15 %): common use<br/>• '''Quartile''' (Q, ≈ 25 %): good resistance<br/>• '''High''' (H, ≈ 30 %): very resistant to dirt and scratches
|-
|-
| '''ECC''' || Error correction level:<br/>• '''L''' (≈7% — smallest): minimal size<br/>• '''M''' (≈15%): standard use<br/>• '''Q''' (≈25%): good resistance<br/>• '''H''' (≈30% — best): highly resistant (recommended with logo)
| '''Size''' || From 1 to 10 pixels per QR code module
|-
|-
| '''Size''' || Point size (1 to 10 pixels per QR module)
| '''GENERATE''' button || Generates and displays the QR code
|-
|-
| '''GENERATE''' button || Instantly generates and displays the QR code
| '''PRINT LABEL''' button || Opens the QR code on a 120 × 57 mm label (see [[#Label printing|Label printing]])
|}
|}


Click '''Like that''' in the help text to see a generation example.
== "QR with logo" tab ==
 
== Tab "QR with logo" ==


[[File:Ultimateqrcode-admin-qrwithlogo-fr.png|center|900px|QR code generator with embedded logo]]
[[File:Ultimateqrcode-v25-admin-qrwithlogo-en.png|center|900px|QR code generator with logo]]


This tab generates a '''QR code with a logo inserted in the center''':
This tab creates a '''free QR code carrying a logo in its centre'''. Generated QR codes are kept in the module's temporary folder and can be displayed again, printed or deleted.


{| class="wikitable"
{| class="wikitable"
! Field !! Description
! Item !! Description
|-
| '''Enter here the data to encode in the QR code''' || URL or content to encode
|-
|-
| '''Data''' || URL or content to encode (default: https://www.atoo-net.com/)
| '''Size''' || From 2 to 10, controls the image resolution
|-
|-
| '''Size''' || 1 to 10 — controls the resolution of the generated image
| '''Logo table''' || Logos available in <code>documents/mycompany/logos/</code>, with size, date, preview (magnifier), rename and delete. The radio button selects the logo to embed
|-
|-
| '''Choose a file''' || PNG logo to embed in the center of the QR code
| '''GENERATE''' button || Creates the QR code with the selected logo
|-
|-
| '''GENERATE''' button || Generates the QR code with the logo and saves it
| '''UPLOAD''' || Adds a new logo (PNG recommended)
|-
|-
| '''Select a QR code to display''' || Choose from previously generated QR codes to display
| '''Select a QR code to display''' + '''DISPLAY''' || Displays a QR code generated earlier
|-
|-
| '''DISPLAY''' button || Displays the selected QR code
| '''Bin''' icon || Deletes the selected QR code, after confirmation
|-
|-
| '''Trash icon''' || Deletes the selected QR file (with confirmation)
| '''PRINT LABEL''' button || Prints the displayed QR code on a 120 × 57 mm label
|}
|}


The '''Uploaded Logos''' section lists all uploaded PNG files with their size and upload date. A delete button is available on each row.
: '''Note:''' error correction is '''forced to High''', because the logo hides part of the matrix.


{{Note|The recommended ECC level for a QR with logo is '''H''' (30%), as the logo covers part of the code — error correction compensates for this.}}
== "User guide" tab ==


== Tab "About" ==
[[File:Ultimateqrcode-v25-admin-guide-en.png|center|900px|Built-in user guide]]


Displays module version information, author details and documentation links.
The full user guide can be read directly in Dolibarr, in the user's language (French, English, German, Spanish or Italian).
 
== "About" tab ==
 
Shows the module version, author, licence and links to the documentation.


----
----


= Usage in Records =
= Use in records =


The module adds a '''QR code''' tab to the following object records:
The module adds a '''QR code''' tab to the records of the following 16 objects:


{| class="wikitable"
{| class="wikitable"
! Object !! Added tab(s)
! Object !! Added tab !! vCard QR code
|-
|-
| Third party || QR code + QR-Url (two separate tabs)
| Third party || QR code || Yes
|-
|-
| Contact || QR code
| Contact / Address || QR code || Yes
|-
|-
| Product / Service || QR code
| User || QR code || Yes
|-
|-
| Lot / Serial number || QR code
| Member || QR code || Yes
|-
|-
| Warehouse || QR code
| User group || QR code ||
|-
|-
| Proposal (Quote) || QR code
| Product / Service || QR code ||
|-
|-
| Customer order || QR code
| Lot / Serial number || QR code ||
|-
|-
| Supplier order || QR code
| Warehouse || QR code ||
|-
|-
| Customer invoice || QR code
| Commercial proposal || QR code ||
|-
|-
| Supplier invoice || QR code
| Sales order || QR code ||
|-
|-
| Contract || QR code
| Purchase order || QR code ||
|-
|-
| Intervention || QR code
| Customer invoice || QR code ||
|-
|-
| Project || QR code
| Supplier invoice || QR code ||
|-
|-
| Member (foundation) || QR code
| Contract || QR code ||
|-
|-
| User group || QR code
| Intervention || QR code ||
|-
|-
| User || QR code
| Project || QR code ||
|}
 
== Common layout of the QR code tab ==
 
Each QR code tab is organised in '''five areas'''.
 
=== Area 1 — Settings bar ===
 
At the top of the tab, a settings bar lets you choose:
 
{| class="wikitable"
! Setting !! Description
|-
| '''Size''' || QR code resolution, from 2 to 10 pixels per module
|-
| '''Quality''' || Error correction: Low (L), Medium (M), Quartile (Q) or High (H)
|-
| '''Logo''' || Logo embedded in the centre of the QR code, chosen in the table of area 2
|}
 
: '''Note:''' as soon as a logo is selected, the quality is '''forced to High (H)''' and the note ''(Forced to High with a logo)'' appears next to the selector.
 
These settings are saved '''per object type''' (invoices, proposals, orders…) and apply to every QR code of the tab.
 
=== Area 2 — Logo selection table ===
 
The table lists the logos of the <code>documents/mycompany/logos/</code> folder:
 
{| class="wikitable"
! Column !! Description
|-
| '''Radio button''' || Selects the logo, or "''No logo''"
|-
| '''Logo''' || File name
|-
| '''Size''' || File size in bytes
|-
|-
| Customer payment || QR code
| '''Date''' || Upload date
|-
|-
| Supplier payment || QR code
| '''Preview''' || Magnifier to display the logo
|-
|-
| Survey (OpenSurvey) || QR code
| '''Actions''' || Rename and delete
|}
|}


== Common structure of the QR code tab ==
A form at the bottom of the page uploads new logos.


Each QR code tab is organized in '''two sections''':
: '''Safety:''' if the logo is too large for the QR code capacity, the module generates the QR code without the logo instead of failing, and records the incident in the Dolibarr log.


=== Top section — Configurable data QR code ===
=== Area 3 — Data QR code ===


[[File:Ultimateqrcode-thirdparty-qrcode-top-fr.png|center|900px|QR code tab on a third party record — field selection]]
[[File:Ultimateqrcode-v25-thirdparty-qrcode-en.png|center|900px|QR code tab of a third party: fields, data QR code, URL QR code and vCard QR code]]


The user selects '''which fields to include in the QR code''' using checkboxes:
You choose the '''fields to encode''' by ticking them:


* Left column: checkbox
* the checkbox includes or excludes the field;
* Center column: field label and current value (grayed out if unchecked)
* the middle column shows the label and the current value of the field (greyed out when unticked);
* Right column: the '''generated QR code''' (spanning the full height of the table)
* the generated QR code is displayed next to the table, with or without logo, together with the '''PRINT LABEL''' button.


Available fields depend on the object type:
Fields available per object:


{| class="wikitable"
{| class="wikitable"
! Object !! Available fields
! Object !! Available fields
|-
|-
| Third party || Company name, Address, ZIP, Town, Country, Phone, Email, URL + Extra fields
| Third party || Company, Address, Zip code, Town, Country, Phone, Email, URL
|-
| Contact || First name, Last name, Phone, Mobile phone, Email, Address, Zip code, Town, Country, URL
|-
| User || Login, First name, Last name, Phone, Mobile phone, Email, Address, Zip code, Town, Country, URL
|-
|-
| Product || Ref., Label, Description, Price excl. tax, Price incl. tax, Barcode, Weight, Volume, URL + Extra fields
| Member || First name, Last name, Phone, Personal phone, Email, Address, Zip code, Town, Country, URL
|-
|-
| Warehouse || Label, Short location name, Description, Address, ZIP, Town, Country, URL + Extra fields
| User group || Group name, Description, URL
|-
|-
| User || Login, First name, Last name, Phone, Mobile, Email, Address, ZIP, Town, Country, URL + Extra fields
| Product / Service || Ref., Label, Description, Price excl. tax, Price incl. tax, Barcode, Weight, Volume, URL
|-
|-
| Contact || Title, First name, Last name, Company, Job, Phone, Mobile, Email, Address, etc.
| Lot / Serial number || Lot/Serial, Eat-by date, Sell-by date, URL
|-
|-
| (others) || Fields specific to each object type
| Warehouse || Label, Short location name, Description, Address, Zip code, Town, Country, URL
|-
| Commercial proposal || Ref., Customer ref., Company, Email, Phone, Date, End of validity date, Total excl. tax, Total incl. tax, Public note, URL
|-
| Sales order || Ref., Customer ref., Company, Email, Phone, Date, Total excl. tax, Total incl. tax, Public note, URL
|-
| Purchase order || Ref., Supplier ref., Company, Email, Phone, Date, Total excl. tax, Total incl. tax, Public note, URL
|-
| Customer invoice || Ref., Customer ref., Company, Email, Phone, Invoice date, Payment due date, Total excl. tax, Total incl. tax, Public note, URL
|-
| Supplier invoice || Ref., Supplier ref., Company, Email, Phone, Invoice date, Payment due date, Total excl. tax, Total incl. tax, Public note, URL
|-
| Contract || Ref., Customer ref., Supplier ref., Company, Email, Phone, Contract date, Public note, URL
|-
| Intervention || Ref., Company, Email, Phone, Date, Description, URL
|-
| Project || Ref., Project label, Company, Email, Phone, Start date, End date, Public note, URL
|}
|}


{{Note|'''Extra fields''' (custom attributes) defined in Dolibarr are automatically appended to the list of available fields.}}
: '''Note:''' the '''extra fields''' filled in on the record are added to the list automatically, as ''Extra field: label''. Those created by other modules are ignored.


The displayed QR code is '''clickable''': clicking it opens the [[#Label_printing|label printing]] window.
=== Area 4 — Record URL QR code ===


=== Bottom section — Record URL QR code ===
On the right (or below the table, depending on the screen width), the tab shows:


[[File:Ultimateqrcode-thirdparty-qrcode-bottom-fr.png|center|900px|QR code tab — bottom section with URL QR and Save/Cancel buttons]]
* the '''Record URL''' label followed by a link to the record;
* a second '''QR code encoding the direct URL''' of the record, also printable on a label;
* at the bottom of the page, the '''SAVE''' and '''CANCEL''' buttons.


The bottom section displays:
=== Area 5 — vCard QR code (Third party, Contact, User, Member) ===


* The label '''URL of the [object] record'''
[[File:Ultimateqrcode-v25-contact-vcard-en.png|center|900px|vCard QR code on a contact record]]
* A clickable link to the Dolibarr record
 
* A second '''QR code encoding the direct URL''' to the record (also clickable for label printing)
The '''Third party''', '''Contact''', '''User''' and '''Member''' records also show a '''vCard QR code'''. Scanned with a smartphone, it offers to add the contact straight to the address book. The encoded vCard 3.0 content is displayed in plain text next to the QR code.
* The '''SAVE''' and '''CANCEL''' buttons
 
=== Live preview ===
 
The QR codes are updated '''in real time''' when you change:
* the size;
* the quality;
* the logo;
* the ticked fields.
 
'''No page reload is needed.''' The preview uses an AJAX request sent 300 ms after the last change. It works on all 16 QR code tabs.


=== Automatic default field selection ===
=== Automatic default field selection ===


On first display (no configuration saved), the module automatically selects fields whose value is non-empty. This ensures a relevant QR code right from the first opening.
On first display, as long as no configuration has been saved, the module ticks the fields that are filled in on the record. The QR code is therefore relevant from the very first opening.


=== Saving configuration ===
=== Saving the configuration ===


Check/uncheck the desired fields, then click '''SAVE'''. The selection is saved and applies to '''all objects of the same type''' (one global configuration per object type).
Tick or untick the fields, then click '''SAVE'''. The selection applies to '''all objects of the same type''' (one configuration per object type).


----
----


= QR code tab — Examples by object =
= QR code tab — Examples per object =
 
== Customer invoice ==
 
[[File:Ultimateqrcode-v25-invoice-qrcode-en.png|center|900px|QR code tab of an invoice with embedded logo]]
 
Example on a customer invoice: '''Ref.''', '''Company''', '''Email''', '''Phone''', '''Invoice date''', '''Payment due date''', '''Total excl. tax''', '''Total incl. tax''' and '''URL''' are ticked. The ''expert_dolibarr.png'' logo is embedded in the centre of both QR codes and the quality is forced to High (H).


== Product ==
== Product ==


[[File:Ultimateqrcode-product-qrcode-fr.png|center|900px|QR code tab on a product record]]
[[File:Ultimateqrcode-v25-product-qrcode-en.png|center|900px|QR code tab of a product]]


Example configuration for a product: '''Ref.''' and '''Label''' checked, plus extra fields '''Ecotax''' and '''ControlHistoryLink'''. The QR encodes these four values concatenated.
On a product, the QR code can encode the reference, label, prices, barcode, weight and volume: handy for shelf or storeroom labelling.


== Warehouse ==
== Warehouse ==


[[File:Ultimateqrcode-stock-qrcode-fr.png|center|900px|QR code tab on a warehouse record]]
[[File:Ultimateqrcode-v25-stock-qrcode-en.png|center|900px|QR code tab of a warehouse]]


Useful for physical identification of storage locations. The '''Short location name''' field (lieu) allows specifying the storage zone.
Useful to identify storage locations physically. The '''Short location name''' field specifies the area (aisle, rack…).


== User ==
== User ==


[[File:Ultimateqrcode-user-qrcode-fr.png|center|900px|QR code tab on a user record]]
The user QR code encodes the business contact details (login, first name, last name, phones, email, address…), and the vCard QR code adds them to an address book. Handy for badges or internal business cards.


The user QR code encodes contact information (login, first name, last name, phone, mobile, email, country...). Practical for badges or internal business cards.
: '''Note:''' the QR code tab of a user is only visible to the user themselves or to users allowed to read user records.


{{Note|The QR code tab on a user record is only visible to the user themselves or to users who have the right to read user records.}}
----
 
= Reusable QR code image (QR with logo) =
 
To get a '''QR code image with a logo''' to reuse elsewhere (website, brochure, e-mail signature), use the '''QR with logo''' setup tab:
 
# enter the record URL or any other content in the input field;
# choose the size and the logo, then click '''GENERATE''';
# display the QR code again at any time with '''Select a QR code to display''', print it or delete it.
 
: '''Note:''' the former "QR-Url" tab of third parties, which the module no longer declared, has been removed. The record URL QR code remains available in area 4 of every QR code tab.


----
----


= QR-Url Tab (Third parties only) =
= Label printing =
 
[[File:Ultimateqrcode-v25-label-print-en.png|center|466px|120 × 57 mm label]]
 
The '''PRINT LABEL''' button, or a click on a QR code, opens a '''print window''' in '''120 × 57 mm''' format, suited to common label printers.
 
The label of a record contains:
* '''on the left''': the data QR code;
* '''in the centre''': the key information of the record (reference, third party, total…, depending on the object);
* '''on the right''': the record URL QR code.
 
The generators of the '''QR codes''' and '''QR with logo''' tabs print the QR code they have just created in the same way.
 
The window opens the browser print dialog automatically.
 
: '''Note:''' for best results on adhesive labels, set the printer to the 120 × 57 mm format and remove the margins in the browser print options.


[[File:Ultimateqrcode-thirdparty-qrurl-fr.png|center|900px|QR-Url tab on a third party — QR with logo]]
----


Third party records have a '''second QR tab''' called '''QR-Url''', specialized in generating QR codes '''with an embedded logo''' encoding the record URL.
= Permissions =


Features:
[[File:Ultimateqrcode-v25-permissions-en.png|center|900px|UltimateQRcode module permissions]]
 
The module defines two permissions, granted per user or per group in '''Users & Groups''':


{| class="wikitable"
{| class="wikitable"
! Element !! Function
! Permission !! Effect
|-
|-
| '''Size''' (1-10) || Resolution of the generated QR code
| '''Read QR codes''' || Shows the QR code tabs and the generated QR codes
|-
|-
| '''Choose file''' + '''UPLOAD LOGO''' || Upload a PNG logo to embed in the center
| '''Create / Modify QR codes''' || Lets the user tick or untick fields and save the configuration
|-
| '''Select a QR code to display''' || Choose from QR codes already generated for this third party
|-
| '''DISPLAY''' button || Displays the selected QR code
|-
| '''Uploaded Logos''' section || Lists available logos with download and delete options
|}
|}


The displayed QR encodes the URL of the third party record, with the chosen logo inserted in the center of the image.
: '''Note:''' without the read permission, the QR code tabs are hidden. Without the modify permission, the user sees the QR codes but cannot change the field selection. Uploading, renaming and deleting logos is reserved to administrators.


----
----


= Label Printing =
= What's new and v25 compatibility =


[[File:Ultimateqrcode-label-print-fr.png|center|700px|Label printing window — 120×57mm format]]
Version 25.0.0 aligns UltimateQRcode with Dolibarr 25.


Clicking any QR code in any tab opens a '''popup print window''' optimized for labels in '''120 × 57 mm''' format (compatible with standard label printers).
{| class="wikitable"
! Change !! Detail
|-
| '''Minimum versions''' || Dolibarr 25.0.0 and PHP 8.2
|-
| '''PHP 8.4 and 8.5''' || No deprecation raised by the module: descriptor properties aligned with the core, "About" page without warning
|-
| '''Payment tabs''' || The "QR code" tabs of customer and supplier payments, which pointed to missing pages (404 error), have been removed
|-
| '''QR-Url tab''' || The orphan page of the former QR-Url tab of third parties has been deleted; the documentation now points to the '''QR with logo''' tab
|-
| '''Translated permissions''' || Both permissions are now displayed in the user's language ("Read QR codes", "Create / Modify QR codes")
|-
| '''vCard display''' || The vCard content and multi-line addresses are displayed properly, without a visible "\n" and without page overflow
|-
| '''Extra fields''' || The "Extra field" label is translated (it used to show "ExtraField")
|-
| '''User guide''' || New setup tab showing the full guide in the 5 languages
|-
| '''Continuous integration''' || Every PHP file of the module is checked with <code>php -l</code> under PHP 8.4 and 8.5
|}


The label contains:
== v24 history ==
* '''Left''': the configurable data QR code
* '''Center''': key text information (reference, label, name, etc. depending on the object)
* '''Right''': the record URL QR code


The window automatically triggers the browser's print dialog.
=== New features in v24 ===


{{Note|For optimal printing on adhesive labels, configure the printer to 120×57mm format and disable margins in the browser's print options.}}
{| class="wikitable"
! Feature !! Description
|-
| '''Per-record settings''' || Size, quality and logo configurable directly in each QR code tab
|-
| '''Embedded logo''' || PNG logo in the centre of every QR code, on all pages
|-
| '''Live preview''' || Real-time QR code update when changing size, quality, logo or ticked fields
|-
| '''vCard QR code''' || For third parties, contacts, users and members
|-
| '''Logo management''' || Upload, preview, rename and delete logos from each record
|}


----
=== Dolibarr v24 compatibility ===


= Rights and Permissions =
{| class="wikitable"
! Fix !! Detail
|-
| '''Module picto''' || <code>.png</code> extension added to the <code>$this->picto</code> property of the descriptor
|-
| '''Currency''' || <code>getDolCurrency()</code> instead of <code>$conf->currency</code> (deprecated)
|-
| '''Constants''' || <code>dolibarr_set_const()</code> instead of writing directly into <code>$conf->global</code>
|}


[[File:Ultimateqrcode-permissions-fr.png|center|700px|UltimateQRcode module permissions]]
=== Bug fixes in v24 ===
 
The module defines two permission levels, to be assigned per user group in '''Setup → Groups and users''':


{| class="wikitable"
{| class="wikitable"
! Permission !! Description !! Effect
! Bug !! Fix
|-
|-
| '''Read qrcode outcomes''' || Read QR codes || Allows viewing QR code tabs and displaying generated QR codes
| Invoice tab not found || Case of the tab key fixed in the descriptor
|-
|-
| '''Create/Modify qrcode outcomes''' || Create / Modify || Allows checking/unchecking fields and saving the configuration
| Obsolete setup parameter || "QR code display size (in pixels)" removed, replaced by the size setting of each record
|-
| Logo too large || Automatic fallback to no logo instead of an error
|}
|}


{{Note|Without the '''Read''' permission, QR code tabs are not visible. Without the '''Write''' permission, users can see QR codes but cannot modify the field selection.}}
=== Translations in v24 ===
 
Missing translation keys added in the 5 languages (FR, EN, DE, ES, IT): quality, logo management and all object types.


----
----
Line 282: Line 448:


; '''The QR code is empty or shows "No data"'''
; '''The QR code is empty or shows "No data"'''
: No field is checked, or all checked fields have empty values in the record. Check at least one field with a value and click SAVE.
: No field is ticked, or the ticked fields are empty on the record. Tick at least one filled-in field and click SAVE.


; '''The label does not print at the correct size'''
; '''The label does not print at the right size'''
: Verify that the printer paper format is set to 120×57mm. Disable margins in the browser's print options.
: Check that the printer paper format is set to 120 × 57 mm and remove the margins in the browser print options.


; '''Extra fields do not appear'''
; '''Extra fields do not appear'''
: Custom attributes must be defined in '''Setup → Extra attributes''' for the relevant object type.
: Only extra fields '''filled in''' on the record are offered. They are defined in the setup of the relevant module (for example '''Third parties → Extra attributes''').
 
; '''The QR code with logo cannot be read'''
: The logo covers too much surface. Use a smaller, ideally square, logo. The quality is already forced to High (H) as soon as a logo is selected.
 
; '''The QR code is displayed without logo although I selected one'''
: The logo is too large for the encoded content: the module then generates the QR code without the logo. Try a smaller logo or tick fewer fields.


; '''The QR with logo is not readable'''
; '''The QR codes are not updated when I change the settings'''
: The logo takes up too much space. Use a smaller logo or increase ECC to '''H''' to improve error correction.
: The live preview requires JavaScript. Check that no script blocker is active.


; '''The QR code tab does not appear on some records'''
; '''The QR code tab does not appear on some records'''
: Verify that the module is activated and that the user has the '''Read qrcode outcomes''' permission.
: Check that the module is enabled, that the Dolibarr module of the object is enabled too, and that the user has the '''Read QR codes''' permission. After an upgrade, disable then re-enable UltimateQRcode.
 
; '''Where has the QR-Url tab of third parties gone?'''
: It has been removed. The record URL QR code is in the QR code tab (area 4), and the '''QR with logo''' setup tab creates reusable images.


----
----
Line 300: Line 475:
= See also =
= See also =


* [[Module_Ultimateqrcode_FR|Module UltimateQRcode — Documentation française]]
* [[Module_Ultimateqrcode_FR|Français]]
* [https://www.dolistore.com Dolistore]
* [[Module_Ultimateqrcode_DE|Deutsch]]
* [[Module_Ultimateqrcode_ES|Español]]
* [[Module_Ultimateqrcode_IT|Italiano]]
* [https://www.dolistore.com/search.php?search_query=ultimateqrcode UltimateQRcode on the DoliStore]
* [https://www.atoo-net.com Atoo-Net]
* [https://www.atoo-net.com Atoo-Net]
[[Category:External module]]
[[Category:QR Code]]
[[Category:Atoo-Net]]

Latest revision as of 19:38, 29 September 2026

Informations


Module name Ultimateqrcode
Editor / Editeur Atoo.Net - https://www.atoo-net.com
Download or buy page / Page achat ou téléchargement External module - www.dolistore.com
Status / Statut / Estado Stable
Prerequisites / Prérequis PHP 8.2 or above, PHP GD extension

Dolibarr min version: See on Dolistore    Dolibarr max version: See on Dolistore

Last update date / Date mise à jour fiche / Fecha última actualización 2026-09-29
Note / Nota Compatible with Dolibarr v25 and PHP 8.5

UltimateQRcode adds QR codes to Dolibarr records (third parties, contacts, products, commercial documents, projects…). Each QR code encodes the fields you choose, can carry a logo in its centre and prints on a 120 × 57 mm label. Person records also get a vCard QR code that a smartphone scans to add the contact to its address book.


Requirements

Item Version
Dolibarr 25.0.0 or above
PHP 8.2 or above (tested up to PHP 8.5)
PHP extension GD (PNG image generation)
Dolibarr modules No mandatory module. Tabs only appear on objects whose module is enabled (Invoices, Stocks, Projects…)

The chillerlan/php-qrcode and michelf/php-markdown libraries are shipped with the module: no Composer installation is needed.


Installation

  1. Download the module_ultimateqrcode-25.0.x.zip archive from the DoliStore
  2. In Dolibarr: Home → Setup → Modules/Applications, tab Deploy/install external app/module, upload the archive. Otherwise, unzip the archive into htdocs/custom/: you must get htdocs/custom/ultimateqrcode/
  3. Find the UltimateQRcode module in the list and enable it
  4. Grant the permissions to users or groups (see Permissions)
Upgrading from an earlier version: replace the ultimateqrcode folder, then disable and re-enable the module so that Dolibarr reloads the tabs and permissions.

Module setup

Open the setup page from Home → Setup → Modules/Applications → UltimateQRcode (gear icon).

The setup page has four tabs: QR codes, QR with logo, User guide and About.

"QR codes" tab (free generator)

Free QR code generator

This tab is an on-demand QR code generator: the QR code created here is not linked to any Dolibarr record and can encode any content.

Field Description
Enter here the data to encode in the QR code The content to encode: URL, e-mail address, phone number, free text…
Quality Error correction level:
• Low (L, ≈ 7 %): most compact QR code
• Medium (M, ≈ 15 %): common use
• Quartile (Q, ≈ 25 %): good resistance
• High (H, ≈ 30 %): very resistant to dirt and scratches
Size From 1 to 10 pixels per QR code module
GENERATE button Generates and displays the QR code
PRINT LABEL button Opens the QR code on a 120 × 57 mm label (see Label printing)

"QR with logo" tab

QR code generator with logo

This tab creates a free QR code carrying a logo in its centre. Generated QR codes are kept in the module's temporary folder and can be displayed again, printed or deleted.

Item Description
Enter here the data to encode in the QR code URL or content to encode
Size From 2 to 10, controls the image resolution
Logo table Logos available in documents/mycompany/logos/, with size, date, preview (magnifier), rename and delete. The radio button selects the logo to embed
GENERATE button Creates the QR code with the selected logo
UPLOAD Adds a new logo (PNG recommended)
Select a QR code to display + DISPLAY Displays a QR code generated earlier
Bin icon Deletes the selected QR code, after confirmation
PRINT LABEL button Prints the displayed QR code on a 120 × 57 mm label
Note: error correction is forced to High, because the logo hides part of the matrix.

"User guide" tab

Built-in user guide

The full user guide can be read directly in Dolibarr, in the user's language (French, English, German, Spanish or Italian).

"About" tab

Shows the module version, author, licence and links to the documentation.


Use in records

The module adds a QR code tab to the records of the following 16 objects:

Object Added tab vCard QR code
Third party QR code Yes
Contact / Address QR code Yes
User QR code Yes
Member QR code Yes
User group QR code
Product / Service QR code
Lot / Serial number QR code
Warehouse QR code
Commercial proposal QR code
Sales order QR code
Purchase order QR code
Customer invoice QR code
Supplier invoice QR code
Contract QR code
Intervention QR code
Project QR code

Common layout of the QR code tab

Each QR code tab is organised in five areas.

Area 1 — Settings bar

At the top of the tab, a settings bar lets you choose:

Setting Description
Size QR code resolution, from 2 to 10 pixels per module
Quality Error correction: Low (L), Medium (M), Quartile (Q) or High (H)
Logo Logo embedded in the centre of the QR code, chosen in the table of area 2
Note: as soon as a logo is selected, the quality is forced to High (H) and the note (Forced to High with a logo) appears next to the selector.

These settings are saved per object type (invoices, proposals, orders…) and apply to every QR code of the tab.

Area 2 — Logo selection table

The table lists the logos of the documents/mycompany/logos/ folder:

Column Description
Radio button Selects the logo, or "No logo"
Logo File name
Size File size in bytes
Date Upload date
Preview Magnifier to display the logo
Actions Rename and delete

A form at the bottom of the page uploads new logos.

Safety: if the logo is too large for the QR code capacity, the module generates the QR code without the logo instead of failing, and records the incident in the Dolibarr log.

Area 3 — Data QR code

QR code tab of a third party: fields, data QR code, URL QR code and vCard QR code

You choose the fields to encode by ticking them:

  • the checkbox includes or excludes the field;
  • the middle column shows the label and the current value of the field (greyed out when unticked);
  • the generated QR code is displayed next to the table, with or without logo, together with the PRINT LABEL button.

Fields available per object:

Object Available fields
Third party Company, Address, Zip code, Town, Country, Phone, Email, URL
Contact First name, Last name, Phone, Mobile phone, Email, Address, Zip code, Town, Country, URL
User Login, First name, Last name, Phone, Mobile phone, Email, Address, Zip code, Town, Country, URL
Member First name, Last name, Phone, Personal phone, Email, Address, Zip code, Town, Country, URL
User group Group name, Description, URL
Product / Service Ref., Label, Description, Price excl. tax, Price incl. tax, Barcode, Weight, Volume, URL
Lot / Serial number Lot/Serial, Eat-by date, Sell-by date, URL
Warehouse Label, Short location name, Description, Address, Zip code, Town, Country, URL
Commercial proposal Ref., Customer ref., Company, Email, Phone, Date, End of validity date, Total excl. tax, Total incl. tax, Public note, URL
Sales order Ref., Customer ref., Company, Email, Phone, Date, Total excl. tax, Total incl. tax, Public note, URL
Purchase order Ref., Supplier ref., Company, Email, Phone, Date, Total excl. tax, Total incl. tax, Public note, URL
Customer invoice Ref., Customer ref., Company, Email, Phone, Invoice date, Payment due date, Total excl. tax, Total incl. tax, Public note, URL
Supplier invoice Ref., Supplier ref., Company, Email, Phone, Invoice date, Payment due date, Total excl. tax, Total incl. tax, Public note, URL
Contract Ref., Customer ref., Supplier ref., Company, Email, Phone, Contract date, Public note, URL
Intervention Ref., Company, Email, Phone, Date, Description, URL
Project Ref., Project label, Company, Email, Phone, Start date, End date, Public note, URL
Note: the extra fields filled in on the record are added to the list automatically, as Extra field: label. Those created by other modules are ignored.

Area 4 — Record URL QR code

On the right (or below the table, depending on the screen width), the tab shows:

  • the Record URL label followed by a link to the record;
  • a second QR code encoding the direct URL of the record, also printable on a label;
  • at the bottom of the page, the SAVE and CANCEL buttons.

Area 5 — vCard QR code (Third party, Contact, User, Member)

vCard QR code on a contact record

The Third party, Contact, User and Member records also show a vCard QR code. Scanned with a smartphone, it offers to add the contact straight to the address book. The encoded vCard 3.0 content is displayed in plain text next to the QR code.

Live preview

The QR codes are updated in real time when you change:

  • the size;
  • the quality;
  • the logo;
  • the ticked fields.

No page reload is needed. The preview uses an AJAX request sent 300 ms after the last change. It works on all 16 QR code tabs.

Automatic default field selection

On first display, as long as no configuration has been saved, the module ticks the fields that are filled in on the record. The QR code is therefore relevant from the very first opening.

Saving the configuration

Tick or untick the fields, then click SAVE. The selection applies to all objects of the same type (one configuration per object type).


QR code tab — Examples per object

Customer invoice

QR code tab of an invoice with embedded logo

Example on a customer invoice: Ref., Company, Email, Phone, Invoice date, Payment due date, Total excl. tax, Total incl. tax and URL are ticked. The expert_dolibarr.png logo is embedded in the centre of both QR codes and the quality is forced to High (H).

Product

QR code tab of a product

On a product, the QR code can encode the reference, label, prices, barcode, weight and volume: handy for shelf or storeroom labelling.

Warehouse

QR code tab of a warehouse

Useful to identify storage locations physically. The Short location name field specifies the area (aisle, rack…).

User

The user QR code encodes the business contact details (login, first name, last name, phones, email, address…), and the vCard QR code adds them to an address book. Handy for badges or internal business cards.

Note: the QR code tab of a user is only visible to the user themselves or to users allowed to read user records.

Reusable QR code image (QR with logo)

To get a QR code image with a logo to reuse elsewhere (website, brochure, e-mail signature), use the QR with logo setup tab:

  1. enter the record URL or any other content in the input field;
  2. choose the size and the logo, then click GENERATE;
  3. display the QR code again at any time with Select a QR code to display, print it or delete it.
Note: the former "QR-Url" tab of third parties, which the module no longer declared, has been removed. The record URL QR code remains available in area 4 of every QR code tab.

Label printing

120 × 57 mm label

The PRINT LABEL button, or a click on a QR code, opens a print window in 120 × 57 mm format, suited to common label printers.

The label of a record contains:

  • on the left: the data QR code;
  • in the centre: the key information of the record (reference, third party, total…, depending on the object);
  • on the right: the record URL QR code.

The generators of the QR codes and QR with logo tabs print the QR code they have just created in the same way.

The window opens the browser print dialog automatically.

Note: for best results on adhesive labels, set the printer to the 120 × 57 mm format and remove the margins in the browser print options.

Permissions

UltimateQRcode module permissions

The module defines two permissions, granted per user or per group in Users & Groups:

Permission Effect
Read QR codes Shows the QR code tabs and the generated QR codes
Create / Modify QR codes Lets the user tick or untick fields and save the configuration
Note: without the read permission, the QR code tabs are hidden. Without the modify permission, the user sees the QR codes but cannot change the field selection. Uploading, renaming and deleting logos is reserved to administrators.

What's new and v25 compatibility

Version 25.0.0 aligns UltimateQRcode with Dolibarr 25.

Change Detail
Minimum versions Dolibarr 25.0.0 and PHP 8.2
PHP 8.4 and 8.5 No deprecation raised by the module: descriptor properties aligned with the core, "About" page without warning
Payment tabs The "QR code" tabs of customer and supplier payments, which pointed to missing pages (404 error), have been removed
QR-Url tab The orphan page of the former QR-Url tab of third parties has been deleted; the documentation now points to the QR with logo tab
Translated permissions Both permissions are now displayed in the user's language ("Read QR codes", "Create / Modify QR codes")
vCard display The vCard content and multi-line addresses are displayed properly, without a visible "\n" and without page overflow
Extra fields The "Extra field" label is translated (it used to show "ExtraField")
User guide New setup tab showing the full guide in the 5 languages
Continuous integration Every PHP file of the module is checked with php -l under PHP 8.4 and 8.5

v24 history

New features in v24

Feature Description
Per-record settings Size, quality and logo configurable directly in each QR code tab
Embedded logo PNG logo in the centre of every QR code, on all pages
Live preview Real-time QR code update when changing size, quality, logo or ticked fields
vCard QR code For third parties, contacts, users and members
Logo management Upload, preview, rename and delete logos from each record

Dolibarr v24 compatibility

Fix Detail
Module picto .png extension added to the $this->picto property of the descriptor
Currency getDolCurrency() instead of $conf->currency (deprecated)
Constants dolibarr_set_const() instead of writing directly into $conf->global

Bug fixes in v24

Bug Fix
Invoice tab not found Case of the tab key fixed in the descriptor
Obsolete setup parameter "QR code display size (in pixels)" removed, replaced by the size setting of each record
Logo too large Automatic fallback to no logo instead of an error

Translations in v24

Missing translation keys added in the 5 languages (FR, EN, DE, ES, IT): quality, logo management and all object types.


FAQ

The QR code is empty or shows "No data"
No field is ticked, or the ticked fields are empty on the record. Tick at least one filled-in field and click SAVE.
The label does not print at the right size
Check that the printer paper format is set to 120 × 57 mm and remove the margins in the browser print options.
Extra fields do not appear
Only extra fields filled in on the record are offered. They are defined in the setup of the relevant module (for example Third parties → Extra attributes).
The QR code with logo cannot be read
The logo covers too much surface. Use a smaller, ideally square, logo. The quality is already forced to High (H) as soon as a logo is selected.
The QR code is displayed without logo although I selected one
The logo is too large for the encoded content: the module then generates the QR code without the logo. Try a smaller logo or tick fewer fields.
The QR codes are not updated when I change the settings
The live preview requires JavaScript. Check that no script blocker is active.
The QR code tab does not appear on some records
Check that the module is enabled, that the Dolibarr module of the object is enabled too, and that the user has the Read QR codes permission. After an upgrade, disable then re-enable UltimateQRcode.
Where has the QR-Url tab of third parties gone?
It has been removed. The record URL QR code is in the QR code tab (area 4), and the QR with logo setup tab creates reusable images.

See also