Skip to content

Commit

Permalink
Merge branch '3.9' of git@github.com:Dolibarr/dolibarr.git into 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Feb 21, 2016
2 parents c1d7f5a + 37a2d26 commit 110c5b5
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions htdocs/fourn/class/fournisseur.commande.class.php
Expand Up @@ -141,7 +141,7 @@ function __construct($db)
$this->statuts[5] = 'StatusOrderReceivedAll';
$this->statuts[6] = 'StatusOrderCanceled'; // Approved->Canceled
$this->statuts[7] = 'StatusOrderCanceled'; // Process running->canceled
//$this->statuts[8] = 'StatusOrderBilled'; // Everything is finish, order received totally and bill received
//$this->statuts[8] = 'StatusOrderBilled'; // Everything is finished, order received totally and bill received
$this->statuts[9] = 'StatusOrderRefused';
}

Expand Down Expand Up @@ -585,8 +585,8 @@ function LibStatut($statut,$mode=0,$billed=0)
* Return clicable name (with picto eventually)
*
* @param int $withpicto 0=No picto, 1=Include picto into link, 2=Only picto
* @param string $option Sur quoi pointe le lien
* @return string Chaine avec URL
* @param string $option On what the link points
* @return string Chain with URL
*/
function getNomUrl($withpicto=0,$option='')
{
Expand Down Expand Up @@ -621,8 +621,8 @@ function getNomUrl($withpicto=0,$option='')
* Returns the following order reference not used depending on the numbering model activated
* defined within COMMANDE_SUPPLIER_ADDON_NUMBER
*
* @param Societe $soc objet societe
* @return string reference libre pour la facture
* @param Company $soc company object
* @return string free reference for the invoice
*/
function getNextNumRef($soc)
{
Expand Down Expand Up @@ -716,7 +716,7 @@ function approve($user, $idwarehouse=0, $secondlevel=0)

$this->db->begin();

// Definition du nom de modele de numerotation de commande
// Definition of order numbering model name
$soc = new Societe($this->db);
$soc->fetch($this->fourn_id);

Expand Down Expand Up @@ -904,7 +904,7 @@ function refuse($user)

/**
* Cancel an approved order.
* L'annulation se fait apres l'approbation
* The cancellation is done after approval
*
* @param User $user User making action
* @param int $idwarehouse Id warehouse to use for stock change (not used for supplier orders).
Expand Down Expand Up @@ -1028,7 +1028,7 @@ function create($user, $notrigger=0)
// Clean parameters
if (empty($this->source)) $this->source = 0;

/* On positionne en mode brouillon la commande */
/* One positions in draft mode the order */
$this->brouillon = 1;

$sql = "INSERT INTO ".MAIN_DB_PREFIX."commande_fournisseur (";
Expand Down Expand Up @@ -1078,7 +1078,7 @@ function create($user, $notrigger=0)
$num=count($this->lines);

/*
* Insertion du detail des produits dans la base
* integration of products detail in the database
*/
for ($i=0;$i<$num;$i++)
{
Expand Down

0 comments on commit 110c5b5

Please sign in to comment.