Yes, reason is to uniformize code.
For a future we may also want to track who do what, so $user may be used in
a future to store/track who make changes. Also, a trigger may be added or a
hook may be added into function. When this will be done, $user will be
required, so code is already ready.


2014-05-03 13:23 GMT+02:00 Marcos García <marcos...@gmail.com>:

> Hi:
>
> I've been checking Societe class and several functions receive a $user
> parameter that is not used all over the function.
>
> Those functions are:
>
> · Societe::getSalesRepresentatives
> · Societe::set_OutstandingBill
> · Societe::add_commercial
> · Societe::del_commercial
>
> Are there any reasons for this?
>
> Regards,
>
>
> *Marcos García*
>
> marcos...@gmail.com
>
>
> _______________________________________________
> Dolibarr-dev mailing list
> Dolibarr-dev@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/dolibarr-dev
>
>


-- 
Laurent Destailleur (alias Eldy)
------------------------------------------------------------------------------------
Social networks of my OpenSource projects:
Dolibarr Google+: https://plus.google.com/+DolibarrOrg/
Dolibarr Facebook: https://www.facebook.com/dolibarr
Dolibarr Twitter: http://www.twitter.com/dolibarr
AWStats Google+: https://plus.google.com/+AWStatsOrgPoject/
AWStats Facebook: https://www.facebook.com/awstats.org
AWStats Twitter: http://www.twitter.com/awstats_project
_______________________________________________
Dolibarr-dev mailing list
Dolibarr-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/dolibarr-dev

Répondre à