translations
This commit is contained in:
parent
a597d6c379
commit
7349862b64
@ -481,7 +481,7 @@ class CommandeFournisseur extends CommonOrder
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->error='Not Authorized';
|
||||
$this->error='NotAuthorized';
|
||||
dol_syslog(get_class($this)."::valid ".$this->error, LOG_ERR);
|
||||
return -1;
|
||||
}
|
||||
@ -936,6 +936,7 @@ class CommandeFournisseur extends CommonOrder
|
||||
*/
|
||||
function commande($user, $date, $methode, $comment='')
|
||||
{
|
||||
global $langs;
|
||||
dol_syslog(get_class($this)."::commande");
|
||||
$result = 0;
|
||||
if ($user->rights->fournisseur->commande->commander)
|
||||
@ -962,8 +963,8 @@ class CommandeFournisseur extends CommonOrder
|
||||
else
|
||||
{
|
||||
$result = -1;
|
||||
$this->error = 'Not Authorized';
|
||||
$this->errors[] = 'Not Authorized';
|
||||
$this->error = $langs->trans('NotAuthorized');
|
||||
$this->errors[] = $lanfs->trans('NotAuthorized');
|
||||
dol_syslog(get_class($this)."::commande User not Authorized", LOG_ERR);
|
||||
}
|
||||
return $result ;
|
||||
@ -1770,7 +1771,7 @@ class CommandeFournisseur extends CommonOrder
|
||||
*/
|
||||
function Livraison($user, $date, $type, $comment)
|
||||
{
|
||||
global $conf;
|
||||
global $conf, $langs;
|
||||
|
||||
$result = 0;
|
||||
$error = 0;
|
||||
@ -1852,8 +1853,8 @@ class CommandeFournisseur extends CommonOrder
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->error = 'Not Authorized';
|
||||
$this->errors[] = 'Not Authorized';
|
||||
$this->error = $langs->trans('NotAuthorized');
|
||||
$this->errors[] = $langs->trans('NotAuthorized');
|
||||
dol_syslog(get_class($this)."::Livraison Not Authorized");
|
||||
$result = -3;
|
||||
}
|
||||
@ -2003,6 +2004,7 @@ class CommandeFournisseur extends CommonOrder
|
||||
|
||||
if (! $error)
|
||||
{
|
||||
$this->statut = $status;
|
||||
$this->db->commit();
|
||||
return 1;
|
||||
}
|
||||
|
||||
@ -59,6 +59,7 @@ ErrorCantLoadUserFromDolibarrDatabase=Failed to find user <b>%s</b> in Dolibarr
|
||||
ErrorNoVATRateDefinedForSellerCountry=Error, no vat rates defined for country '%s'.
|
||||
ErrorNoSocialContributionForSellerCountry=Error, no social/fiscal taxes type defined for country '%s'.
|
||||
ErrorFailedToSaveFile=Error, failed to save file.
|
||||
NotAuthorized=You are not authorized to do that.
|
||||
SetDate=Set date
|
||||
SelectDate=Select a date
|
||||
SeeAlso=See also %s
|
||||
|
||||
Loading…
Reference in New Issue
Block a user