Qual: Uniformize constructors
This commit is contained in:
parent
247c97581a
commit
b75d19c264
20
ChangeLog
20
ChangeLog
@ -5,24 +5,26 @@ English Dolibarr ChangeLog
|
|||||||
***** ChangeLog for 3.2 compared to 3.1 *****
|
***** ChangeLog for 3.2 compared to 3.1 *****
|
||||||
|
|
||||||
For users:
|
For users:
|
||||||
- New: task #11243: Show quantity into stocks for each sub-products into the sub-product tab
|
- New: Can edit customer discounts from invoice create and edit card.
|
||||||
- New: task #10500: Option to choose if professional id are unique
|
- New: task #11243: Show quantity into stocks for each sub-products into the sub-product tab.
|
||||||
- New: Add hidden option FOURN_PRODUCT_AVAILABILITY
|
- New: task #10500: Option to choose if professional id are unique.
|
||||||
- New: task #11123: Add best supplier price
|
- New: Add hidden option FOURN_PRODUCT_AVAILABILITY.
|
||||||
|
- New: task #11123: Add best supplier price.
|
||||||
- New: Enhancement in styles.
|
- New: Enhancement in styles.
|
||||||
- New: task #11289 : Modify third party accountancy code generator aquarium
|
- New: task #11289 : Modify third party accountancy code generator aquarium.
|
||||||
- New: task #10606 : more comprehensive message error
|
- New: task #10606 : more comprehensive message error.
|
||||||
- New: task #11278 : Option into point of sale module to add services in list
|
- New: task #11278 : Option into point of sale module to add services in list.
|
||||||
- New: task #11261 : Add an entry into menu called "New shipment".
|
- New: task #11261 : Add an entry into menu called "New shipment".
|
||||||
- New: Make option MAIN_GENERATE_DOCUMENTS_WITHOUT_VAT available by default
|
- New: Make option MAIN_GENERATE_DOCUMENTS_WITHOUT_VAT available by default.
|
||||||
- New: Can build PDF in USLetter format or canada format.
|
- New: Can build PDF in USLetter format or canada format.
|
||||||
|
|
||||||
For developers:
|
For developers:
|
||||||
- Qual: Removed no more used external libraries.
|
- Qual: Removed no more used external libraries.
|
||||||
- Qual: Cleaned a lot of dead code.
|
- Qual: Cleaned a lot of dead code.
|
||||||
- Qual: Parent templates classes were moved as abstract classes.
|
- Qual: Parent templates classes were moved as abstract classes.
|
||||||
- Qual: Added more "hooks"
|
- Qual: Add more "hooks".
|
||||||
- Qual: Add "canvas" feature to overwrite page of thirdparty, contact, product with yours.
|
- Qual: Add "canvas" feature to overwrite page of thirdparty, contact, product with yours.
|
||||||
|
- More OOP (usage of "abstract", "static", ...), unifformize constructors.
|
||||||
|
|
||||||
|
|
||||||
***** ChangeLog for 3.1 compared to 3.0 *****
|
***** ChangeLog for 3.1 compared to 3.0 *****
|
||||||
|
|||||||
@ -40,21 +40,21 @@ class AccountancySystem
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Constructor of class
|
* Constructor
|
||||||
* \param DB Database handler
|
*
|
||||||
* \param id Id compte (0 by default)
|
* @param DoliDB $DB Database handler
|
||||||
*/
|
*/
|
||||||
function AccountancySystem($DB, $id=0)
|
function AccountancySystem($DB)
|
||||||
{
|
{
|
||||||
$this->db = $DB;
|
$this->db = $DB;
|
||||||
$this->id = $id ;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Insert accountancy system name into database
|
* Insert accountancy system name into database
|
||||||
* \param user User making insert
|
*
|
||||||
* \return int <0 if KO, Id of line if OK
|
* @param User $user User making insert
|
||||||
|
* @return int <0 if KO, Id of line if OK
|
||||||
*/
|
*/
|
||||||
function create($user)
|
function create($user)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -43,13 +43,11 @@ class Bookmark
|
|||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
*
|
*
|
||||||
* @param DoliDB $db Handler for Database Access
|
* @param DoliDB $DB Database handler
|
||||||
* @param int $id Bookmark Id
|
|
||||||
*/
|
*/
|
||||||
function Bookmark($db, $id=-1)
|
function Bookmark($db)
|
||||||
{
|
{
|
||||||
$this->db = $db;
|
$this->db = $db;
|
||||||
$this->id = $id;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -72,7 +72,8 @@ switch ( $_GET['action'] )
|
|||||||
$societe = new Societe($db);
|
$societe = new Societe($db);
|
||||||
$societe->fetch($thirdpartyid);
|
$societe->fetch($thirdpartyid);
|
||||||
|
|
||||||
$product = new Product($db, $productid);
|
$product = new Product($db);
|
||||||
|
$product->fetch($productid);
|
||||||
|
|
||||||
if(isset($product->multiprices[$societe->price_level]))
|
if(isset($product->multiprices[$societe->price_level]))
|
||||||
{
|
{
|
||||||
|
|||||||
@ -64,7 +64,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
/** add Ditto for MultiPrix*/
|
/** add Ditto for MultiPrix*/
|
||||||
if($conf->global->PRODUIT_MULTIPRICES)
|
if($conf->global->PRODUIT_MULTIPRICES)
|
||||||
{
|
{
|
||||||
$product = new Product($db, $ret[$i]['id']);
|
$product = new Product($db);
|
||||||
|
$product->fetch($ret[$i]['id']);
|
||||||
|
|
||||||
if(isset($product->multiprices[$societe->price_level]))
|
if(isset($product->multiprices[$societe->price_level]))
|
||||||
{
|
{
|
||||||
|
|||||||
@ -57,8 +57,8 @@ class Categorie
|
|||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
*
|
*
|
||||||
* @param DB acces base de donnees
|
* @param DoliDB $DB Database handler
|
||||||
* @param id id de la categorie
|
* @param int $id Id of category to fetch during init
|
||||||
*/
|
*/
|
||||||
function Categorie($DB, $id=-1)
|
function Categorie($DB, $id=-1)
|
||||||
{
|
{
|
||||||
@ -71,7 +71,7 @@ class Categorie
|
|||||||
/**
|
/**
|
||||||
* Load category into memory from database
|
* Load category into memory from database
|
||||||
*
|
*
|
||||||
* @param id id of category
|
* @param int $id Id of category
|
||||||
*/
|
*/
|
||||||
function fetch($id)
|
function fetch($id)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -105,12 +105,8 @@ llxHeader("","",$langs->trans("Categories"));
|
|||||||
print_fiche_titre($langs->trans("ModifCat"));
|
print_fiche_titre($langs->trans("ModifCat"));
|
||||||
|
|
||||||
|
|
||||||
if ($mesg)
|
dol_htmloutput_errors($mesg);
|
||||||
{
|
|
||||||
print '<div class="error">';
|
|
||||||
print $mesg;
|
|
||||||
print '</div>';
|
|
||||||
}
|
|
||||||
|
|
||||||
$categorie = new Categorie($db, $id);
|
$categorie = new Categorie($db, $id);
|
||||||
$html = new Form($db);
|
$html = new Form($db);
|
||||||
|
|||||||
@ -84,14 +84,16 @@ if ($_POST['action'] == 'setcustomeraccountancycode')
|
|||||||
|
|
||||||
if ($_GET["action"] == 'attribute_prefix' && $user->rights->societe->creer)
|
if ($_GET["action"] == 'attribute_prefix' && $user->rights->societe->creer)
|
||||||
{
|
{
|
||||||
$societe = new Societe($db, $_GET["socid"]);
|
$societe = new Societe($db);
|
||||||
|
$societe->fetch($_GET["socid"]);
|
||||||
$societe->attribute_prefix($db, $_GET["socid"]);
|
$societe->attribute_prefix($db, $_GET["socid"]);
|
||||||
}
|
}
|
||||||
// conditions de reglement
|
// conditions de reglement
|
||||||
if ($_POST["action"] == 'setconditions' && $user->rights->societe->creer)
|
if ($_POST["action"] == 'setconditions' && $user->rights->societe->creer)
|
||||||
{
|
{
|
||||||
|
|
||||||
$societe = new Societe($db, $_GET["socid"]);
|
$societe = new Societe($db);
|
||||||
|
$societe->fetch($_GET["socid"]);
|
||||||
$societe->cond_reglement=$_POST['cond_reglement_id'];
|
$societe->cond_reglement=$_POST['cond_reglement_id'];
|
||||||
$sql = "UPDATE ".MAIN_DB_PREFIX."societe SET cond_reglement='".$_POST['cond_reglement_id'];
|
$sql = "UPDATE ".MAIN_DB_PREFIX."societe SET cond_reglement='".$_POST['cond_reglement_id'];
|
||||||
$sql.= "' WHERE rowid='".$_GET["socid"]."'";
|
$sql.= "' WHERE rowid='".$_GET["socid"]."'";
|
||||||
@ -101,7 +103,8 @@ if ($_POST["action"] == 'setconditions' && $user->rights->societe->creer)
|
|||||||
// mode de reglement
|
// mode de reglement
|
||||||
if ($_POST["action"] == 'setmode' && $user->rights->societe->creer)
|
if ($_POST["action"] == 'setmode' && $user->rights->societe->creer)
|
||||||
{
|
{
|
||||||
$societe = new Societe($db, $_GET["socid"]);
|
$societe = new Societe($db);
|
||||||
|
$societe->fetch($_GET["socid"]);
|
||||||
$societe->mode_reglement=$_POST['mode_reglement_id'];
|
$societe->mode_reglement=$_POST['mode_reglement_id'];
|
||||||
$sql = "UPDATE ".MAIN_DB_PREFIX."societe SET mode_reglement='".$_POST['mode_reglement_id'];
|
$sql = "UPDATE ".MAIN_DB_PREFIX."societe SET mode_reglement='".$_POST['mode_reglement_id'];
|
||||||
$sql.= "' WHERE rowid='".$_GET["socid"]."'";
|
$sql.= "' WHERE rowid='".$_GET["socid"]."'";
|
||||||
@ -111,7 +114,8 @@ if ($_POST["action"] == 'setmode' && $user->rights->societe->creer)
|
|||||||
// assujetissement a la TVA
|
// assujetissement a la TVA
|
||||||
if ($_POST["action"] == 'setassujtva' && $user->rights->societe->creer)
|
if ($_POST["action"] == 'setassujtva' && $user->rights->societe->creer)
|
||||||
{
|
{
|
||||||
$societe = new Societe($db, $_GET["socid"]);
|
$societe = new Societe($db);
|
||||||
|
$societe->fetch($_GET["socid"]);
|
||||||
$societe->tva_assuj=$_POST['assujtva_value'];
|
$societe->tva_assuj=$_POST['assujtva_value'];
|
||||||
$sql = "UPDATE ".MAIN_DB_PREFIX."societe SET tva_assuj='".$_POST['assujtva_value']."' WHERE rowid='".$socid."'";
|
$sql = "UPDATE ".MAIN_DB_PREFIX."societe SET tva_assuj='".$_POST['assujtva_value']."' WHERE rowid='".$socid."'";
|
||||||
$result = $db->query($sql);
|
$result = $db->query($sql);
|
||||||
|
|||||||
@ -661,7 +661,7 @@ if ($_POST['action'] == "addline" && $user->rights->propale->creer)
|
|||||||
// Ecrase $txtva par celui du produit
|
// Ecrase $txtva par celui du produit
|
||||||
if ($_POST['idprod'])
|
if ($_POST['idprod'])
|
||||||
{
|
{
|
||||||
$prod = new Product($db, $_POST['idprod']);
|
$prod = new Product($db);
|
||||||
$prod->fetch($_POST['idprod']);
|
$prod->fetch($_POST['idprod']);
|
||||||
|
|
||||||
$tva_tx = get_default_tva($mysoc,$object->client,$prod->id);
|
$tva_tx = get_default_tva($mysoc,$object->client,$prod->id);
|
||||||
|
|||||||
@ -62,7 +62,7 @@ if ($id > 0 || ! empty($ref))
|
|||||||
|
|
||||||
if ($object->fetch($id,$ref) > 0)
|
if ($object->fetch($id,$ref) > 0)
|
||||||
{
|
{
|
||||||
$soc = new Societe($db, $object->socid);
|
$soc = new Societe($db);
|
||||||
$soc->fetch($object->socid);
|
$soc->fetch($object->socid);
|
||||||
|
|
||||||
$head = propal_prepare_head($object);
|
$head = propal_prepare_head($object);
|
||||||
|
|||||||
@ -138,7 +138,7 @@ if ($id > 0 || ! empty($ref))
|
|||||||
$propal = New Propal($db);
|
$propal = New Propal($db);
|
||||||
if ( $propal->fetch($id,$ref) > 0)
|
if ( $propal->fetch($id,$ref) > 0)
|
||||||
{
|
{
|
||||||
$soc = new Societe($db, $propal->socid);
|
$soc = new Societe($db);
|
||||||
$soc->fetch($propal->socid);
|
$soc->fetch($propal->socid);
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -55,7 +55,8 @@ if ($_GET["action"] == 'cstc')
|
|||||||
// set prospect level
|
// set prospect level
|
||||||
if ($_POST["action"] == 'setprospectlevel' && $user->rights->societe->creer)
|
if ($_POST["action"] == 'setprospectlevel' && $user->rights->societe->creer)
|
||||||
{
|
{
|
||||||
$societe = new Societe($db, $_GET["socid"]);
|
$societe = new Societe($db);
|
||||||
|
$societe->fetch($_GET["socid"]);
|
||||||
$societe->fk_prospectlevel=$_POST['prospect_level_id'];
|
$societe->fk_prospectlevel=$_POST['prospect_level_id'];
|
||||||
$sql = "UPDATE ".MAIN_DB_PREFIX."societe SET fk_prospectlevel='".$_POST['prospect_level_id'];
|
$sql = "UPDATE ".MAIN_DB_PREFIX."societe SET fk_prospectlevel='".$_POST['prospect_level_id'];
|
||||||
$sql.= "' WHERE rowid='".$_GET["socid"]."'";
|
$sql.= "' WHERE rowid='".$_GET["socid"]."'";
|
||||||
|
|||||||
@ -65,7 +65,7 @@ if ($id > 0 || ! empty($ref))
|
|||||||
|
|
||||||
if ($object->fetch($id,$ref) > 0)
|
if ($object->fetch($id,$ref) > 0)
|
||||||
{
|
{
|
||||||
$soc = new Societe($db, $object->socid);
|
$soc = new Societe($db);
|
||||||
$soc->fetch($object->socid);
|
$soc->fetch($object->socid);
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -99,10 +99,11 @@ class Commande extends CommonObject
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Constructeur
|
* Constructor
|
||||||
* \param DB Handler d'acces base
|
*
|
||||||
|
* @param DoliDB $DB Database handler
|
||||||
*/
|
*/
|
||||||
function Commande($DB, $socid="", $commandeid=0)
|
function Commande($DB)
|
||||||
{
|
{
|
||||||
global $langs;
|
global $langs;
|
||||||
$langs->load('orders');
|
$langs->load('orders');
|
||||||
@ -1152,7 +1153,8 @@ class Commande extends CommonObject
|
|||||||
/** POUR AJOUTER AUTOMATIQUEMENT LES SOUSPRODUITS a LA COMMANDE
|
/** POUR AJOUTER AUTOMATIQUEMENT LES SOUSPRODUITS a LA COMMANDE
|
||||||
if (! empty($conf->global->PRODUIT_SOUSPRODUITS))
|
if (! empty($conf->global->PRODUIT_SOUSPRODUITS))
|
||||||
{
|
{
|
||||||
$prod = new Product($this->db, $idproduct);
|
$prod = new Product($this->db);
|
||||||
|
$prod->fetch($idproduct);
|
||||||
$prod -> get_sousproduits_arbo ();
|
$prod -> get_sousproduits_arbo ();
|
||||||
$prods_arbo = $prod->get_each_prod();
|
$prods_arbo = $prod->get_each_prod();
|
||||||
if(sizeof($prods_arbo) > 0)
|
if(sizeof($prods_arbo) > 0)
|
||||||
|
|||||||
@ -134,7 +134,7 @@ if ($id > 0 || ! empty($ref))
|
|||||||
$commande = new Commande($db);
|
$commande = new Commande($db);
|
||||||
if ( $commande->fetch($_GET['id'],$_GET['ref']) > 0)
|
if ( $commande->fetch($_GET['id'],$_GET['ref']) > 0)
|
||||||
{
|
{
|
||||||
$soc = new Societe($db, $commande->socid);
|
$soc = new Societe($db);
|
||||||
$soc->fetch($commande->socid);
|
$soc->fetch($commande->socid);
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -510,7 +510,7 @@ if ($action == 'addline' && $user->rights->commande->creer)
|
|||||||
// Ecrase $base_price_type par celui du produit
|
// Ecrase $base_price_type par celui du produit
|
||||||
if ($_POST['idprod'])
|
if ($_POST['idprod'])
|
||||||
{
|
{
|
||||||
$prod = new Product($db, $_POST['idprod']);
|
$prod = new Product($db);
|
||||||
$prod->fetch($_POST['idprod']);
|
$prod->fetch($_POST['idprod']);
|
||||||
|
|
||||||
$tva_tx = get_default_tva($mysoc,$object->client,$prod->id);
|
$tva_tx = get_default_tva($mysoc,$object->client,$prod->id);
|
||||||
|
|||||||
@ -49,7 +49,7 @@ llxHeader('',$langs->trans('Order'),'EN:Customers_Orders|FR:Commandes_Clients|ES
|
|||||||
$commande = new Commande($db);
|
$commande = new Commande($db);
|
||||||
$commande->fetch($_GET["id"]);
|
$commande->fetch($_GET["id"]);
|
||||||
$commande->info($_GET["id"]);
|
$commande->info($_GET["id"]);
|
||||||
$soc = new Societe($db, $commande->socid);
|
$soc = new Societe($db);
|
||||||
$soc->fetch($commande->socid);
|
$soc->fetch($commande->socid);
|
||||||
|
|
||||||
$head = commande_prepare_head($commande);
|
$head = commande_prepare_head($commande);
|
||||||
|
|||||||
@ -85,7 +85,7 @@ $html = new Form($db);
|
|||||||
|
|
||||||
if ($id > 0 || ! empty($ref))
|
if ($id > 0 || ! empty($ref))
|
||||||
{
|
{
|
||||||
$soc = new Societe($db, $commande->socid);
|
$soc = new Societe($db);
|
||||||
$soc->fetch($commande->socid);
|
$soc->fetch($commande->socid);
|
||||||
|
|
||||||
$head = commande_prepare_head($commande);
|
$head = commande_prepare_head($commande);
|
||||||
|
|||||||
@ -48,8 +48,9 @@ class BankCateg // extends CommonObject
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Constructor
|
* Constructor
|
||||||
* \param DB Database handler
|
*
|
||||||
|
* @param DoliDB $DB Database handler
|
||||||
*/
|
*/
|
||||||
function BankCateg($DB)
|
function BankCateg($DB)
|
||||||
{
|
{
|
||||||
@ -59,10 +60,11 @@ class BankCateg // extends CommonObject
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Create in database
|
* Create in database
|
||||||
* \param user User that create
|
*
|
||||||
* \param notrigger 0=launch triggers after, 1=disable triggers
|
* @param user User that create
|
||||||
* \return int <0 if KO, Id of created object if OK
|
* @param notrigger 0=launch triggers after, 1=disable triggers
|
||||||
|
* @return int <0 if KO, Id of created object if OK
|
||||||
*/
|
*/
|
||||||
function create($user, $notrigger=0)
|
function create($user, $notrigger=0)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -63,7 +63,8 @@ $thirdpartystatic=new Societe($db);
|
|||||||
|
|
||||||
if ($action == 'attribute_prefix')
|
if ($action == 'attribute_prefix')
|
||||||
{
|
{
|
||||||
$societe = new Societe($db, $socid);
|
$societe = new Societe($db);
|
||||||
|
$societe->fetch($socid);
|
||||||
$societe->attribute_prefix($db, $socid);
|
$societe->attribute_prefix($db, $socid);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -102,7 +102,7 @@ if ($id > 0 || ! empty($ref))
|
|||||||
$trip = new Deplacement($db);
|
$trip = new Deplacement($db);
|
||||||
$trip->fetch($id,$ref);
|
$trip->fetch($id,$ref);
|
||||||
|
|
||||||
$soc = new Societe($db, $trip->socid);
|
$soc = new Societe($db);
|
||||||
$soc->fetch($trip->socid);
|
$soc->fetch($trip->socid);
|
||||||
|
|
||||||
$h=0;
|
$h=0;
|
||||||
|
|||||||
@ -903,7 +903,7 @@ if (($action == 'addline' || $action == 'addline_predef') && $user->rights->fact
|
|||||||
// Ecrase $base_price_type par celui du produit
|
// Ecrase $base_price_type par celui du produit
|
||||||
if ($_POST['idprod'])
|
if ($_POST['idprod'])
|
||||||
{
|
{
|
||||||
$prod = new Product($db, $_POST['idprod']);
|
$prod = new Product($db);
|
||||||
$prod->fetch($_POST['idprod']);
|
$prod->fetch($_POST['idprod']);
|
||||||
|
|
||||||
$tva_tx = get_default_tva($mysoc,$object->client,$prod->id);
|
$tva_tx = get_default_tva($mysoc,$object->client,$prod->id);
|
||||||
@ -1884,7 +1884,7 @@ else
|
|||||||
|
|
||||||
$result=$object->fetch_thirdparty();
|
$result=$object->fetch_thirdparty();
|
||||||
|
|
||||||
$soc = new Societe($db, $object->socid);
|
$soc = new Societe($db);
|
||||||
$soc->fetch($object->socid);
|
$soc->fetch($object->socid);
|
||||||
|
|
||||||
$totalpaye = $object->getSommePaiement();
|
$totalpaye = $object->getSommePaiement();
|
||||||
|
|||||||
@ -63,7 +63,7 @@ if ($id > 0 || ! empty($ref))
|
|||||||
|
|
||||||
if ($object->fetch($id,$ref) > 0)
|
if ($object->fetch($id,$ref) > 0)
|
||||||
{
|
{
|
||||||
$soc = new Societe($db, $object->socid);
|
$soc = new Societe($db);
|
||||||
$soc->fetch($object->socid);
|
$soc->fetch($object->socid);
|
||||||
|
|
||||||
$author = new User($db);
|
$author = new User($db);
|
||||||
|
|||||||
@ -372,7 +372,7 @@ class Facture extends CommonObject
|
|||||||
{
|
{
|
||||||
if ($_facrec->lines[$i]->fk_product)
|
if ($_facrec->lines[$i]->fk_product)
|
||||||
{
|
{
|
||||||
$prod = new Product($this->db, $_facrec->lines[$i]->fk_product);
|
$prod = new Product($this->db);
|
||||||
$res=$prod->fetch($_facrec->lines[$i]->fk_product);
|
$res=$prod->fetch($_facrec->lines[$i]->fk_product);
|
||||||
}
|
}
|
||||||
$tva_tx = get_default_tva($mysoc,$soc,$prod->id);
|
$tva_tx = get_default_tva($mysoc,$soc,$prod->id);
|
||||||
|
|||||||
@ -337,7 +337,7 @@ else
|
|||||||
|
|
||||||
if ($fac->fetch($facid, $user->societe_id) > 0)
|
if ($fac->fetch($facid, $user->societe_id) > 0)
|
||||||
{
|
{
|
||||||
$soc = new Societe($db, $fac->socid);
|
$soc = new Societe($db);
|
||||||
$soc->fetch($fac->socid);
|
$soc->fetch($fac->socid);
|
||||||
$author = new User($db);
|
$author = new User($db);
|
||||||
$author->fetch($fac->user_author);
|
$author->fetch($fac->user_author);
|
||||||
|
|||||||
@ -41,7 +41,7 @@ $fac = new Facture($db);
|
|||||||
$fac->fetch($_GET["facid"]);
|
$fac->fetch($_GET["facid"]);
|
||||||
$fac->info($_GET["facid"]);
|
$fac->info($_GET["facid"]);
|
||||||
|
|
||||||
$soc = new Societe($db, $fac->socid);
|
$soc = new Societe($db);
|
||||||
$soc->fetch($fac->socid);
|
$soc->fetch($fac->socid);
|
||||||
|
|
||||||
$head = facture_prepare_head($fac);
|
$head = facture_prepare_head($fac);
|
||||||
|
|||||||
@ -100,7 +100,7 @@ if ($id > 0 || ! empty($ref))
|
|||||||
$fac = new Facture($db);
|
$fac = new Facture($db);
|
||||||
$fac->fetch($id,$ref);
|
$fac->fetch($id,$ref);
|
||||||
|
|
||||||
$soc = new Societe($db, $fac->socid);
|
$soc = new Societe($db);
|
||||||
$soc->fetch($fac->socid);
|
$soc->fetch($fac->socid);
|
||||||
|
|
||||||
$head = facture_prepare_head($fac);
|
$head = facture_prepare_head($fac);
|
||||||
|
|||||||
@ -105,7 +105,7 @@ if ($_REQUEST["facid"] > 0 || $_REQUEST["ref"])
|
|||||||
{
|
{
|
||||||
if ($mesg) print $mesg.'<br>';
|
if ($mesg) print $mesg.'<br>';
|
||||||
|
|
||||||
$soc = new Societe($db, $fac->socid);
|
$soc = new Societe($db);
|
||||||
$soc->fetch($fac->socid);
|
$soc->fetch($fac->socid);
|
||||||
|
|
||||||
$totalpaye = $fac->getSommePaiement();
|
$totalpaye = $fac->getSommePaiement();
|
||||||
|
|||||||
@ -50,10 +50,12 @@ class BonPrelevement extends CommonObject
|
|||||||
var $statut; // 0-Wait, 1-Trans, 2-Done
|
var $statut; // 0-Wait, 1-Trans, 2-Done
|
||||||
var $labelstatut=array();
|
var $labelstatut=array();
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class constructor
|
* Constructor
|
||||||
* @param DB data base handler access
|
*
|
||||||
* @param filename filename
|
* @param DoliDB $DB Database handler
|
||||||
|
* @param string $filename Filename of withdraw receipt
|
||||||
*/
|
*/
|
||||||
function BonPrelevement($DB, $filename='')
|
function BonPrelevement($DB, $filename='')
|
||||||
{
|
{
|
||||||
|
|||||||
@ -53,8 +53,9 @@ class PaymentSocialContribution extends CommonObject
|
|||||||
var $fk_user_modif;
|
var $fk_user_modif;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Constructor
|
* Constructor
|
||||||
* \param DB Database handler
|
*
|
||||||
|
* @param DoliDB $DB Database handler
|
||||||
*/
|
*/
|
||||||
function PaymentSocialContribution($DB)
|
function PaymentSocialContribution($DB)
|
||||||
{
|
{
|
||||||
@ -65,7 +66,8 @@ class PaymentSocialContribution extends CommonObject
|
|||||||
/**
|
/**
|
||||||
* Create payment of social contribution into database.
|
* Create payment of social contribution into database.
|
||||||
* Use this->amounts to have list of lines for the payment
|
* Use this->amounts to have list of lines for the payment
|
||||||
* @param user User making payment
|
*
|
||||||
|
* @param User $user User making payment
|
||||||
* @return int <0 if KO, id of payment if OK
|
* @return int <0 if KO, id of payment if OK
|
||||||
*/
|
*/
|
||||||
function create($user)
|
function create($user)
|
||||||
|
|||||||
@ -56,8 +56,9 @@ class Tva extends CommonObject
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Constructor
|
* Constructor
|
||||||
* \param DB Database handler
|
*
|
||||||
|
* @param DoliDB $DB Database handler
|
||||||
*/
|
*/
|
||||||
function Tva($DB)
|
function Tva($DB)
|
||||||
{
|
{
|
||||||
@ -67,9 +68,10 @@ class Tva extends CommonObject
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Create in database
|
* Create in database
|
||||||
* \param user User that create
|
*
|
||||||
* \return int <0 si ko, >0 si ok
|
* @param User $user User that create
|
||||||
|
* @return int <0 if KO, >0 if OK
|
||||||
*/
|
*/
|
||||||
function create($user)
|
function create($user)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -45,10 +45,11 @@ abstract class ActionsContactCardCommon
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
* @param DB Handler acces base de donnees
|
*
|
||||||
* @param targmetmodule Name of directory of module where canvas is stored
|
* @param DoliDB $DB Handler acces base de donnees
|
||||||
* @param canvas Name of canvas
|
* @param string $targmetmodule Name of directory of module where canvas is stored
|
||||||
* @param card Name of tab (sub-canvas)
|
* @param string $canvas Name of canvas
|
||||||
|
* @param streing $card Name of tab (sub-canvas)
|
||||||
*/
|
*/
|
||||||
function ActionsContactCardCommon($DB,$targetmodule,$canvas,$card)
|
function ActionsContactCardCommon($DB,$targetmodule,$canvas,$card)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -36,10 +36,11 @@ class ActionsContactCardDefault extends ActionsContactCardCommon
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
* @param DB Handler acces base de donnees
|
*
|
||||||
* @param targmetmodule Name of directory of module where canvas is stored
|
* @param DoliDB $DB Handler acces base de donnees
|
||||||
* @param canvas Name of canvas
|
* @param string $targmetmodule Name of directory of module where canvas is stored
|
||||||
* @param card Name of tab (sub-canvas)
|
* @param string $canvas Name of canvas
|
||||||
|
* @param string $card Name of tab (sub-canvas)
|
||||||
*/
|
*/
|
||||||
function ActionsContactCardDefault($DB,$targetmodule,$canvas,$card)
|
function ActionsContactCardDefault($DB,$targetmodule,$canvas,$card)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -80,8 +80,9 @@ class Contact extends CommonObject
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor of class Contact
|
* Constructor
|
||||||
* @param DB Habler d'acces base
|
*
|
||||||
|
* @param DoliDB $DB Database handler
|
||||||
*/
|
*/
|
||||||
function Contact($DB)
|
function Contact($DB)
|
||||||
{
|
{
|
||||||
@ -90,7 +91,8 @@ class Contact extends CommonObject
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Add a contact into database
|
* Add a contact into database
|
||||||
* @param user Object user that create
|
*
|
||||||
|
* @param User $user Object user that create
|
||||||
* @return int <0 if KO, >0 if OK
|
* @return int <0 if KO, >0 if OK
|
||||||
*/
|
*/
|
||||||
function create($user)
|
function create($user)
|
||||||
|
|||||||
@ -72,8 +72,9 @@ class Contrat extends CommonObject
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor of classe
|
* Constructor
|
||||||
* @param DB Databse handler
|
*
|
||||||
|
* @param DoliDB $DB Database handler
|
||||||
*/
|
*/
|
||||||
function Contrat($DB)
|
function Contrat($DB)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -109,7 +109,7 @@ llxHeader("","",$langs->trans("CardProduct".$product->type));
|
|||||||
|
|
||||||
if ($contrat->id)
|
if ($contrat->id)
|
||||||
{
|
{
|
||||||
$soc = new Societe($db, $contrat->societe->id);
|
$soc = new Societe($db);
|
||||||
$soc->fetch($contrat->societe->id);
|
$soc->fetch($contrat->societe->id);
|
||||||
|
|
||||||
if ( $error_msg )
|
if ( $error_msg )
|
||||||
|
|||||||
@ -233,7 +233,7 @@ if ($action == 'addline' && $user->rights->contrat->creer)
|
|||||||
// Ecrase $base_price_type par celui du produit
|
// Ecrase $base_price_type par celui du produit
|
||||||
if ($_POST['idprod'])
|
if ($_POST['idprod'])
|
||||||
{
|
{
|
||||||
$prod = new Product($db, $_POST['idprod']);
|
$prod = new Product($db);
|
||||||
$prod->fetch($_POST['idprod']);
|
$prod->fetch($_POST['idprod']);
|
||||||
|
|
||||||
$tva_tx = get_default_tva($mysoc,$object->client,$prod->id);
|
$tva_tx = get_default_tva($mysoc,$object->client,$prod->id);
|
||||||
|
|||||||
@ -92,9 +92,9 @@ $html = new Form($db);
|
|||||||
|
|
||||||
if ($_GET["id"])
|
if ($_GET["id"])
|
||||||
{
|
{
|
||||||
if ($mesg) print $mesg;
|
dol_htmloutput_mesg($mesg);
|
||||||
|
|
||||||
$soc = new Societe($db, $contrat->societe->id);
|
$soc = new Societe($db);
|
||||||
$soc->fetch($contrat->societe->id);
|
$soc->fetch($contrat->societe->id);
|
||||||
|
|
||||||
$head = contract_prepare_head($contrat);
|
$head = contract_prepare_head($contrat);
|
||||||
|
|||||||
@ -48,8 +48,8 @@ class Canvas
|
|||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
*
|
*
|
||||||
* @param DB Database handler
|
* @param DoliDB $DB Database handler
|
||||||
* @param action Action ('create', 'view', 'edit')
|
* @param string $action Action ('create', 'view', 'edit')
|
||||||
*/
|
*/
|
||||||
function Canvas($DB, $action='view')
|
function Canvas($DB, $action='view')
|
||||||
{
|
{
|
||||||
|
|||||||
@ -39,8 +39,9 @@ class DolCookie
|
|||||||
var $cookie;
|
var $cookie;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Constructor
|
* Constructor
|
||||||
* \param key Personnal key
|
*
|
||||||
|
* @param string $key Personnal key
|
||||||
*/
|
*/
|
||||||
function DolCookie($key = '')
|
function DolCookie($key = '')
|
||||||
{
|
{
|
||||||
@ -53,7 +54,7 @@ class DolCookie
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Encrypt en create the cookie
|
* Encrypt en create the cookie
|
||||||
*/
|
*/
|
||||||
function cryptCookie()
|
function cryptCookie()
|
||||||
{
|
{
|
||||||
|
|||||||
@ -89,8 +89,9 @@ class Events // extends CommonObject
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Constructor
|
* Constructor
|
||||||
* \param DB Database handler
|
*
|
||||||
|
* @param DoliDB $DB Database handler
|
||||||
*/
|
*/
|
||||||
function Events($DB)
|
function Events($DB)
|
||||||
{
|
{
|
||||||
@ -100,9 +101,9 @@ class Events // extends CommonObject
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Create in database
|
* Create in database
|
||||||
* \param user User that create
|
* @param User $user User that create
|
||||||
* \return int <0 si ko, >0 si ok
|
* @return int <0 if KO, >0 if OK
|
||||||
*/
|
*/
|
||||||
function create($user)
|
function create($user)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -45,7 +45,8 @@ class ExtraFields
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
* @param DB base de donnees
|
*
|
||||||
|
* @param DoliDB $DB Database handler
|
||||||
*/
|
*/
|
||||||
function ExtraFields($DB)
|
function ExtraFields($DB)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -33,9 +33,9 @@ class GenericObject extends CommonObject
|
|||||||
var $db;
|
var $db;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class constructor
|
* Constructor
|
||||||
*
|
*
|
||||||
* @param DoliDB $db Data base handler access
|
* @param DoliDB $DB Database handler
|
||||||
*/
|
*/
|
||||||
function GenericObject($db)
|
function GenericObject($db)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -56,7 +56,8 @@ class Form
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
* @param $DB Database handler
|
*
|
||||||
|
* @param DoliDB $DB Database handler
|
||||||
*/
|
*/
|
||||||
function Form($DB)
|
function Form($DB)
|
||||||
{
|
{
|
||||||
@ -65,6 +66,7 @@ class Form
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Output key field for an editable field
|
* Output key field for an editable field
|
||||||
|
*
|
||||||
* @param text Text of label
|
* @param text Text of label
|
||||||
* @param htmlname Name of select field
|
* @param htmlname Name of select field
|
||||||
* @param preselected Preselected value for parameter
|
* @param preselected Preselected value for parameter
|
||||||
|
|||||||
@ -36,7 +36,8 @@ class FormActions
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
* @param DB Database access handler
|
*
|
||||||
|
* @param DoliDB $DB Database handler
|
||||||
*/
|
*/
|
||||||
function FormActions($DB)
|
function FormActions($DB)
|
||||||
{
|
{
|
||||||
@ -48,6 +49,7 @@ class FormActions
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Show list of action status
|
* Show list of action status
|
||||||
|
*
|
||||||
* @param formname Name of form where select in included
|
* @param formname Name of form where select in included
|
||||||
* @param selected Preselected value
|
* @param selected Preselected value
|
||||||
* @param canedit 1=can edit, 0=read only
|
* @param canedit 1=can edit, 0=read only
|
||||||
|
|||||||
@ -35,8 +35,9 @@ class FormAdmin
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Constructor
|
* Constructor
|
||||||
* \param DB handler d'acces base de donnee
|
*
|
||||||
|
* @param DoliDB $DB Database handler
|
||||||
*/
|
*/
|
||||||
function FormAdmin($DB)
|
function FormAdmin($DB)
|
||||||
{
|
{
|
||||||
@ -46,7 +47,8 @@ class FormAdmin
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Output list with available languages.
|
* Output list with available languages
|
||||||
|
*
|
||||||
* @deprecated Use select_language instead
|
* @deprecated Use select_language instead
|
||||||
* @param selected Langue pre-selectionnee
|
* @param selected Langue pre-selectionnee
|
||||||
* @param htmlname Nom de la zone select
|
* @param htmlname Nom de la zone select
|
||||||
|
|||||||
@ -38,7 +38,8 @@ class FormFile
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
* @param DB handler d'acces base de donnee
|
*
|
||||||
|
* @param DoliDB $DB Database handler
|
||||||
*/
|
*/
|
||||||
function FormFile($DB)
|
function FormFile($DB)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -61,7 +61,8 @@ class FormSms
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
* @param DB handler d'acces base de donnee
|
*
|
||||||
|
* @param DoliDB $DB Database handler
|
||||||
*/
|
*/
|
||||||
function FormSms($DB)
|
function FormSms($DB)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -35,8 +35,9 @@ class Interfaces
|
|||||||
var $errors = array(); // Array for errors
|
var $errors = array(); // Array for errors
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Constructor.
|
* Constructor
|
||||||
* \param DB Database handler
|
*
|
||||||
|
* @param DoliDB $DB Database handler
|
||||||
*/
|
*/
|
||||||
function Interfaces($DB)
|
function Interfaces($DB)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -32,7 +32,7 @@ class Menu {
|
|||||||
var $liste;
|
var $liste;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Constructor for class menu
|
* Constructor
|
||||||
*/
|
*/
|
||||||
function Menu()
|
function Menu()
|
||||||
{
|
{
|
||||||
|
|||||||
@ -57,9 +57,10 @@ class Menubase
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
* @param DB Database handler
|
*
|
||||||
* @param menu_handler
|
* @param DoliDB $DB Database handler
|
||||||
* @param type
|
* @param string $menu_handler
|
||||||
|
* @param string $type
|
||||||
*/
|
*/
|
||||||
function Menubase($DB,$menu_handler='',$type='')
|
function Menubase($DB,$menu_handler='',$type='')
|
||||||
{
|
{
|
||||||
@ -72,7 +73,8 @@ class Menubase
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Create menu entry into database
|
* Create menu entry into database
|
||||||
* @param user User that create
|
*
|
||||||
|
* @param User $user User that create
|
||||||
* @return int <0 if KO, Id of record if OK
|
* @return int <0 if KO, Id of record if OK
|
||||||
*/
|
*/
|
||||||
function create($user=0)
|
function create($user=0)
|
||||||
|
|||||||
@ -55,11 +55,12 @@ class Notify
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Renvoie le message signalant les notifications qui auront lieu sur
|
* Renvoie le message signalant les notifications qui auront lieu sur
|
||||||
* un evenement pour affichage dans texte de confirmation evenement.
|
* un evenement pour affichage dans texte de confirmation evenement
|
||||||
* \param action Id of action in llx_c_action_trigger
|
*
|
||||||
* \param socid Id of third party
|
* @param action Id of action in llx_c_action_trigger
|
||||||
* \return string Message
|
* @param socid Id of third party
|
||||||
|
* @return string Message
|
||||||
*/
|
*/
|
||||||
function confirmMessage($action,$socid)
|
function confirmMessage($action,$socid)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -60,6 +60,8 @@ class RssParser
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
|
*
|
||||||
|
* @param DoliDB $DB Database handler
|
||||||
*/
|
*/
|
||||||
public function RssParser($db)
|
public function RssParser($db)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -49,8 +49,7 @@ class Translate {
|
|||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
*
|
*
|
||||||
* @param dir Force directory that contains /langs subdirectory (value is sometine '..' like into install/* pages
|
* @param dir Force directory that contains /langs subdirectory (value is sometine '..' like into install/* pages or support/* pages).
|
||||||
* or support/* pages).
|
|
||||||
* @param conf Object with Dolibarr configuration
|
* @param conf Object with Dolibarr configuration
|
||||||
*/
|
*/
|
||||||
function Translate($dir = "",$conf)
|
function Translate($dir = "",$conf)
|
||||||
|
|||||||
@ -52,8 +52,9 @@ class EcmDirectory // extends CommonObject
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Constructor
|
* Constructor
|
||||||
* \param DB Database handler
|
*
|
||||||
|
* @param DoliDB $DB Database handler
|
||||||
*/
|
*/
|
||||||
function EcmDirectory($DB)
|
function EcmDirectory($DB)
|
||||||
{
|
{
|
||||||
@ -64,7 +65,8 @@ class EcmDirectory // extends CommonObject
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Create record into database
|
* Create record into database
|
||||||
* @param user User that create
|
*
|
||||||
|
* @param User $user User that create
|
||||||
* @return int <0 if KO, >0 if OK
|
* @return int <0 if KO, >0 if OK
|
||||||
*/
|
*/
|
||||||
function create($user)
|
function create($user)
|
||||||
|
|||||||
@ -55,7 +55,7 @@ if ($id > 0 || ! empty($ref))
|
|||||||
|
|
||||||
if ($object->fetch($id,$ref) > 0)
|
if ($object->fetch($id,$ref) > 0)
|
||||||
{
|
{
|
||||||
$soc = new Societe($db, $object->socid);
|
$soc = new Societe($db);
|
||||||
$soc->fetch($object->socid);
|
$soc->fetch($object->socid);
|
||||||
|
|
||||||
$head = fichinter_prepare_head($object);
|
$head = fichinter_prepare_head($object);
|
||||||
|
|||||||
@ -59,9 +59,9 @@ class Fichinter extends CommonObject
|
|||||||
var $lines = array();
|
var $lines = array();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class constructor
|
* Constructor
|
||||||
*
|
*
|
||||||
* @param DoliDB $DB Data base handler access
|
* @param DoliDB $DB Database handler
|
||||||
*/
|
*/
|
||||||
function Fichinter($DB)
|
function Fichinter($DB)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -128,10 +128,10 @@ dol_htmloutput_mesg($mesg);
|
|||||||
$id = $_GET["id"];
|
$id = $_GET["id"];
|
||||||
if ($id > 0)
|
if ($id > 0)
|
||||||
{
|
{
|
||||||
$fichinter = New Fichinter($db);
|
$fichinter = new Fichinter($db);
|
||||||
if ($fichinter->fetch($_GET['id']) > 0)
|
if ($fichinter->fetch($_GET['id']) > 0)
|
||||||
{
|
{
|
||||||
$soc = new Societe($db, $fichinter->socid);
|
$soc = new Societe($db);
|
||||||
$soc->fetch($fichinter->socid);
|
$soc->fetch($fichinter->socid);
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -111,7 +111,7 @@ if ($object->id)
|
|||||||
{
|
{
|
||||||
$object->fetch_thirdparty();
|
$object->fetch_thirdparty();
|
||||||
|
|
||||||
$soc = new Societe($db, $object->societe->id);
|
$soc = new Societe($db);
|
||||||
$soc->fetch($object->societe->id);
|
$soc->fetch($object->societe->id);
|
||||||
|
|
||||||
if ( $error_msg )
|
if ( $error_msg )
|
||||||
|
|||||||
@ -1406,7 +1406,7 @@ class CommandeFournisseur extends Commande
|
|||||||
|
|
||||||
for ($i = 0 ; $i < sizeof($comclient->lines) ; $i++)
|
for ($i = 0 ; $i < sizeof($comclient->lines) ; $i++)
|
||||||
{
|
{
|
||||||
$prod = new Product($this->db, $comclient->lines[$i]->fk_product);
|
$prod = new Product($this->db);
|
||||||
if ($prod->fetch($comclient->lines[$i]->fk_product) > 0)
|
if ($prod->fetch($comclient->lines[$i]->fk_product) > 0)
|
||||||
{
|
{
|
||||||
$libelle = $prod->libelle;
|
$libelle = $prod->libelle;
|
||||||
@ -1824,6 +1824,8 @@ class CommandeFournisseurLigne extends OrderLine
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
|
*
|
||||||
|
* @param DoliDB $DB Database handler
|
||||||
*/
|
*/
|
||||||
function CommandeFournisseurLigne($DB)
|
function CommandeFournisseurLigne($DB)
|
||||||
{
|
{
|
||||||
@ -1832,7 +1834,8 @@ class CommandeFournisseurLigne extends OrderLine
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Load line order
|
* Load line order
|
||||||
* @param rowid id line order
|
*
|
||||||
|
* @param int $rowid id line order
|
||||||
*/
|
*/
|
||||||
function fetch($rowid)
|
function fetch($rowid)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -85,11 +85,10 @@ class FactureFournisseur extends Facture
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
* @param DB Database access handler
|
*
|
||||||
* @param socid Id societe ('' par defaut)
|
* @param DoliDB $DB Database handler
|
||||||
* @param facid Id facture ('' par defaut)
|
|
||||||
*/
|
*/
|
||||||
function FactureFournisseur($DB, $socid='', $facid='')
|
function FactureFournisseur($DB)
|
||||||
{
|
{
|
||||||
$this->db = $DB ;
|
$this->db = $DB ;
|
||||||
|
|
||||||
@ -112,7 +111,8 @@ class FactureFournisseur extends Facture
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Create supplier invoice into database
|
* Create supplier invoice into database
|
||||||
* @param user object utilisateur qui cree
|
*
|
||||||
|
* @param User $user object utilisateur qui cree
|
||||||
* @return int id facture si ok, < 0 si erreur
|
* @return int id facture si ok, < 0 si erreur
|
||||||
*/
|
*/
|
||||||
function create($user)
|
function create($user)
|
||||||
|
|||||||
@ -50,6 +50,8 @@ class ProductFournisseur extends Product
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
|
*
|
||||||
|
* @param DoliDB $DB Database handler
|
||||||
*/
|
*/
|
||||||
function ProductFournisseur($db)
|
function ProductFournisseur($db)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -135,7 +135,7 @@ if ($id > 0 || ! empty($ref))
|
|||||||
$commande = new CommandeFournisseur($db);
|
$commande = new CommandeFournisseur($db);
|
||||||
if ( $commande->fetch($_GET['id'],$_GET['ref']) > 0)
|
if ( $commande->fetch($_GET['id'],$_GET['ref']) > 0)
|
||||||
{
|
{
|
||||||
$soc = new Societe($db, $commande->socid);
|
$soc = new Societe($db);
|
||||||
$soc->fetch($commande->socid);
|
$soc->fetch($commande->socid);
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -374,7 +374,8 @@ if ($_POST['action'] == 'add' && $user->rights->fournisseur->facture->creer)
|
|||||||
|
|
||||||
if ($_GET['action'] == 'del_ligne')
|
if ($_GET['action'] == 'del_ligne')
|
||||||
{
|
{
|
||||||
$facfou = new FactureFournisseur($db,'',$_GET['facid']);
|
$facfou = new FactureFournisseur($db);
|
||||||
|
$facfou->fetch($_GET['facid']);
|
||||||
$facfou->deleteline($_GET['lineid']);
|
$facfou->deleteline($_GET['lineid']);
|
||||||
$_GET['action'] = 'edit';
|
$_GET['action'] = 'edit';
|
||||||
}
|
}
|
||||||
@ -432,7 +433,7 @@ if ($_REQUEST['action'] == 'update_line')
|
|||||||
|
|
||||||
if ($_GET['action'] == 'addline')
|
if ($_GET['action'] == 'addline')
|
||||||
{
|
{
|
||||||
$facfou = new FactureFournisseur($db, '', $_GET['facid']);
|
$facfou = new FactureFournisseur($db);
|
||||||
$ret=$facfou->fetch($_GET['facid']);
|
$ret=$facfou->fetch($_GET['facid']);
|
||||||
if ($ret < 0)
|
if ($ret < 0)
|
||||||
{
|
{
|
||||||
@ -540,7 +541,7 @@ if ($_GET['action'] == 'addline')
|
|||||||
|
|
||||||
if ($_POST['action'] == 'classin')
|
if ($_POST['action'] == 'classin')
|
||||||
{
|
{
|
||||||
$facture = new FactureFournisseur($db,'',$_GET['facid']);
|
$facture = new FactureFournisseur($db);
|
||||||
$facture->fetch($_GET['facid']);
|
$facture->fetch($_GET['facid']);
|
||||||
$result=$facture->setProject($_POST['projectid']);
|
$result=$facture->setProject($_POST['projectid']);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -48,7 +48,7 @@ llxHeader();
|
|||||||
$fac = new FactureFournisseur($db);
|
$fac = new FactureFournisseur($db);
|
||||||
$fac->fetch($_GET["facid"]);
|
$fac->fetch($_GET["facid"]);
|
||||||
$fac->info($_GET["facid"]);
|
$fac->info($_GET["facid"]);
|
||||||
$soc = new Societe($db, $fac->socid);
|
$soc = new Societe($db);
|
||||||
$soc->fetch($fac->socid);
|
$soc->fetch($fac->socid);
|
||||||
|
|
||||||
$head = facturefourn_prepare_head($fac);
|
$head = facturefourn_prepare_head($fac);
|
||||||
|
|||||||
@ -41,7 +41,7 @@ class box_comptes extends ModeleBoxes {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Constructor for class
|
* Constructor
|
||||||
*/
|
*/
|
||||||
function box_comptes()
|
function box_comptes()
|
||||||
{
|
{
|
||||||
@ -52,8 +52,9 @@ class box_comptes extends ModeleBoxes {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Load data into info_box_contents array to show array later.
|
* Load data into info_box_contents array to show array later.
|
||||||
* \param $max Maximum number of records to load
|
*
|
||||||
|
* @param $max Maximum number of records to load
|
||||||
*/
|
*/
|
||||||
function loadBox($max=5)
|
function loadBox($max=5)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -35,7 +35,8 @@ class MenuSmart {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
* @param db Database handler
|
*
|
||||||
|
* @param DoliDB $DB Database handler
|
||||||
*/
|
*/
|
||||||
function MenuSmart($db)
|
function MenuSmart($db)
|
||||||
{
|
{
|
||||||
@ -45,6 +46,7 @@ class MenuSmart {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Show menu
|
* Show menu
|
||||||
|
*
|
||||||
* @param limitmenuto To limit menu to a top or left menu value
|
* @param limitmenuto To limit menu to a top or left menu value
|
||||||
*/
|
*/
|
||||||
function showmenu($limitmenuto)
|
function showmenu($limitmenuto)
|
||||||
|
|||||||
@ -77,7 +77,8 @@ class MenuLeft {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
* @param db Database handler
|
*
|
||||||
|
* @param DoliDB $DB Database handler
|
||||||
* @param menu_array Table of menu entries to show before entries of menu handler
|
* @param menu_array Table of menu entries to show before entries of menu handler
|
||||||
* @param menu_array_after Table of menu entries to show after entries of menu handler
|
* @param menu_array_after Table of menu entries to show after entries of menu handler
|
||||||
*
|
*
|
||||||
@ -91,8 +92,9 @@ class MenuLeft {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Show menu
|
* Show menu
|
||||||
* \return int Number of menu entries shown
|
*
|
||||||
|
* @return int Number of menu entries shown
|
||||||
*/
|
*/
|
||||||
function showmenu()
|
function showmenu()
|
||||||
{
|
{
|
||||||
|
|||||||
@ -78,6 +78,7 @@ class MenuLeft {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
|
*
|
||||||
* @param db Database handler
|
* @param db Database handler
|
||||||
* @param menu_array Table of menu entries to show before entries of menu handler
|
* @param menu_array Table of menu entries to show before entries of menu handler
|
||||||
* @param menu_array_after Table of menu entries to show after entries of menu handler
|
* @param menu_array_after Table of menu entries to show after entries of menu handler
|
||||||
@ -91,8 +92,9 @@ class MenuLeft {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Show menu
|
* Show menu
|
||||||
* \return int Number of menu entries shown
|
*
|
||||||
|
* @return int Number of menu entries shown
|
||||||
*/
|
*/
|
||||||
function showmenu()
|
function showmenu()
|
||||||
{
|
{
|
||||||
|
|||||||
@ -75,6 +75,7 @@ class MenuLeft {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
|
*
|
||||||
* @param db Database handler
|
* @param db Database handler
|
||||||
* @param menu_array Table of menu entries to show before entries of menu handler
|
* @param menu_array Table of menu entries to show before entries of menu handler
|
||||||
* @param menu_array_after Table of menu entries to show after entries of menu handler
|
* @param menu_array_after Table of menu entries to show after entries of menu handler
|
||||||
@ -88,8 +89,9 @@ class MenuLeft {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Show menu
|
* Show menu
|
||||||
* \return int Number of menu entries shown
|
*
|
||||||
|
* @return int Number of menu entries shown
|
||||||
*/
|
*/
|
||||||
function showmenu()
|
function showmenu()
|
||||||
{
|
{
|
||||||
|
|||||||
@ -75,6 +75,7 @@ class MenuLeft {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
|
*
|
||||||
* @param db Database handler
|
* @param db Database handler
|
||||||
* @param menu_array Table of menu entries to show before entries of menu handler
|
* @param menu_array Table of menu entries to show before entries of menu handler
|
||||||
* @param menu_array_after Table of menu entries to show after entries of menu handler
|
* @param menu_array_after Table of menu entries to show after entries of menu handler
|
||||||
@ -88,8 +89,9 @@ class MenuLeft {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Show menu
|
* Show menu
|
||||||
* \return int Number of menu entries shown
|
*
|
||||||
|
* @return int Number of menu entries shown
|
||||||
*/
|
*/
|
||||||
function showmenu()
|
function showmenu()
|
||||||
{
|
{
|
||||||
|
|||||||
@ -34,7 +34,8 @@ class MenuTop {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
* @param db Dabatase handler
|
*
|
||||||
|
* @param DoliDB $DB Database handler
|
||||||
*/
|
*/
|
||||||
function MenuTop($db)
|
function MenuTop($db)
|
||||||
{
|
{
|
||||||
@ -122,6 +123,7 @@ class MenuLeft {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
|
*
|
||||||
* @param db Database handler
|
* @param db Database handler
|
||||||
* @param menu_array Table of menu entries to show before entries of menu handler
|
* @param menu_array Table of menu entries to show before entries of menu handler
|
||||||
* @param menu_array_after Table of menu entries to show after entries of menu handler
|
* @param menu_array_after Table of menu entries to show after entries of menu handler
|
||||||
@ -135,7 +137,7 @@ class MenuLeft {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Show menu
|
* Show menu
|
||||||
*/
|
*/
|
||||||
function showmenu()
|
function showmenu()
|
||||||
{
|
{
|
||||||
|
|||||||
@ -55,7 +55,7 @@ abstract class DolibarrModules
|
|||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
*
|
*
|
||||||
* @param DB Database access handler
|
* @param DoliDB $DB Database handler
|
||||||
*/
|
*/
|
||||||
function DolibarrModules($DB)
|
function DolibarrModules($DB)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -239,7 +239,7 @@ function commande_delete_preview($db, $commandeid, $commanderef='')
|
|||||||
|
|
||||||
if (!$commanderef)
|
if (!$commanderef)
|
||||||
{
|
{
|
||||||
$com = new Commande($db,"",$commandeid);
|
$com = new Commande($db);
|
||||||
$com->fetch($commandeid);
|
$com->fetch($commandeid);
|
||||||
$commanderef = $com->ref;
|
$commanderef = $com->ref;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -61,7 +61,7 @@ class pdf_einstein extends ModelePDFCommandes
|
|||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
*
|
*
|
||||||
* @param DoliDb $db Database access handler
|
* @param DoliDB $DB Database handler
|
||||||
*/
|
*/
|
||||||
function pdf_einstein($db)
|
function pdf_einstein($db)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -40,8 +40,9 @@ Class pdf_expedition_merou extends ModelePdfExpedition
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Constructor
|
* Constructor
|
||||||
* \param db Database handler
|
*
|
||||||
|
* @param DoliDB $DB Database handler
|
||||||
*/
|
*/
|
||||||
function pdf_expedition_merou($db=0)
|
function pdf_expedition_merou($db=0)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -43,8 +43,9 @@ class doc_generic_invoice_odt extends ModelePDFFactures
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Constructor
|
* Constructor
|
||||||
* \param db Database handler
|
*
|
||||||
|
* @param DoliDB $DB Database handler
|
||||||
*/
|
*/
|
||||||
function doc_generic_invoice_odt($db)
|
function doc_generic_invoice_odt($db)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -61,7 +61,8 @@ class pdf_crabe extends ModelePDFFactures
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
* @param db Database access handler
|
*
|
||||||
|
* @param DoliDB $DB Database handler
|
||||||
*/
|
*/
|
||||||
function pdf_crabe($db)
|
function pdf_crabe($db)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -50,7 +50,7 @@ class pdf_oursin extends ModelePDFFactures
|
|||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
*
|
*
|
||||||
* @param DoliDB $db Handler access data base
|
* @param DoliDB $DB Database handler
|
||||||
*/
|
*/
|
||||||
function pdf_oursin($db)
|
function pdf_oursin($db)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -37,8 +37,10 @@ require_once(DOL_DOCUMENT_ROOT.'/lib/pdf.lib.php');
|
|||||||
class pdf_sirocco extends ModelePDFDeliveryOrder
|
class pdf_sirocco extends ModelePDFDeliveryOrder
|
||||||
{
|
{
|
||||||
|
|
||||||
/** \brief Constructor
|
/**
|
||||||
* \param db Database handler
|
* Constructor
|
||||||
|
*
|
||||||
|
* @param DoliDB $DB Database handler
|
||||||
*/
|
*/
|
||||||
function pdf_sirocco($db)
|
function pdf_sirocco($db)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -42,8 +42,9 @@ class pdf_typhon extends ModelePDFDeliveryOrder
|
|||||||
var $emetteur; // Objet societe qui emet
|
var $emetteur; // Objet societe qui emet
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Constructor
|
* Constructor
|
||||||
* \param db Database handler
|
*
|
||||||
|
* @param DoliDB $DB Database handler
|
||||||
*/
|
*/
|
||||||
function pdf_typhon($db)
|
function pdf_typhon($db)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -39,6 +39,11 @@ class mailing_example extends MailingTargets
|
|||||||
|
|
||||||
|
|
||||||
// CHANGE THIS: Constructor name must be called mailing_xxx with xxx=name of your selector
|
// CHANGE THIS: Constructor name must be called mailing_xxx with xxx=name of your selector
|
||||||
|
/**
|
||||||
|
* Constructor
|
||||||
|
*
|
||||||
|
* @param DoliDB $DB Database handler
|
||||||
|
*/
|
||||||
function mailing_example($DB)
|
function mailing_example($DB)
|
||||||
{
|
{
|
||||||
$this->db=$DB;
|
$this->db=$DB;
|
||||||
|
|||||||
@ -37,7 +37,11 @@ class mailing_framboise extends MailingTargets
|
|||||||
var $db;
|
var $db;
|
||||||
|
|
||||||
|
|
||||||
// CHANGE THIS: Constructor name must be called mailing_xxx with xxx=name of your selector
|
/**
|
||||||
|
* Constructor
|
||||||
|
*
|
||||||
|
* @param DoliDB $DB Database handler
|
||||||
|
*/
|
||||||
function mailing_framboise($DB)
|
function mailing_framboise($DB)
|
||||||
{
|
{
|
||||||
$this->db=$DB;
|
$this->db=$DB;
|
||||||
|
|||||||
@ -36,7 +36,7 @@ class mailing_thirdparties_services_expired extends MailingTargets
|
|||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
*
|
*
|
||||||
* @param $DB
|
* @param DoliDB $DB Database handler
|
||||||
* @return mailing_thirdparties_services_expired
|
* @return mailing_thirdparties_services_expired
|
||||||
*/
|
*/
|
||||||
function mailing_thirdparties_services_expired($DB)
|
function mailing_thirdparties_services_expired($DB)
|
||||||
|
|||||||
@ -97,6 +97,8 @@ class pdf_standard {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
|
*
|
||||||
|
* @param DoliDB $DB Database handler
|
||||||
*/
|
*/
|
||||||
function pdf_standard($db)
|
function pdf_standard($db)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -98,6 +98,8 @@ class pdf_standardlabel {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
|
*
|
||||||
|
* @param DoliDB $DB Database handler
|
||||||
*/
|
*/
|
||||||
function pdf_standard($db)
|
function pdf_standard($db)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -32,8 +32,9 @@ include_once(DOL_DOCUMENT_ROOT ."/includes/modules/DolibarrModules.class.php");
|
|||||||
class modPayBox extends DolibarrModules
|
class modPayBox extends DolibarrModules
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* \brief Constructor. Define names, constants, directories, boxes, permissions
|
* Constructor. Define names, constants, directories, boxes, permissions
|
||||||
* \param DB Database handler
|
*
|
||||||
|
* @param DoliDB $DB Database handler
|
||||||
*/
|
*/
|
||||||
function modPayBox($DB)
|
function modPayBox($DB)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -33,8 +33,9 @@ include_once(DOL_DOCUMENT_ROOT ."/includes/modules/DolibarrModules.class.php");
|
|||||||
class modPaypal extends DolibarrModules
|
class modPaypal extends DolibarrModules
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* \brief Constructor. Define names, constants, directories, boxes, permissions
|
* Constructor. Define names, constants, directories, boxes, permissions
|
||||||
* \param DB Database handler
|
*
|
||||||
|
* @param DoliDB $DB Database handler
|
||||||
*/
|
*/
|
||||||
function modPaypal($DB)
|
function modPaypal($DB)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -40,8 +40,9 @@ class pdf_baleine extends ModelePDFProjects
|
|||||||
var $emetteur; // Objet societe qui emet
|
var $emetteur; // Objet societe qui emet
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Constructor
|
* Constructor
|
||||||
* \param db Database handler
|
*
|
||||||
|
* @param DoliDB $DB Database handler
|
||||||
*/
|
*/
|
||||||
function pdf_baleine($db)
|
function pdf_baleine($db)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -44,7 +44,7 @@ class pdf_propale_azur extends ModelePDFPropales
|
|||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
*
|
*
|
||||||
* @param db Database access handler
|
* @param DoliDB $DB Database handler
|
||||||
*/
|
*/
|
||||||
function pdf_propale_azur($db)
|
function pdf_propale_azur($db)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -44,7 +44,7 @@ class pdf_propale_jaune extends ModelePDFPropales
|
|||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
*
|
*
|
||||||
* @param DoliDB $db Handler access data base
|
* @param DoliDB $DB Database handler
|
||||||
*/
|
*/
|
||||||
function pdf_propale_jaune($db)
|
function pdf_propale_jaune($db)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -41,11 +41,12 @@ class modGeneratePassNone extends ModeleGenPassword
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Constructor
|
* Constructor
|
||||||
* \param db Database handler
|
*
|
||||||
* \param conf Handler de conf
|
* @param DoliDB $DB Database handler
|
||||||
* \param lang Handler de langue
|
* @param conf Handler de conf
|
||||||
* \param user Handler du user connecte
|
* @param lang Handler de langue
|
||||||
|
* @param user Handler du user connecte
|
||||||
*/
|
*/
|
||||||
function modGeneratePassNone($db, $conf, $langs, $user)
|
function modGeneratePassNone($db, $conf, $langs, $user)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -41,11 +41,12 @@ class modGeneratePassStandard extends ModeleGenPassword
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Constructor
|
* Constructor
|
||||||
* \param db Database handler
|
*
|
||||||
* \param conf Handler de conf
|
* @param DoliDB $DB Database handler
|
||||||
* \param lang Handler de langue
|
* @param conf Handler de conf
|
||||||
* \param user Handler du user connecte
|
* @param lang Handler de langue
|
||||||
|
* @param user Handler du user connecte
|
||||||
*/
|
*/
|
||||||
function modGeneratePassStandard($db, $conf, $langs, $user)
|
function modGeneratePassStandard($db, $conf, $langs, $user)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -41,8 +41,9 @@ class doc_generic_odt extends ModeleThirdPartyDoc
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Constructor
|
* Constructor
|
||||||
* \param db Database handler
|
*
|
||||||
|
* @param DoliDB $DB Database handler
|
||||||
*/
|
*/
|
||||||
function doc_generic_odt($db)
|
function doc_generic_odt($db)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -47,7 +47,8 @@ class mod_codeclient_elephant extends ModeleThirdPartyCode
|
|||||||
var $prefixIsRequired; // Le champ prefix du tiers doit etre renseigne quand on utilise {pre}
|
var $prefixIsRequired; // Le champ prefix du tiers doit etre renseigne quand on utilise {pre}
|
||||||
|
|
||||||
|
|
||||||
/** Constructor
|
/**
|
||||||
|
* Constructor
|
||||||
*/
|
*/
|
||||||
function mod_codeclient_elephant()
|
function mod_codeclient_elephant()
|
||||||
{
|
{
|
||||||
|
|||||||
@ -48,7 +48,8 @@ class mod_codeclient_leopard extends ModeleThirdPartyCode
|
|||||||
var $code_auto; // Numerotation automatique
|
var $code_auto; // Numerotation automatique
|
||||||
|
|
||||||
|
|
||||||
/** Constructor
|
/**
|
||||||
|
* Constructor
|
||||||
*/
|
*/
|
||||||
function mod_codeclient_leopard()
|
function mod_codeclient_leopard()
|
||||||
{
|
{
|
||||||
|
|||||||
@ -44,7 +44,8 @@ class mod_codeclient_monkey extends ModeleThirdPartyCode
|
|||||||
var $prefixsupplier='SU';
|
var $prefixsupplier='SU';
|
||||||
|
|
||||||
|
|
||||||
/** Constructor classe
|
/**
|
||||||
|
* Constructor
|
||||||
*/
|
*/
|
||||||
function mod_codeclient_monkey()
|
function mod_codeclient_monkey()
|
||||||
{
|
{
|
||||||
|
|||||||
@ -128,7 +128,7 @@ function supplier_invoice_delete_preview($db, $objectid)
|
|||||||
global $langs,$conf;
|
global $langs,$conf;
|
||||||
require_once(DOL_DOCUMENT_ROOT."/lib/files.lib.php");
|
require_once(DOL_DOCUMENT_ROOT."/lib/files.lib.php");
|
||||||
|
|
||||||
$comfourn = new FactureFournisseur($db,"",$objectid);
|
$comfourn = new FactureFournisseur($db);
|
||||||
$comfourn->fetch($objectid);
|
$comfourn->fetch($objectid);
|
||||||
$client = new Societe($db);
|
$client = new Societe($db);
|
||||||
$client->fetch($comfourn->socid);
|
$client->fetch($comfourn->socid);
|
||||||
|
|||||||
@ -58,7 +58,7 @@ class pdf_canelle extends ModelePDFSuppliersInvoices
|
|||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
*
|
*
|
||||||
* @param DoliDB $db Handler access data base
|
* @param DoliDB $DB Database handler
|
||||||
*/
|
*/
|
||||||
function pdf_canelle($db,$object)
|
function pdf_canelle($db,$object)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -60,7 +60,7 @@ class pdf_muscadet extends ModelePDFSuppliersOrders
|
|||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
*
|
*
|
||||||
* @param DoliDB $db Handler access data base
|
* @param DoliDB $DB Database handler
|
||||||
*/
|
*/
|
||||||
function pdf_muscadet($db)
|
function pdf_muscadet($db)
|
||||||
{
|
{
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user