dolibarr-dev
[Top][All Lists]
Advanced

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

Re: [Dolibarr-dev] Nonused variables


From: Destailleur Laurent
Subject: Re: [Dolibarr-dev] Nonused variables
Date: Sat, 3 May 2014 17:16:54 +0200

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 <address@hidden>:
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
address@hidden

_______________________________________________
Dolibarr-dev mailing list
address@hidden
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


reply via email to

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