Skip to content

Commit

Permalink
Merge branch '3.9' of git@github.com:Dolibarr/dolibarr.git into 4.0
Browse files Browse the repository at this point in the history
Conflicts:
	htdocs/fourn/class/fournisseur.commande.class.php
  • Loading branch information
eldy committed Oct 29, 2016
2 parents 7c75d98 + b8f8b6d commit 17c1b3f
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
4 changes: 3 additions & 1 deletion htdocs/core/class/commondocgenerator.class.php
Expand Up @@ -59,6 +59,8 @@ function get_substitutionarray_user($user,$outputlangs)
{
global $conf;

$logotouse=$conf->user->dir_output.'/'.get_exdir($user->id, 2, 0, 1, $user, 'user').'/'.$user->photo;

return array(
'myuser_lastname'=>$user->lastname,
'myuser_firstname'=>$user->firstname,
Expand All @@ -75,7 +77,7 @@ function get_substitutionarray_user($user,$outputlangs)
'myuser_fax'=>$user->office_fax,
'myuser_mobile'=>$user->user_mobile,
'myuser_email'=>$user->email,
'myuser_logo'=>$user->photo,
'myuser_logo'=>$logotouse,
'myuser_job'=>$user->job,
'myuser_web'=>'' // url not exist in $user object
);
Expand Down
Expand Up @@ -211,7 +211,7 @@ function write_file($object,$outputlangs='',$srctemplatepath='',$hidedetails=0,$
$hookmanager->initHooks(array('pdfgeneration'));
$parameters=array('file'=>$file,'object'=>$object,'outputlangs'=>$outputlangs);
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);

Expand Down
4 changes: 2 additions & 2 deletions htdocs/fourn/class/fournisseur.commande.class.php
Expand Up @@ -1007,7 +1007,7 @@ function commande($user, $date, $methode, $comment='')
{
$this->statut = 3;
$this->methode_commande_id = $methode;
$this->date_commande = $this->db->idate($date);
$this->date_commande = $date;

// Call trigger
$result=$this->call_trigger('ORDER_SUPPLIER_SUBMIT',$user);
Expand Down Expand Up @@ -1035,7 +1035,7 @@ function commande($user, $date, $methode, $comment='')
$error++;
$this->error = $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);
Expand Down
1 change: 1 addition & 0 deletions htdocs/langs/en_US/main.lang
Expand Up @@ -560,6 +560,7 @@ TextUsedInTheMessageBody=Email body
SendAcknowledgementByMail=Send confirmation email
EMail=E-mail
NoEMail=No email
Email=Email
NoMobilePhone=No mobile phone
Owner=Owner
FollowingConstantsWillBeSubstituted=The following constants will be replaced with the corresponding value.
Expand Down
2 changes: 1 addition & 1 deletion htdocs/margin/tabs/thirdpartyMargins.php
Expand Up @@ -157,7 +157,7 @@
$sql.= ", ".MAIN_DB_PREFIX."facturedet as d";
$sql.= " WHERE f.fk_soc = s.rowid";
$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 f.fk_soc = $socid";
$sql.= " AND d.buy_price_ht IS NOT NULL";
Expand Down

0 comments on commit 17c1b3f

Please sign in to comment.