-->
Welcome, Guest
Username: Password: Remember me
You can also tweak your setup of Dolibarr by setting hidden configurations found in Dolibarr Setup Other

TOPIC: Add product weight in invoice lines.

Add product weight in invoice lines. 2 days 14 hours ago #39040

  • d.skal
  • d.skal's Avatar
  • OFFLINE
  • Newcomer
  • Posts: 5
  • Karma: 0
DOLIBARR ENVIRONMENT
- Version: [10.0.1]
- Operating System: [Linux CENTOS 7.6 kvm]
- Web Server: [Apache 2.4.41]
- PHP: [7.2.7]
- Database: [MySQL 5.7.27]
- URL(s): [/imports/import.php]

Hi all,
I need to add a calculated weight of etch product line in my invoices.
Etch line should look like the attached image:

sampleinvoice.jpg


The calculation of the weight is simple: product net price/3= calculated weight
The “product net price” is already in the invoice from so this is looks like an easy task.
After some research I realized that the best method to do so is to use extra fields.
Using the tutorials : “Extrafields” and “Add Extrafields on PDF Models” I manage to create a new PDF template for my invoices, add a “Line complementary attribute” and include it in my ne PDF template with no issues.
My knowledge stops at the point of creating the needed formula for the “complementary attribute” to fetch the line unit net price, divide it by three and print it in my PDF invoice.
Any help will be greatly appreciated.
Thank you, Dennis
The administrator has disabled public write access.
Time to create page: 0.065 seconds