[Top][All Lists]

[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>:

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?

Marcos García

Dolibarr-dev mailing list

Laurent Destailleur (alias Eldy)
Social networks of my OpenSource projects:
Dolibarr Google+:
Dolibarr Facebook:
Dolibarr Twitter:
AWStats Google+:
AWStats Facebook:
AWStats Twitter:

reply via email to

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