dolibarr-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Dolibarr-user] Multiple (and different) factures data


From: Laurent Destailleur (aka Eldy)
Subject: Re: [Dolibarr-user] Multiple (and different) factures data
Date: Mon, 26 Dec 2016 17:30:57 +0100

The function to make calculation of total of invoice depend on fixed variables:  
qty, vat, unit price, local taxes, discount, etc..
But there is only one param for qty, so having the feature your looking for without modifying core is not possible since there is no hook inside this function. A work around would be to have one product for each qty of worker but it increase management work when you need to change a product description (except if you are helped with a module like this one https://www.dolistore.com/en/modules/372-Product-Declination-3-4---4-0.html).

2016-12-26 15:48 GMT+01:00 Carlos Cesar Caballero Díaz <address@hiddenjovenclub.cu>:
Hi, we are trying to start using dolibarr but we are facing a problem, we have many factures models, this is not a problem because we can create many factures templates, but some of them depends on more of one variable, lets say:

Service A: Whe charge the service hourly, with a fixed price by hour.
With this kind of fracture there is no problem, we can create our factures and templates without problem

But

Service B: Whe charge the service depending of time and people, so, we charge hourly for each worker working in the service, for example:
The service cost is $2 hourly for each person, so, if it will require 10 hours and have 5 workers the total cost will be $100 ($2 x 10h x 5w).
We need for this kind of service introduce two variables for the total price calculation, hours and workers, and it need to be reflected in our models, of course.

Is possible to add this kind of functionality without change the dolibarr core code? We look at the customFields module documentation (https://wiki.dolibarr.org/index.php/Module_CustomFields_Cases) and seems that using it we can add this kind of functionlity, but in the examples they are modifying core dolibarr code, something that we really want to avoid.

Greetings.

_______________________________________________
Dolibarr-user mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/dolibarr-user



--
------------------------------------------------------------------------------------
Google+: https://plus.google.com/+LaurentDestailleur-Open-Source-Expert/
Facebook: https://www.facebook.com/Destailleur.Laurent
------------------------------------------------------------------------------------
* Dolibarr (Project leader): http://www.dolibarr.org (make a donation for Dolibarr project via Paypal: address@hidden)
* AWStats (Author) : http://awstats.sourceforge.net (make a donation for AWStats project via Paypal: address@hidden)
* AWBot (Author) : http://awbot.sourceforge.net
* CVSChangeLogBuilder (Author) : http://cvschangelogb.sourceforge.net



reply via email to

[Prev in Thread] Current Thread [Next in Thread]