Merge remote-tracking branch 'origin/3.6' into develop
Conflicts: ChangeLog htdocs/fourn/class/fournisseur.commande.class.php
This commit is contained in:
commit
f64cb085a7
@ -129,7 +129,7 @@ case "$1" in
|
|||||||
then
|
then
|
||||||
# Create an empty conf.php with permission to web server
|
# Create an empty conf.php with permission to web server
|
||||||
setup_empty_conf
|
setup_empty_conf
|
||||||
else
|
#else
|
||||||
# File already exist. We add params not found.
|
# File already exist. We add params not found.
|
||||||
#echo Add new params to overwrite path to use shared libraries/fonts
|
#echo Add new params to overwrite path to use shared libraries/fonts
|
||||||
#grep -q -c "dolibarr_lib_ADODB_PATH" $config || [ ! -d "/usr/share/php/adodb" ] || echo "<?php \$dolibarr_lib_ADODB_PATH='/usr/share/php/adodb'; ?>" >> $config
|
#grep -q -c "dolibarr_lib_ADODB_PATH" $config || [ ! -d "/usr/share/php/adodb" ] || echo "<?php \$dolibarr_lib_ADODB_PATH='/usr/share/php/adodb'; ?>" >> $config
|
||||||
|
|||||||
@ -32,7 +32,7 @@ AppPublisherURL=http://www.nltechno.com
|
|||||||
AppSupportURL=http://www.dolibarr.org
|
AppSupportURL=http://www.dolibarr.org
|
||||||
AppUpdatesURL=http://www.dolibarr.org
|
AppUpdatesURL=http://www.dolibarr.org
|
||||||
AppComments=DoliWamp includes Dolibarr, Apache, PHP and Mysql softwares.
|
AppComments=DoliWamp includes Dolibarr, Apache, PHP and Mysql softwares.
|
||||||
AppCopyright=Copyright (C) 2008-2013 Laurent Destailleur, NLTechno
|
AppCopyright=Copyright (C) 2008-2014 Laurent Destailleur, NLTechno
|
||||||
DefaultDirName=c:\dolibarr
|
DefaultDirName=c:\dolibarr
|
||||||
DefaultGroupName=Dolibarr
|
DefaultGroupName=Dolibarr
|
||||||
;LicenseFile=COPYING
|
;LicenseFile=COPYING
|
||||||
|
|||||||
@ -55,6 +55,8 @@ print '</div>';
|
|||||||
print '<div class="principal">';
|
print '<div class="principal">';
|
||||||
|
|
||||||
$page=GETPOST('menu','alpha');
|
$page=GETPOST('menu','alpha');
|
||||||
|
if (empty($page)) $page='facturation';
|
||||||
|
|
||||||
if (in_array(
|
if (in_array(
|
||||||
$page,
|
$page,
|
||||||
array(
|
array(
|
||||||
|
|||||||
@ -194,7 +194,7 @@ class CommandeFournisseur extends CommonOrder
|
|||||||
$this->extraparams = (array) json_decode($obj->extraparams, true);
|
$this->extraparams = (array) json_decode($obj->extraparams, true);
|
||||||
|
|
||||||
$this->db->free($resql);
|
$this->db->free($resql);
|
||||||
|
|
||||||
// Retreive all extrafield
|
// Retreive all extrafield
|
||||||
// fetch optionals attributes and labels
|
// fetch optionals attributes and labels
|
||||||
require_once(DOL_DOCUMENT_ROOT.'/core/class/extrafields.class.php');
|
require_once(DOL_DOCUMENT_ROOT.'/core/class/extrafields.class.php');
|
||||||
@ -658,7 +658,7 @@ class CommandeFournisseur extends CommonOrder
|
|||||||
{
|
{
|
||||||
// Call trigger
|
// Call trigger
|
||||||
$result=$this->call_trigger('ORDER_SUPPLIER_APPROVE',$user);
|
$result=$this->call_trigger('ORDER_SUPPLIER_APPROVE',$user);
|
||||||
if ($result < 0) $error++;
|
if ($result < 0) $error++;
|
||||||
// End call triggers
|
// End call triggers
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -722,7 +722,7 @@ class CommandeFournisseur extends CommonOrder
|
|||||||
$error++;
|
$error++;
|
||||||
$this->db->rollback();
|
$this->db->rollback();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
$this->db->commit();
|
$this->db->commit();
|
||||||
// End call triggers
|
// End call triggers
|
||||||
}
|
}
|
||||||
@ -774,7 +774,7 @@ class CommandeFournisseur extends CommonOrder
|
|||||||
|
|
||||||
// Call trigger
|
// Call trigger
|
||||||
$result=$this->call_trigger('ORDER_SUPPLIER_CANCEL',$user);
|
$result=$this->call_trigger('ORDER_SUPPLIER_CANCEL',$user);
|
||||||
if ($result < 0) $error++;
|
if ($result < 0) $error++;
|
||||||
// End call triggers
|
// End call triggers
|
||||||
|
|
||||||
if ($error == 0)
|
if ($error == 0)
|
||||||
@ -967,7 +967,7 @@ class CommandeFournisseur extends CommonOrder
|
|||||||
{
|
{
|
||||||
// Call trigger
|
// Call trigger
|
||||||
$result=$this->call_trigger('ORDER_SUPPLIER_CREATE',$user);
|
$result=$this->call_trigger('ORDER_SUPPLIER_CREATE',$user);
|
||||||
if ($result < 0)
|
if ($result < 0)
|
||||||
{
|
{
|
||||||
$this->db->rollback();
|
$this->db->rollback();
|
||||||
return -1;
|
return -1;
|
||||||
@ -1037,7 +1037,7 @@ class CommandeFournisseur extends CommonOrder
|
|||||||
|
|
||||||
// Call trigger
|
// Call trigger
|
||||||
$result=$this->call_trigger('ORDER_SUPPLIER_CLONE',$user);
|
$result=$this->call_trigger('ORDER_SUPPLIER_CLONE',$user);
|
||||||
if ($result < 0) $error++;
|
if ($result < 0) $error++;
|
||||||
// End call triggers
|
// End call triggers
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1216,7 +1216,7 @@ class CommandeFournisseur extends CommonOrder
|
|||||||
global $conf, $langs, $user;
|
global $conf, $langs, $user;
|
||||||
// Call trigger
|
// Call trigger
|
||||||
$result=$this->call_trigger('LINEORDER_SUPPLIER_CREATE',$user);
|
$result=$this->call_trigger('LINEORDER_SUPPLIER_CREATE',$user);
|
||||||
if ($result < 0)
|
if ($result < 0)
|
||||||
{
|
{
|
||||||
$this->db->rollback();
|
$this->db->rollback();
|
||||||
return -1;
|
return -1;
|
||||||
@ -1285,7 +1285,7 @@ class CommandeFournisseur extends CommonOrder
|
|||||||
global $conf, $langs, $user;
|
global $conf, $langs, $user;
|
||||||
// Call trigger
|
// Call trigger
|
||||||
$result=$this->call_trigger('LINEORDER_SUPPLIER_DISPATCH',$user);
|
$result=$this->call_trigger('LINEORDER_SUPPLIER_DISPATCH',$user);
|
||||||
if ($result < 0)
|
if ($result < 0)
|
||||||
{
|
{
|
||||||
$this->db->rollback();
|
$this->db->rollback();
|
||||||
return -1;
|
return -1;
|
||||||
@ -1347,6 +1347,7 @@ class CommandeFournisseur extends CommonOrder
|
|||||||
*/
|
*/
|
||||||
function deleteline($idline, $notrigger=0)
|
function deleteline($idline, $notrigger=0)
|
||||||
{
|
{
|
||||||
|
global $user,$langs,$conf;
|
||||||
if ($this->statut == 0)
|
if ($this->statut == 0)
|
||||||
{
|
{
|
||||||
$this->db->begin();
|
$this->db->begin();
|
||||||
@ -1355,7 +1356,7 @@ class CommandeFournisseur extends CommonOrder
|
|||||||
{
|
{
|
||||||
// Call trigger
|
// Call trigger
|
||||||
$result=$this->call_trigger('LINEORDER_SUPPLIER_DELETE',$user);
|
$result=$this->call_trigger('LINEORDER_SUPPLIER_DELETE',$user);
|
||||||
if ($result < 0) $error++;
|
if ($result < 0) $error++;
|
||||||
// End call triggers
|
// End call triggers
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1403,7 +1404,7 @@ class CommandeFournisseur extends CommonOrder
|
|||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';
|
||||||
|
|
||||||
$error = 0;
|
$error = 0;
|
||||||
|
|
||||||
// Call trigger
|
// Call trigger
|
||||||
$result=$this->call_trigger('ORDER_SUPPLIER_DELETE',$user);
|
$result=$this->call_trigger('ORDER_SUPPLIER_DELETE',$user);
|
||||||
if ($result < 0)
|
if ($result < 0)
|
||||||
@ -1412,7 +1413,7 @@ class CommandeFournisseur extends CommonOrder
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
// End call triggers
|
// End call triggers
|
||||||
|
|
||||||
|
|
||||||
$this->db->begin();
|
$this->db->begin();
|
||||||
|
|
||||||
@ -1807,7 +1808,7 @@ class CommandeFournisseur extends CommonOrder
|
|||||||
global $conf, $langs, $user;
|
global $conf, $langs, $user;
|
||||||
// Call trigger
|
// Call trigger
|
||||||
$result=$this->call_trigger('LINEORDER_SUPPLIER_UPDATE',$user);
|
$result=$this->call_trigger('LINEORDER_SUPPLIER_UPDATE',$user);
|
||||||
if ($result < 0)
|
if ($result < 0)
|
||||||
{
|
{
|
||||||
$this->db->rollback();
|
$this->db->rollback();
|
||||||
return -1;
|
return -1;
|
||||||
@ -1951,8 +1952,8 @@ class CommandeFournisseur extends CommonOrder
|
|||||||
while ($obj=$this->db->fetch_object($resql))
|
while ($obj=$this->db->fetch_object($resql))
|
||||||
{
|
{
|
||||||
$this->nbtodo++;
|
$this->nbtodo++;
|
||||||
|
|
||||||
$date_to_test = empty($obj->delivery_date) ? $obj->datec : $obj->delivery_date;
|
$date_to_test = empty($obj->delivery_date) ? $obj->datec : $obj->delivery_date;
|
||||||
if ($obj->fk_statut != 3 && $this->db->jdate($date_to_test) < ($now - $conf->commande->fournisseur->warning_delay)) $this->nbtodolate++;
|
if ($obj->fk_statut != 3 && $this->db->jdate($date_to_test) < ($now - $conf->commande->fournisseur->warning_delay)) $this->nbtodolate++;
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
|
|||||||
@ -15,7 +15,7 @@ body
|
|||||||
/* Remove the background color to make it transparent */
|
/* Remove the background color to make it transparent */
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
|
|
||||||
margin: 20px;
|
margin: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.cke_editable
|
.cke_editable
|
||||||
|
|||||||
@ -297,6 +297,9 @@ create table llx_c_type_resource
|
|||||||
active tinyint DEFAULT 1 NOT NULL
|
active tinyint DEFAULT 1 NOT NULL
|
||||||
)ENGINE=innodb;
|
)ENGINE=innodb;
|
||||||
|
|
||||||
|
-- Fix llx_c_type_resource when you update from a 3.6-beta
|
||||||
|
ALTER TABLE llx_c_type_resource CHANGE libelle label VARCHAR(64) NOT NULL;
|
||||||
|
|
||||||
ALTER TABLE llx_c_type_resource ADD UNIQUE INDEX uk_c_type_resource_id (label, code);
|
ALTER TABLE llx_c_type_resource ADD UNIQUE INDEX uk_c_type_resource_id (label, code);
|
||||||
|
|
||||||
-- Fix :: account_parent must be an int, not an account number
|
-- Fix :: account_parent must be an int, not an account number
|
||||||
|
|||||||
@ -80,11 +80,12 @@ ContractStatusClosed=Closed
|
|||||||
ContractStatusRunning=Running
|
ContractStatusRunning=Running
|
||||||
ContractStatusExpired=expired
|
ContractStatusExpired=expired
|
||||||
ContractStatusOnHold=Not running
|
ContractStatusOnHold=Not running
|
||||||
ContractStatusToRun=A mettre en service
|
ContractStatusToRun=To get running
|
||||||
ContractNotRunning=This contract is not running
|
ContractNotRunning=This contract is not running
|
||||||
ErrorProductAlreadyExists=A product with reference %s already exists.
|
ErrorProductAlreadyExists=A product with reference %s already exists.
|
||||||
ErrorProductBadRefOrLabel=Wrong value for reference or label.
|
ErrorProductBadRefOrLabel=Wrong value for reference or label.
|
||||||
ErrorProductClone=There was a problem while trying to clone the product or service.
|
ErrorProductClone=There was a problem while trying to clone the product or service.
|
||||||
|
ErrorPriceCantBeLowerThanMinPrice=Error Price Can't Be Lower Than Minimum Price.
|
||||||
Suppliers=Suppliers
|
Suppliers=Suppliers
|
||||||
SupplierRef=Supplier's product ref.
|
SupplierRef=Supplier's product ref.
|
||||||
ShowProduct=Show product
|
ShowProduct=Show product
|
||||||
|
|||||||
@ -1205,7 +1205,7 @@ class Product extends CommonObject
|
|||||||
if ($newvat == '') $newvat=$this->tva_tx;
|
if ($newvat == '') $newvat=$this->tva_tx;
|
||||||
if (! empty($newminprice) && ($newminprice > $newprice))
|
if (! empty($newminprice) && ($newminprice > $newprice))
|
||||||
{
|
{
|
||||||
$this->error='ErrorPricCanBeLowerThanMinPrice';
|
$this->error='ErrorPriceCantBeLowerThanMinPrice';
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -141,7 +141,7 @@ if ($object->id)
|
|||||||
print '</div>';
|
print '</div>';
|
||||||
|
|
||||||
$modulepart = 'produit';
|
$modulepart = 'produit';
|
||||||
$permission = $user->rights->produit->creer;
|
$permission = (($object->type == 0 && $user->rights->produit->creer) || ($object->type == 1 && $user->rights->service->creer));
|
||||||
$param = '&id=' . $object->id;
|
$param = '&id=' . $object->id;
|
||||||
include_once DOL_DOCUMENT_ROOT . '/core/tpl/document_actions_post_headers.tpl.php';
|
include_once DOL_DOCUMENT_ROOT . '/core/tpl/document_actions_post_headers.tpl.php';
|
||||||
}
|
}
|
||||||
|
|||||||
@ -244,6 +244,10 @@ a:hover { text-decoration: underline; color: #000000;}
|
|||||||
input:focus, textarea:focus, button:focus, select:focus {
|
input:focus, textarea:focus, button:focus, select:focus {
|
||||||
box-shadow: 0 0 4px #8091BF;
|
box-shadow: 0 0 4px #8091BF;
|
||||||
}
|
}
|
||||||
|
textarea.cke_source:focus
|
||||||
|
{
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
input, input.flat, textarea, textarea.flat, form.flat select, select.flat {
|
input, input.flat, textarea, textarea.flat, form.flat select, select.flat {
|
||||||
font-size: <?php print $fontsize ?>px;
|
font-size: <?php print $fontsize ?>px;
|
||||||
@ -2555,6 +2559,10 @@ A.none, A.none:active, A.none:visited, A.none:hover {
|
|||||||
/* CKEditor */
|
/* CKEditor */
|
||||||
/* ============================================================================== */
|
/* ============================================================================== */
|
||||||
|
|
||||||
|
.cke_editable
|
||||||
|
{
|
||||||
|
margin: 5px !important;
|
||||||
|
}
|
||||||
.cke_editor table, .cke_editor tr, .cke_editor td
|
.cke_editor table, .cke_editor tr, .cke_editor td
|
||||||
{
|
{
|
||||||
border: 0px solid #FF0000 !important;
|
border: 0px solid #FF0000 !important;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user