Hello, i have this kind of need :
When i buy materials from a supplier, this materials can be used for different projects and customers
I would assign the projcet for every single line of the invoice, so when i che the project overview i can estimate the real charge of my project
Is this possible ?
Hope to have explained well the question
Best Regards
Alessio
Hello,
You can add an extrafield on Invoices module setup at Extrafields(lines). Type should be select from table(referenced table is llx_projet)
it is not as easy as @rauldobrota suggests.
You can add the field as suggested but it will not give you the data on the project details page.
You also need to implement these data points via the hook system.
We are running a patched version of GitHub - jere63fr/dolibarr.consumption: Module Consumption for Dolibarr to do that for consumption of a project.
Please watch that repo. I will send the change to the repo soon.
1 Like
Thank You everybody
Ok Roul yes, the way is to extend the invoice rows with the project field, but as said by [cfoellmann] the target is to see the results in the project Overview
Interesting your module, let’s keep in touch
Best Regards
Have a look at
<?php
/*
* Copyright (C) 2018-2021 Jeremie Ter-Heide <jeremie@ter-heide.fr>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
class ActionsConsumption
This file has been truncated. show original
Here I uploaded our current working code for adding stuff to the element.php
1 Like