Line 569:
Line 569:
2- Add the generator that will input the coefficient value for each line.
2- Add the generator that will input the coefficient value for each line.
−
==== Add the column title "Coeff." ====
+
==== '''Add the column title "Coeff."''' ====
Open in your favourite editor the file /htdocs/core/class/commonobject.class.php and inside the function printObjectLines (note the plural s), find the following lines of code:
Open in your favourite editor the file /htdocs/core/class/commonobject.class.php and inside the function printObjectLines (note the plural s), find the following lines of code:
Line 594:
Line 594:
This will take care of showing the Coeff. column, but only for modules where you created such a custom field (because the file we modified is a common object for all modules in Dolibarr, not just invoices, thus this modification will gracefully skip this custom field if it does not exists for other modules).
This will take care of showing the Coeff. column, but only for modules where you created such a custom field (because the file we modified is a common object for all modules in Dolibarr, not just invoices, thus this modification will gracefully skip this custom field if it does not exists for other modules).
−
==== Add the generator ====
+
==== '''Add the generator''' ====
Open the file /htdocs/core/tpl/objectline_view.tpl.php and try to find the following block of code:
Open the file /htdocs/core/tpl/objectline_view.tpl.php and try to find the following block of code: