Merge branch '3.9' of git@github.com:Dolibarr/dolibarr.git into 4.0
Conflicts: htdocs/fourn/class/fournisseur.commande.class.php
This commit is contained in:
commit
17c1b3f1d2
@ -59,6 +59,8 @@ abstract class CommonDocGenerator
|
|||||||
{
|
{
|
||||||
global $conf;
|
global $conf;
|
||||||
|
|
||||||
|
$logotouse=$conf->user->dir_output.'/'.get_exdir($user->id, 2, 0, 1, $user, 'user').'/'.$user->photo;
|
||||||
|
|
||||||
return array(
|
return array(
|
||||||
'myuser_lastname'=>$user->lastname,
|
'myuser_lastname'=>$user->lastname,
|
||||||
'myuser_firstname'=>$user->firstname,
|
'myuser_firstname'=>$user->firstname,
|
||||||
@ -75,7 +77,7 @@ abstract class CommonDocGenerator
|
|||||||
'myuser_fax'=>$user->office_fax,
|
'myuser_fax'=>$user->office_fax,
|
||||||
'myuser_mobile'=>$user->user_mobile,
|
'myuser_mobile'=>$user->user_mobile,
|
||||||
'myuser_email'=>$user->email,
|
'myuser_email'=>$user->email,
|
||||||
'myuser_logo'=>$user->photo,
|
'myuser_logo'=>$logotouse,
|
||||||
'myuser_job'=>$user->job,
|
'myuser_job'=>$user->job,
|
||||||
'myuser_web'=>'' // url not exist in $user object
|
'myuser_web'=>'' // url not exist in $user object
|
||||||
);
|
);
|
||||||
|
|||||||
@ -211,7 +211,7 @@ class pdf_muscadet extends ModelePDFSuppliersOrders
|
|||||||
$hookmanager->initHooks(array('pdfgeneration'));
|
$hookmanager->initHooks(array('pdfgeneration'));
|
||||||
$parameters=array('file'=>$file,'object'=>$object,'outputlangs'=>$outputlangs);
|
$parameters=array('file'=>$file,'object'=>$object,'outputlangs'=>$outputlangs);
|
||||||
global $action;
|
global $action;
|
||||||
$reshook=$hookmanager->executeHooks('beforePDFCreation',$parameters,$this,$action); // Note that $action and $object may have been modified by some hooks
|
$reshook=$hookmanager->executeHooks('beforePDFCreation',$parameters,$object,$action); // Note that $action and $object may have been modified by some hooks
|
||||||
|
|
||||||
$nblignes = count($object->lines);
|
$nblignes = count($object->lines);
|
||||||
|
|
||||||
|
|||||||
@ -1007,7 +1007,7 @@ class CommandeFournisseur extends CommonOrder
|
|||||||
{
|
{
|
||||||
$this->statut = 3;
|
$this->statut = 3;
|
||||||
$this->methode_commande_id = $methode;
|
$this->methode_commande_id = $methode;
|
||||||
$this->date_commande = $this->db->idate($date);
|
$this->date_commande = $date;
|
||||||
|
|
||||||
// Call trigger
|
// Call trigger
|
||||||
$result=$this->call_trigger('ORDER_SUPPLIER_SUBMIT',$user);
|
$result=$this->call_trigger('ORDER_SUPPLIER_SUBMIT',$user);
|
||||||
@ -1035,7 +1035,7 @@ class CommandeFournisseur extends CommonOrder
|
|||||||
$error++;
|
$error++;
|
||||||
$this->error = $langs->trans('NotAuthorized');
|
$this->error = $langs->trans('NotAuthorized');
|
||||||
$this->errors[] = $langs->trans('NotAuthorized');
|
$this->errors[] = $langs->trans('NotAuthorized');
|
||||||
dol_syslog(get_class($this)."::commande User not Authorized", LOG_ERR);
|
dol_syslog(get_class($this)."::commande User not Authorized", LOG_WARNING);
|
||||||
}
|
}
|
||||||
|
|
||||||
return ($error ? -1 : 1);
|
return ($error ? -1 : 1);
|
||||||
|
|||||||
@ -560,6 +560,7 @@ TextUsedInTheMessageBody=Email body
|
|||||||
SendAcknowledgementByMail=Send confirmation email
|
SendAcknowledgementByMail=Send confirmation email
|
||||||
EMail=E-mail
|
EMail=E-mail
|
||||||
NoEMail=No email
|
NoEMail=No email
|
||||||
|
Email=Email
|
||||||
NoMobilePhone=No mobile phone
|
NoMobilePhone=No mobile phone
|
||||||
Owner=Owner
|
Owner=Owner
|
||||||
FollowingConstantsWillBeSubstituted=The following constants will be replaced with the corresponding value.
|
FollowingConstantsWillBeSubstituted=The following constants will be replaced with the corresponding value.
|
||||||
|
|||||||
@ -157,7 +157,7 @@ if ($socid > 0)
|
|||||||
$sql.= ", ".MAIN_DB_PREFIX."facturedet as d";
|
$sql.= ", ".MAIN_DB_PREFIX."facturedet as d";
|
||||||
$sql.= " WHERE f.fk_soc = s.rowid";
|
$sql.= " WHERE f.fk_soc = s.rowid";
|
||||||
$sql.= " AND f.fk_statut > 0";
|
$sql.= " AND f.fk_statut > 0";
|
||||||
$sql.= " AND s.entity = ".$conf->entity;
|
$sql.= " AND f.entity = ".$conf->entity;
|
||||||
$sql.= " AND d.fk_facture = f.rowid";
|
$sql.= " AND d.fk_facture = f.rowid";
|
||||||
$sql.= " AND f.fk_soc = $socid";
|
$sql.= " AND f.fk_soc = $socid";
|
||||||
$sql.= " AND d.buy_price_ht IS NOT NULL";
|
$sql.= " AND d.buy_price_ht IS NOT NULL";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user