Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/3.9' into 3.9_bug
Browse files Browse the repository at this point in the history
  • Loading branch information
hregis committed Nov 4, 2016
2 parents 718adef + b8f8b6d commit e33654c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
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
2 changes: 2 additions & 0 deletions htdocs/fourn/class/fournisseur.commande.class.php
Expand Up @@ -993,6 +993,8 @@ function commande($user, $date, $methode, $comment='')
$this->date_commande = $this->db->idate($date);
$result = 1;
$this->log($user, 3, $date, $comment);
$this->date_commande = $date;
$this->methode_commande = $methode;
}
else
{
Expand Down
1 change: 1 addition & 0 deletions htdocs/langs/en_US/main.lang
Expand Up @@ -585,6 +585,7 @@ TextUsedInTheMessageBody=Email body
SendAcknowledgementByMail=Send Ack. by email
EMail=E-mail
NoEMail=No email
Email=Email
NoMobilePhone=No mobile phone
Owner=Owner
DetectedVersion=Detected version
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 e33654c

Please sign in to comment.