Merge pull request #1215 from GPCsolutions/develop-review

Develop review
This commit is contained in:
Laurent Destailleur 2013-09-05 13:51:28 -07:00
commit d493dc8513
30 changed files with 115 additions and 149 deletions

View File

@ -55,10 +55,7 @@ p {
/* ------------------- Menu ------------------- */ /* ------------------- Menu ------------------- */
.menu_principal { .menu_principal {
margin: 0 auto; margin: 0 20px 20px 15px;
margin-left: 15px;
margin-bottom: 20px;
margin-right: 20px;
font-size: 14px; font-size: 14px;
width: 735px; width: 735px;
height: 84px; height: 84px;
@ -77,9 +74,8 @@ p {
.menu { .menu {
margin: 0; margin: 0;
padding: 0;
list-style-type: none; list-style-type: none;
padding-top: 10px; padding: 10px 0 0;
} }
.menu li { .menu li {
@ -143,8 +139,7 @@ p {
} }
p.titre { p.titre {
margin: 0; margin: 0 0 20px;
margin-bottom: 20px;
text-align: center; text-align: center;
font-weight: bold; font-weight: bold;
font-size: 1.4em; font-size: 1.4em;
@ -153,10 +148,9 @@ p.titre {
} }
.cadre_article { .cadre_article {
margin: 0 auto;
width: 180px; width: 180px;
text-align: center; text-align: center;
margin-bottom: 10px; margin: 0 auto 10px;
padding-bottom: 10px; padding-bottom: 10px;
border-bottom: 1px solid #eee; border-bottom: 1px solid #eee;
} }
@ -205,9 +199,8 @@ p.titre {
} }
.formulaire_login table { .formulaire_login table {
margin: 0 auto;
padding-left: 60px; padding-left: 60px;
margin-bottom: 20px; margin: 0 auto 20px;
background: url('../img/login.png') bottom left no-repeat; background: url('../img/login.png') bottom left no-repeat;
} }
@ -430,8 +423,7 @@ background-image: -webkit-gradient( linear, left top, left bottom, color-stop(0,
/* Titre */ /* Titre */
.err_titre { .err_titre {
font-weight: bold; font-weight: bold;
margin: 0; margin: 0 0 10px;
margin-bottom: 10px;
padding: 0; padding: 0;
} }
@ -454,8 +446,7 @@ background-image: -webkit-gradient( linear, left top, left bottom, color-stop(0,
/* Titre */ /* Titre */
.msg_titre { .msg_titre {
font-weight: bold; font-weight: bold;
margin: 0; margin: 0 0 10px;
margin-bottom: 10px;
padding: 0; padding: 0;
} }

View File

@ -508,7 +508,7 @@ class Categorie
include_once DOL_DOCUMENT_ROOT . '/core/class/interfaces.class.php'; include_once DOL_DOCUMENT_ROOT . '/core/class/interfaces.class.php';
$interface=new Interfaces($this->db); $interface=new Interfaces($this->db);
$result=$interface->run_triggers('CATEGORY_UNLINK',$this,$user,$langs,$conf); $result=$interface->run_triggers('CATEGORY_UNLINK',$this,$user,$langs,$conf);
if ($result < 0) { $error++; $this->errors=$interface->errors; $this->error=$this->error; } if ($result < 0) { $error++; $this->errors=$interface->errors; }
// Fin appel triggers // Fin appel triggers
if (! $error) return 1; if (! $error) return 1;

View File

@ -2868,7 +2868,7 @@ class Facture extends CommonInvoice
$sql.= ' WHERE fk_facture = '.$this->id; $sql.= ' WHERE fk_facture = '.$this->id;
$sql.= ' AND traite = 0'; $sql.= ' AND traite = 0';
dol_syslot(get_clas($this)."::demande_prelevement sql=".$sql); dol_syslog(get_class($this)."::demande_prelevement sql=".$sql);
$resql=$this->db->query($sql); $resql=$this->db->query($sql);
if ($resql) if ($resql)
{ {

View File

@ -83,7 +83,7 @@ function pt ($db, $sql, $date)
$db->free($result); $db->free($result);
} }
else { else {
dolibar_print_error($db); dol_print_error($db);
} }
} }

View File

@ -405,10 +405,9 @@ class Paiement extends CommonObject
$acc = new Account($this->db); $acc = new Account($this->db);
$result=$acc->fetch($this->fk_account); $result=$acc->fetch($this->fk_account);
$totalamount=$this->amount; if (empty($this->amount)) $totalamount=$this->total; // For backward compatibility
if (empty($totalamount)) $totalamount=$this->total; // For backward compatibility if ($mode == 'payment') $totalamount=$this->amount;
if ($mode == 'payment') $totalamount=$totalamount; if ($mode == 'payment_supplier') $totalamount=-$this->amount;
if ($mode == 'payment_supplier') $totalamount=-$totalamount;
// Insert payment into llx_bank // Insert payment into llx_bank
$bank_line_id = $acc->addline( $bank_line_id = $acc->addline(

View File

@ -88,7 +88,7 @@ function pt ($db, $sql, $date)
$db->free($result); $db->free($result);
} }
else { else {
dolibar_print_error($db); dol_print_error($db);
} }
} }

View File

@ -97,7 +97,6 @@ class FormFile
$max=$conf->global->MAIN_UPLOAD_DOC; // En Kb $max=$conf->global->MAIN_UPLOAD_DOC; // En Kb
$maxphp=@ini_get('upload_max_filesize'); // En inconnu $maxphp=@ini_get('upload_max_filesize'); // En inconnu
if (preg_match('/m$/i',$maxphp)) $maxphp=$maxphp*1024; if (preg_match('/m$/i',$maxphp)) $maxphp=$maxphp*1024;
if (preg_match('/k$/i',$maxphp)) $maxphp=$maxphp;
// Now $max and $maxphp are in Kb // Now $max and $maxphp are in Kb
if ($maxphp > 0) $max=min($max,$maxphp); if ($maxphp > 0) $max=min($max,$maxphp);

View File

@ -685,7 +685,7 @@ class DoliDBSqlite
*/ */
function escape($stringtoencode) function escape($stringtoencode)
{ {
return PDO::quote($stringtoencode); return $this->db->quote($stringtoencode);
} }
/** /**
@ -856,7 +856,7 @@ class DoliDBSqlite
*/ */
function last_insert_id($tab,$fieldid='rowid') function last_insert_id($tab,$fieldid='rowid')
{ {
return PDO::lastInsertId(); return $this->db->lastInsertId();
} }
/** /**

View File

@ -43,7 +43,7 @@ body.FileArea
body, td, input, select body, td, input, select
{ {
font-size: 11px; font-size: 11px;
font-family: 'Microsoft Sans Serif' , Arial, Helvetica, Verdana; font-family: 'Microsoft Sans Serif', Arial, Helvetica, Verdana, sans-serif;
} }
.ActualFolder .ActualFolder
@ -68,12 +68,12 @@ body, td, input, select
.FolderListCurrentFolder img .FolderListCurrentFolder img
{ {
background-image: url(../../../../themes/common/treemenu/folder-expanded.gif); background-image: url(../../../../theme/common/treemenu/folder-expanded.gif);
} }
.FolderListFolder img .FolderListFolder img
{ {
background-image: url(../../../../themes/common/treemenu/folder.gif); background-image: url(../../../../theme/common/treemenu/folder.gif);
} }
.fullHeight { .fullHeight {

View File

@ -190,9 +190,8 @@ function dpClickDay(year,month,day,format)
closeDPBox(); closeDPBox();
} }
function dpHighlightDay(year,month,day,tradMonths){ function dpHighlightDay(year,month,day,months){
var displayinfo=getObjectFromID("dpExp"); var displayinfo=getObjectFromID("dpExp");
var months = tradMonths;
displayinfo.innerHTML=months[month-1]+" "+day+", "+year; displayinfo.innerHTML=months[month-1]+" "+day+", "+year;
} }
@ -478,9 +477,7 @@ function getDateFromFormat(val,format)
if (seconde==null||(seconde<0)||(seconde>60)) { return 0; } if (seconde==null||(seconde<0)||(seconde>60)) { return 0; }
// alert(year+' '+month+' '+day+' '+hour+' '+minute+' '+seconde); // alert(year+' '+month+' '+day+' '+hour+' '+minute+' '+seconde);
var newdate=new Date(year,month-1,day,hour,minute,seconde); return new Date(year,month-1,day,hour,minute,seconde);
return newdate;
} }
/* /*
@ -588,8 +585,7 @@ function cleanSerialize(expr) {
var reg = new RegExp("(&)", "g"); var reg = new RegExp("(&)", "g");
var reg2 = new RegExp("[^A-Z0-9,]", "g"); var reg2 = new RegExp("[^A-Z0-9,]", "g");
var liste1 = expr.replace(reg, ","); var liste1 = expr.replace(reg, ",");
var liste = liste1.replace(reg2, ""); return liste = liste1.replace(reg2, "");
return liste;
} }
@ -794,7 +790,7 @@ function confirmConstantAction(action, url, code, input, box, entity, yesButton,
(function( $ ) { (function( $ ) {
$.widget( "ui.combobox", { $.widget( "ui.combobox", {
options: { options: {
minLengthToAutocomplete: 0, minLengthToAutocomplete: 0
}, },
_create: function() { _create: function() {
var savMinLengthToAutocomplete = this.options.minLengthToAutocomplete; var savMinLengthToAutocomplete = this.options.minLengthToAutocomplete;

View File

@ -21,14 +21,11 @@
// in [-]HH:MM format... // in [-]HH:MM format...
// won't yet work with non-even tzs // won't yet work with non-even tzs
function fetchTimezone() function fetchTimezone() {
{ var localclock = new Date(),
var localclock = new Date();
// returns negative offset from GMT in minutes // returns negative offset from GMT in minutes
var tzRaw = localclock.getTimezoneOffset(); tzRaw = localclock.getTimezoneOffset(),
var tzHour = Math.floor( Math.abs(tzRaw) / 60); tzHour = Math.floor(Math.abs(tzRaw) / 60),
var tzMin = Math.abs(tzRaw) % 60; tzMin = Math.abs(tzRaw) % 60;
var tzString = ((tzRaw >= 0) ? "-" : "") + ((tzHour < 10) ? "0" : "") + tzHour + return ((tzRaw >= 0) ? "-" : "") + ((tzHour < 10) ? "0" : "") + tzHour + ":" + ((tzMin < 10) ? "0" : "") + tzMin;
":" + ((tzMin < 10) ? "0" : "") + tzMin;
return tzString;
} }

View File

@ -274,7 +274,7 @@ function dol_imageResizeOrCrop($file, $mode, $newWidth, $newHeight, $src_x=0, $s
imagepng($imgThumb, $imgThumbName, $newquality); imagepng($imgThumb, $imgThumbName, $newquality);
break; break;
case 4: // Bmp case 4: // Bmp
image2wmp($imgThumb, $imgThumbName); image2wbmp($imgThumb, $imgThumbName);
break; break;
} }
@ -534,7 +534,7 @@ function vignette($file, $maxWidth = 160, $maxHeight = 120, $extName='_small', $
// Not supported by PHP GD // Not supported by PHP GD
break; break;
case IMAGETYPE_WBMP: // 15 case IMAGETYPE_WBMP: // 15
image2wmp($imgThumb, $imgThumbName); image2wbmp($imgThumb, $imgThumbName);
break; break;
} }

View File

@ -211,7 +211,6 @@ class modCategorie extends DolibarrModules
'u.label' => "category", 'u.label' => "category",
'u.description' => "category", 'u.description' => "category",
'p.rowid' => 'contact', 'p.rowid' => 'contact',
'p.rowid' => 'contact',
'p.civilite' => 'contact', 'p.civilite' => 'contact',
'p.lastname' => 'contact', 'p.lastname' => 'contact',
'p.firstname' => 'contact', 'p.firstname' => 'contact',

View File

@ -142,7 +142,7 @@ class modProduct extends DolibarrModules
$this->export_TypeFields_array[$r]=array('p.ref'=>"Text",'p.label'=>"Text",'p.description'=>"Text",'p.accountancy_code_sell'=>"Text",'p.accountancy_code_buy'=>"Text",'p.note'=>"Text",'p.length'=>"Number",'p.surface'=>"Number",'p.volume'=>"Number",'p.weight'=>"Number",'p.customcode'=>'Text','p.price_base_type'=>"Text",'p.price'=>"Number",'p.price_ttc'=>"Number",'p.tva_tx'=>'Number','p.tosell'=>"Boolean",'p.tobuy'=>"Boolean",'p.datec'=>'Date','p.tms'=>'Date'); $this->export_TypeFields_array[$r]=array('p.ref'=>"Text",'p.label'=>"Text",'p.description'=>"Text",'p.accountancy_code_sell'=>"Text",'p.accountancy_code_buy'=>"Text",'p.note'=>"Text",'p.length'=>"Number",'p.surface'=>"Number",'p.volume'=>"Number",'p.weight'=>"Number",'p.customcode'=>'Text','p.price_base_type'=>"Text",'p.price'=>"Number",'p.price_ttc'=>"Number",'p.tva_tx'=>'Number','p.tosell'=>"Boolean",'p.tobuy'=>"Boolean",'p.datec'=>'Date','p.tms'=>'Date');
if (! empty($conf->stock->enabled)) $this->export_TypeFields_array[$r]=array_merge($this->export_TypeFields_array[$r],array('p.pmp'=>'Number')); if (! empty($conf->stock->enabled)) $this->export_TypeFields_array[$r]=array_merge($this->export_TypeFields_array[$r],array('p.pmp'=>'Number'));
if (! empty($conf->barcode->enabled)) $this->export_TypeFields_array[$r]=array_merge($this->export_TypeFields_array[$r],array('p.barcode'=>'Text')); if (! empty($conf->barcode->enabled)) $this->export_TypeFields_array[$r]=array_merge($this->export_TypeFields_array[$r],array('p.barcode'=>'Text'));
$this->export_entities_array[$r]=array('p.rowid'=>"product",'p.ref'=>"product",'p.label'=>"product",'p.description'=>"product",'p.accountancy_code_sell'=>'product','p.accountancy_code_sell'=>'product','p.note'=>"product",'p.length'=>"product",'p.surface'=>"product",'p.volume'=>"product",'p.weight'=>"product",'p.customcode'=>'product','p.price_base_type'=>"product",'p.price'=>"product",'p.price_ttc'=>"product",'p.tva_tx'=>"product",'p.tosell'=>"product",'p.tobuy'=>"product",'p.datec'=>"product",'p.tms'=>"product"); $this->export_entities_array[$r]=array('p.rowid'=>"product",'p.ref'=>"product",'p.label'=>"product",'p.description'=>"product",'p.accountancy_code_sell'=>'product','p.note'=>"product",'p.length'=>"product",'p.surface'=>"product",'p.volume'=>"product",'p.weight'=>"product",'p.customcode'=>'product','p.price_base_type'=>"product",'p.price'=>"product",'p.price_ttc'=>"product",'p.tva_tx'=>"product",'p.tosell'=>"product",'p.tobuy'=>"product",'p.datec'=>"product",'p.tms'=>"product");
if (! empty($conf->stock->enabled)) $this->export_entities_array[$r]=array_merge($this->export_entities_array[$r],array('p.stock'=>'product','p.pmp'=>'product')); if (! empty($conf->stock->enabled)) $this->export_entities_array[$r]=array_merge($this->export_entities_array[$r],array('p.stock'=>'product','p.pmp'=>'product'));
if (! empty($conf->barcode->enabled)) $this->export_entities_array[$r]=array_merge($this->export_entities_array[$r],array('p.barcode'=>'product')); if (! empty($conf->barcode->enabled)) $this->export_entities_array[$r]=array_merge($this->export_entities_array[$r],array('p.barcode'=>'product'));
// Add extra fields // Add extra fields

View File

@ -126,7 +126,7 @@ class modService extends DolibarrModules
$this->export_TypeFields_array[$r]=array('p.ref'=>"Text",'p.label'=>"Text",'p.description'=>"Text",'p.accountancy_code_sell'=>"Text",'p.accountancy_code_buy'=>"Text",'p.note'=>"Text",'p.price_base_type'=>"Text",'p.price'=>"Number",'p.price_ttc'=>"Number",'p.tva_tx'=>'Number','p.tosell'=>"Boolean",'p.duration'=>"Duree",'p.datec'=>'Date','p.tms'=>'Date'); $this->export_TypeFields_array[$r]=array('p.ref'=>"Text",'p.label'=>"Text",'p.description'=>"Text",'p.accountancy_code_sell'=>"Text",'p.accountancy_code_buy'=>"Text",'p.note'=>"Text",'p.price_base_type'=>"Text",'p.price'=>"Number",'p.price_ttc'=>"Number",'p.tva_tx'=>'Number','p.tosell'=>"Boolean",'p.duration'=>"Duree",'p.datec'=>'Date','p.tms'=>'Date');
if (! empty($conf->stock->enabled)) $this->export_TypeFields_array[$r]=array_merge($this->export_fields_array[$r],array('p.stock'=>'Number')); if (! empty($conf->stock->enabled)) $this->export_TypeFields_array[$r]=array_merge($this->export_fields_array[$r],array('p.stock'=>'Number'));
if (! empty($conf->barcode->enabled)) $this->export_TypeFields_array[$r]=array_merge($this->export_TypeFields_array[$r],array('p.barcode'=>'Text')); if (! empty($conf->barcode->enabled)) $this->export_TypeFields_array[$r]=array_merge($this->export_TypeFields_array[$r],array('p.barcode'=>'Text'));
$this->export_entities_array[$r]=array('p.rowid'=>"service",'p.ref'=>"service",'p.label'=>"service",'p.description'=>"service",'p.accountancy_code_sell'=>'service','p.accountancy_code_sell'=>'service','p.note'=>"service",'p.price_base_type'=>"service",'p.price'=>"service",'p.price_ttc'=>"service",'p.tva_tx'=>"service",'p.tosell'=>"service",'p.duration'=>"service",'p.datec'=>"service",'p.tms'=>"service"); $this->export_entities_array[$r]=array('p.rowid'=>"service",'p.ref'=>"service",'p.label'=>"service",'p.description'=>"service",'p.accountancy_code_sell'=>'service','p.note'=>"service",'p.price_base_type'=>"service",'p.price'=>"service",'p.price_ttc'=>"service",'p.tva_tx'=>"service",'p.tosell'=>"service",'p.duration'=>"service",'p.datec'=>"service",'p.tms'=>"service");
if (! empty($conf->stock->enabled)) $this->export_entities_array[$r]=array_merge($this->export_entities_array[$r],array('p.stock'=>'service')); if (! empty($conf->stock->enabled)) $this->export_entities_array[$r]=array_merge($this->export_entities_array[$r],array('p.stock'=>'service'));
if (! empty($conf->barcode->enabled)) $this->export_entities_array[$r]=array_merge($this->export_entities_array[$r],array('p.barcode'=>'service')); if (! empty($conf->barcode->enabled)) $this->export_entities_array[$r]=array_merge($this->export_entities_array[$r],array('p.barcode'=>'service'));
// Add extra fields // Add extra fields

View File

@ -123,7 +123,7 @@ class modStock extends DolibarrModules
$this->export_label[$r]="WarehousesAndProducts"; // Translation key (used only if key ExportDataset_xxx_z not found) $this->export_label[$r]="WarehousesAndProducts"; // Translation key (used only if key ExportDataset_xxx_z not found)
$this->export_permission[$r]=array(array("stock","lire")); $this->export_permission[$r]=array(array("stock","lire"));
$this->export_fields_array[$r]=array('e.rowid'=>'IdWarehouse','e.label'=>'LocationSummary','e.description'=>'DescWareHouse','e.lieu'=>'LieuWareHouse','e.address'=>'Address','e.zip'=>'Zip','e.town'=>'Town','p.rowid'=>"ProductId",'p.ref'=>"Ref",'p.fk_product_type'=>"Type",'p.label'=>"Label",'p.description'=>"Description",'p.note'=>"Note",'p.price'=>"Price",'p.tva_tx'=>'VAT','p.tosell'=>"OnSell",'p.duration'=>"Duration",'p.datec'=>'DateCreation','p.tms'=>'DateModification','ps.reel'=>'Stock'); $this->export_fields_array[$r]=array('e.rowid'=>'IdWarehouse','e.label'=>'LocationSummary','e.description'=>'DescWareHouse','e.lieu'=>'LieuWareHouse','e.address'=>'Address','e.zip'=>'Zip','e.town'=>'Town','p.rowid'=>"ProductId",'p.ref'=>"Ref",'p.fk_product_type'=>"Type",'p.label'=>"Label",'p.description'=>"Description",'p.note'=>"Note",'p.price'=>"Price",'p.tva_tx'=>'VAT','p.tosell'=>"OnSell",'p.duration'=>"Duration",'p.datec'=>'DateCreation','p.tms'=>'DateModification','ps.reel'=>'Stock');
$this->export_TypeFields_array[$r]=array('e.rowid'=>'List:entrepot:LabelWareHouse','e.label'=>'Text','e.label'=>'Text','e.lieu'=>'Text','e.address'=>'Text','e.zip'=>'Text','e.town'=>'Text','p.rowid'=>"List:produit:label",'p.ref'=>"Text",'p.fk_product_type'=>"Text",'p.label'=>"Text",'p.description'=>"Text",'p.note'=>"Text",'p.price'=>"Number",'p.tva_tx'=>'Number','p.tosell'=>"Boolean",'p.duration'=>"Duree",'p.datec'=>'Date','p.tms'=>'Date','ps.reel'=>'Number'); $this->export_TypeFields_array[$r]=array('e.rowid'=>'List:entrepot:LabelWareHouse','e.label'=>'Text','e.lieu'=>'Text','e.address'=>'Text','e.zip'=>'Text','e.town'=>'Text','p.rowid'=>"List:produit:label",'p.ref'=>"Text",'p.fk_product_type'=>"Text",'p.label'=>"Text",'p.description'=>"Text",'p.note'=>"Text",'p.price'=>"Number",'p.tva_tx'=>'Number','p.tosell'=>"Boolean",'p.duration'=>"Duree",'p.datec'=>'Date','p.tms'=>'Date','ps.reel'=>'Number');
$this->export_entities_array[$r]=array('e.rowid'=>'warehouse','e.label'=>'warehouse','e.description'=>'warehouse','e.lieu'=>'warehouse','e.address'=>'warehouse','e.zip'=>'warehouse','e.town'=>'warehouse','p.rowid'=>"product",'p.ref'=>"product",'p.fk_product_type'=>"product",'p.label'=>"product",'p.description'=>"product",'p.note'=>"product",'p.price'=>"product",'p.tva_tx'=>'product','p.tosell'=>"product",'p.duration'=>"product",'p.datec'=>'product','p.tms'=>'product','ps.reel'=>'stock'); $this->export_entities_array[$r]=array('e.rowid'=>'warehouse','e.label'=>'warehouse','e.description'=>'warehouse','e.lieu'=>'warehouse','e.address'=>'warehouse','e.zip'=>'warehouse','e.town'=>'warehouse','p.rowid'=>"product",'p.ref'=>"product",'p.fk_product_type'=>"product",'p.label'=>"product",'p.description'=>"product",'p.note'=>"product",'p.price'=>"product",'p.tva_tx'=>'product','p.tosell'=>"product",'p.duration'=>"product",'p.datec'=>'product','p.tms'=>'product','ps.reel'=>'stock');
$this->export_aggregate_array[$r]=array('ps.reel'=>'SUM'); // TODO Not used yet $this->export_aggregate_array[$r]=array('ps.reel'=>'SUM'); // TODO Not used yet
$this->export_dependencies_array[$r]=array('stock'=>array('p.rowid','e.rowid')); // To add unique key if we ask a field of a child to avoid the DISTINCT to discard them $this->export_dependencies_array[$r]=array('stock'=>array('p.rowid','e.rowid')); // To add unique key if we ask a field of a child to avoid the DISTINCT to discard them

View File

@ -1481,7 +1481,7 @@ else
$formmail->withfrom=1; $formmail->withfrom=1;
$liste=array(); $liste=array();
foreach ($object->thirdparty->thirdparty_and_contact_email_array(1) as $key=>$value) $liste[$key]=$value; foreach ($object->thirdparty->thirdparty_and_contact_email_array(1) as $key=>$value) $liste[$key]=$value;
$formmail->withto=GETPOST("sendto")?GETOST("sendto"):$liste; $formmail->withto=GETPOST("sendto")?GETPOST("sendto"):$liste;
$formmail->withtocc=$liste; $formmail->withtocc=$liste;
$formmail->withtoccc=$conf->global->MAIN_EMAIL_USECCC; $formmail->withtoccc=$conf->global->MAIN_EMAIL_USECCC;
$formmail->withtopic=$langs->trans('SendShippingRef','__SHIPPINGREF__'); $formmail->withtopic=$langs->trans('SendShippingRef','__SHIPPINGREF__');

View File

@ -1712,7 +1712,7 @@ else if ($id > 0 || ! empty($ref))
$formmail->withfrom=1; $formmail->withfrom=1;
$liste=array(); $liste=array();
foreach ($object->thirdparty->thirdparty_and_contact_email_array(1) as $key=>$value) $liste[$key]=$value; foreach ($object->thirdparty->thirdparty_and_contact_email_array(1) as $key=>$value) $liste[$key]=$value;
$formmail->withto=GETPOST("sendto")?GETOST("sendto"):$liste; $formmail->withto=GETPOST("sendto")?GETPOST("sendto"):$liste;
$formmail->withtocc=$liste; $formmail->withtocc=$liste;
$formmail->withtoccc=$conf->global->MAIN_EMAIL_USECCC; $formmail->withtoccc=$conf->global->MAIN_EMAIL_USECCC;
$formmail->withtopic=$langs->trans('SendInterventionRef','__FICHINTERREF__'); $formmail->withtopic=$langs->trans('SendInterventionRef','__FICHINTERREF__');

View File

@ -1944,7 +1944,7 @@ elseif (! empty($object->id))
$formmail->withfrom=1; $formmail->withfrom=1;
$liste=array(); $liste=array();
foreach ($object->thirdparty->thirdparty_and_contact_email_array(1) as $key=>$value) $liste[$key]=$value; foreach ($object->thirdparty->thirdparty_and_contact_email_array(1) as $key=>$value) $liste[$key]=$value;
$formmail->withto=GETPOST("sendto")?GETOST("sendto"):$liste; $formmail->withto=GETPOST("sendto")?GETPOST("sendto"):$liste;
$formmail->withtocc=$liste; $formmail->withtocc=$liste;
$formmail->withtoccc=(! empty($conf->global->MAIN_EMAIL_USECCC)?$conf->global->MAIN_EMAIL_USECCC:false); $formmail->withtoccc=(! empty($conf->global->MAIN_EMAIL_USECCC)?$conf->global->MAIN_EMAIL_USECCC:false);
$formmail->withtopic=$langs->trans('SendOrderRef','__ORDERREF__'); $formmail->withtopic=$langs->trans('SendOrderRef','__ORDERREF__');

View File

@ -2276,7 +2276,7 @@ else
$formmail->withfrom=1; $formmail->withfrom=1;
$liste=array(); $liste=array();
foreach ($object->thirdparty->thirdparty_and_contact_email_array(1) as $key=>$value) $liste[$key]=$value; foreach ($object->thirdparty->thirdparty_and_contact_email_array(1) as $key=>$value) $liste[$key]=$value;
$formmail->withto=GETPOST("sendto")?GETOST("sendto"):$liste; $formmail->withto=GETPOST("sendto")?GETPOST("sendto"):$liste;
$formmail->withtocc=$liste; $formmail->withtocc=$liste;
$formmail->withtoccc=$conf->global->MAIN_EMAIL_USECCC; $formmail->withtoccc=$conf->global->MAIN_EMAIL_USECCC;
$formmail->withtopic=$langs->trans('SendBillRef','__FACREF__'); $formmail->withtopic=$langs->trans('SendBillRef','__FACREF__');

View File

@ -638,7 +638,7 @@ if (empty($id) || $action == 'add' || $action == 'request')
case 'nodatedebut' : case 'nodatedebut' :
$errors[] = $langs->trans('NoDateDebut'); $errors[] = $langs->trans('NoDateDebut');
break; break;
case 'nodatedebut' : case 'nodatefin' :
$errors[] = $langs->trans('NoDateFin'); $errors[] = $langs->trans('NoDateFin');
break; break;
case 'DureeHoliday' : case 'DureeHoliday' :
@ -808,7 +808,7 @@ else
case 'nodatedebut' : case 'nodatedebut' :
$errors[] = $langs->transnoentitiesnoconv('NoDateDebut'); $errors[] = $langs->transnoentitiesnoconv('NoDateDebut');
break; break;
case 'nodatedebut' : case 'nodatefin' :
$errors[] = $langs->transnoentitiesnoconv('NoDateFin'); $errors[] = $langs->transnoentitiesnoconv('NoDateFin');
break; break;
case 'DureeHoliday' : case 'DureeHoliday' :

View File

@ -21,15 +21,12 @@ font-size:13px;
font-family: Verdana, Tahoma, Arial, Helvetica, sans-serif; font-family: Verdana, Tahoma, Arial, Helvetica, sans-serif;
background: #f9f9f9 url(headbg.jpg) 0 0 no-repeat; background: #f9f9f9 url(headbg.jpg) 0 0 no-repeat;
/* background-color: #F4F4F4; */ /* background-color: #F4F4F4; */
margin-left: 30px; margin: 15px 30px 10px;
margin-right: 30px;
margin-top: 15px;
margin-bottom: 10px;
} }
div.titre { div.titre {
padding: 5px 5px 5px 5px; padding: 5px 5px 5px 5px;
margin: 0em 0em 0em 0em; margin: 0 0 0 0;
} }
span.titre { span.titre {
@ -39,26 +36,26 @@ background: #FFFFFF;
color: #4965B3; color: #4965B3;
border: 1px solid #8CACBB; border: 1px solid #8CACBB;
padding: 5px 5px 5px 5px; padding: 5px 5px 5px 5px;
margin: 0em 0em 0em 0em; margin: 0 0 0 0;
} }
div.soustitre { div.soustitre {
font-size: 15px; font-size: 15px;
font-weight: bold; font-weight: bold;
color: #4965B3; color: #4965B3;
padding: 0em 1.2em 0.5em 2em; padding: 0 1.2em 0.5em 2em;
margin: 1.2em 1.2em 1.2em 1.2em; margin: 1.2em 1.2em 1.2em 1.2em;
border-bottom: 1px solid #8CACBB; border-bottom: 1px solid #8CACBB;
border-right: 1px solid #8CACBB; border-right: 1px solid #8CACBB;
text-align: right; text-align: right;
} }
inputdisabled input:disabled
{ {
background: #FDFDFD; background: #FDFDFD;
border: 1px solid #ACBCBB; border: 1px solid #ACBCBB;
padding: 0px 0px 0px 0px; padding: 0 0 0 0;
margin: 0px 0px 0px 0px; margin: 0 0 0 0;
} }
input[type=text], input[type=password] { input[type=text], input[type=password] {
@ -69,8 +66,7 @@ input[type=text]:focus, input[type=password]:focus, textarea:focus, select:focus
box-shadow: 0 0 5px #C091AF; box-shadow: 0 0 5px #C091AF;
} }
input:-webkit-autofill { input:-webkit-autofill {
background-color: #FBFFEA !important; background: #FBFFEA none !important;
background-image: none !important;
-webkit-box-shadow: 0 0 0 50px #FBFFEA inset; -webkit-box-shadow: 0 0 0 50px #FBFFEA inset;
} }
@ -91,10 +87,7 @@ color: #000000;
table.listofchoices, tr.listofchoices, td.listofchoices { table.listofchoices, tr.listofchoices, td.listofchoices {
border-collapse: collapse; border-collapse: collapse;
padding-top: 4px; padding: 4px;
padding-bottom: 4px;
padding-left: 4px;
padding-right: 4px;
color: #000000; color: #000000;
border: 1px solid #888888 !important; border: 1px solid #888888 !important;
} }
@ -137,7 +130,7 @@ div.error {
color: #550000; color: #550000;
font-weight: bold; font-weight: bold;
padding: 0.2em 0.2em 0.2em 0.2em; padding: 0.2em 0.2em 0.2em 0.2em;
margin: 0.5em 0em 0.5em 0em; margin: 0.5em 0 0.5em 0;
border: 1px solid #6C7C8B; border: 1px solid #6C7C8B;
} }
font.error { font.error {
@ -199,7 +192,7 @@ background-color: #B5C5C5;
td.label { td.label {
color: #5945A3; color: #5945A3;
padding: 5px 5px 5px 5px; padding: 5px 5px 5px 5px;
margin: 0em 0em 0em 0em; margin: 0 0 0 0;
border-bottom: 1px solid #CCCCDB; border-bottom: 1px solid #CCCCDB;
} }
@ -207,7 +200,7 @@ border-bottom: 1px solid #CCCCDB;
td.comment { td.comment {
color: black; color: black;
padding: 5px 5px 5px 5px; padding: 5px 5px 5px 5px;
margin: 0em 0em 0em 0em; margin: 0 0 0 0;
text-decoration:none; text-decoration:none;
font-size: 11px; font-size: 11px;
border-bottom: 1px solid #CCCCDB; border-bottom: 1px solid #CCCCDB;
@ -239,14 +232,13 @@ ul {
.button { .button {
background-color: #FFFFFF; background: #FFFFFF bottom;
background-position: bottom;
border: 1px solid #C0C0C0; border: 1px solid #C0C0C0;
padding: 0.3em 0.7em; padding: 0.3em 0.7em;
margin: 0em 0.5em; margin: 0 0.5em;
-moz-border-radius:0px 5px 0px 5px; -moz-border-radius:0 5px 0 5px;
-webkit-border-radius:0px 5px 0px 5px; -webkit-border-radius:0 5px 0 5px;
border-radius:0px 5px 0px 5px; border-radius:0 5px 0 5px;
-moz-box-shadow: 2px 2px 3px #CCC; -moz-box-shadow: 2px 2px 3px #CCC;
-webkit-box-shadow: 2px 2px 3px #CCC; -webkit-box-shadow: 2px 2px 3px #CCC;
box-shadow: 2px 2px 3px #CCC; box-shadow: 2px 2px 3px #CCC;

View File

@ -402,7 +402,7 @@ if (! $error && $db->connected && $action == "set")
require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php'; require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';
$srcroot=$main_dir.'/install/doctemplates'; $srcroot=$main_dir.'/install/doctemplates';
$destroot=$main_data_dir.'/doctemplates'; $destroot=$main_data_dir.'/doctemplates';
$docs=array('thirdparties' => 'thirdparty', 'proposals' => 'proposal', 'orders' => 'order', 'invoices' => 'invoice', 'projects' => 'project', 'projects' => 'task_summary', 'tasks' => 'task_summary'); $docs=array('thirdparties' => 'thirdparty', 'proposals' => 'proposal', 'orders' => 'order', 'invoices' => 'invoice', 'projects' => 'project', 'tasks' => 'task_summary');
foreach($docs as $cursordir => $cursorfile) foreach($docs as $cursordir => $cursorfile)
{ {
$src=$srcroot.'/'.$cursordir.'/template_'.$cursorfile.'.odt'; $src=$srcroot.'/'.$cursordir.'/template_'.$cursorfile.'.odt';

View File

@ -20,7 +20,7 @@
.survey_invitation .survey_invitation
{ {
font-color: #445566; color: #445566;
font-weight: bold; font-weight: bold;
} }
@ -141,7 +141,7 @@ div.bandeau{
color:white; color:white;
vertical-align:middle; vertical-align:middle;
font-size:35px; font-size:35px;
font-family:arial; font-family:arial, sans-serif;
padding:8px; padding:8px;
height:35px; height:35px;
position:static; position:static;
@ -166,7 +166,7 @@ div.bandeautitre{
font-weight:bold; font-weight:bold;
text-align:center; text-align:center;
vertical-align:middle; vertical-align:middle;
font-family:arial; font-family:arial, sans-serif;
padding:3px; padding:3px;
position:static; position:static;
top:57px; top:57px;
@ -179,7 +179,7 @@ div.sousbandeau{
font-size:11px; font-size:11px;
color:black; color:black;
vertical-align:middle; vertical-align:middle;
font-family:arial; font-family:arial, sans-serif;
padding:3px; padding:3px;
position:static; position:static;
top:80px; top:80px;
@ -200,7 +200,7 @@ div.bandeaupied{
background-color: #0b419b; background-color: #0b419b;
color:white; color:white;
font-size:11px; font-size:11px;
font-family:arial; font-family:arial, sans-serif;
padding:6px; padding:6px;
position:fixed; position:fixed;
bottom:6px; bottom:6px;
@ -221,7 +221,7 @@ div.bandeaupiedmobile{
background-color: #0b419b; background-color: #0b419b;
color:white; color:white;
font-size:11px; font-size:11px;
font-family:arial; font-family:arial, sans-serif;
padding:6px; padding:6px;
position:static; position:static;
} }
@ -234,7 +234,7 @@ div.sousbandeau a, div.sousbandeau span.sousbandeaulangue a {
text-align:center; text-align:center;
margin-left:10px; margin-left:10px;
margin-right:10px; margin-right:10px;
font-family:arial; font-family:arial, sans-serif;
color:white; color:white;
font-size:10px; font-size:10px;
text-decoration:none; text-decoration:none;
@ -247,18 +247,18 @@ span.sousbandeaulangue {
/*corps de la page index.php*/ /*corps de la page index.php*/
div.corps{ div.corps{
font-size:12px; font-size:12px;
font-family:arial; font-family:arial, sans-serif;
position:static; position:static;
padding:15px; padding:15px;
} }
div.corps table{ div.corps table{
font-family:arial; font-family:arial, sans-serif;
font-size:12px; font-size:12px;
font-weight:bold; font-weight:bold;
} }
div.corpscentre{ div.corpscentre{
font-size:12px; font-size:12px;
font-family:arial; font-family:arial, sans-serif;
text-align:center; text-align:center;
position:absolute; position:absolute;
top:150px; top:150px;
@ -280,7 +280,7 @@ div.jourschoisis {
/*presenation des pages*/ /*presenation des pages*/
div.bodydate { div.bodydate {
padding:10px; padding:10px;
font-family:arial; font-family:arial, sans-serif;
font-size:12px; font-size:12px;
text-align:center; text-align:center;
position:static; position:static;
@ -289,14 +289,14 @@ div.bodydate {
right:20px; right:20px;
} }
div.bodydate table{ div.bodydate table{
font-family:arial; font-family:arial, sans-serif;
font-size:12px; font-size:12px;
font-weight:bold; font-weight:bold;
} }
/*cadre de commentaires*/ /*cadre de commentaires*/
div.presentationdate { div.presentationdate {
width:100%; width:100%;
font-family:arial; font-family:arial, sans-serif;
text-align:center; text-align:center;
font-size:12px; font-size:12px;
border-top:1px solid; border-top:1px solid;
@ -311,11 +311,10 @@ div.presentationdate {
div.presentationdatefin { div.presentationdatefin {
width:40%; width:40%;
padding:10px; padding:10px;
font-family:arial; font-family:arial, sans-serif;
text-align:center; text-align:center;
font-size:12px; font-size:12px;
border-width:1px; border: 1px solid;
border-style:solid;
margin-top: 10px; margin-top: 10px;
margin-left: 30%; margin-left: 30%;
margin-right: 30%; margin-right: 30%;
@ -324,7 +323,7 @@ div.presentationdatefin {
/*cadre principal de studs.php*/ /*cadre principal de studs.php*/
div.cadre { div.cadre {
padding:10px; padding:10px;
font-family:arial; font-family:arial, sans-serif;
font-size:12px; font-size:12px;
position:static; position:static;
top:235px; top:235px;
@ -406,7 +405,7 @@ div.calendrier {
background-color: #AAA; background-color: #AAA;
width:490px; width:490px;
font-size:12px; font-size:12px;
font-family:arial; font-family:arial, sans-serif;
margin-left: 30%; margin-left: 30%;
margin-right: 30%; margin-right: 30%;
position:static; position:static;
@ -415,7 +414,7 @@ div.calendrier {
div.calendrier td.joursemaine { div.calendrier td.joursemaine {
width:65px; width:65px;
text-align: center; text-align: center;
font-family:arial; font-family:arial, sans-serif;
font-size:14px; font-size:14px;
border: 2px; border: 2px;
background-color: white; background-color: white;
@ -423,7 +422,7 @@ div.calendrier td.joursemaine {
div.calendrier td.jourwe { div.calendrier td.jourwe {
width:65px; width:65px;
text-align: center; text-align: center;
font-family:arial; font-family:arial, sans-serif;
font-size:14px; font-size:14px;
border: 2px; border: 2px;
background-color: #C0C0C0; background-color: #C0C0C0;
@ -433,7 +432,7 @@ div.calendrier td.avant {
width:65px; width:65px;
text-align: center; text-align: center;
border: 2px; border: 2px;
font-family:arial; font-family:arial, sans-serif;
font-size:13px; font-size:13px;
background-color: #DDDDDD; background-color: #DDDDDD;
} }
@ -454,7 +453,7 @@ div.calendrier td.choisi {
/* Le paragraphe de fin */ /* Le paragraphe de fin */
p.affichageresultats{ p.affichageresultats{
text-align: center; text-align: center;
font-family:arial; font-family:arial, sans-serif;
font-size:13px; font-size:13px;
} }
@ -468,7 +467,7 @@ div.comment span.usercomment{
a.affichageexport{ a.affichageexport{
text-align: center; text-align: center;
font-family:arial; font-family:arial, sans-serif;
font-size:10px; font-size:10px;
margin-left:10px; margin-left:10px;
text-decoration: none; text-decoration: none;
@ -483,11 +482,11 @@ div.titregestionadmin{
.bouton { .bouton {
width: 65px; width: 65px;
border:0px; border:0;
padding:0px 0 0 0; padding:0 0 0 0;
margin:0px; margin:0;
cursor:pointer; cursor:pointer;
font-family:arial; font-family:arial, sans-serif;
font-size:13px; font-size:13px;
} }
/*les boutons pour choisir un jour non selectionné*/ /*les boutons pour choisir un jour non selectionné*/
@ -505,7 +504,7 @@ div.nouveau_sondage a {
} }
div.nouveau_sondage span img { div.nouveau_sondage span img {
vertical-align: middle; vertical-align: middle;
border: 0px; border: 0;
} }
div.nouveau_sondage span { div.nouveau_sondage span {
margin-left: 20px; margin-left: 20px;
@ -514,7 +513,7 @@ div.nouveau_sondage span {
div.error, div.addcomment { div.error, div.addcomment {
text-align:center; text-align:center;
border: 1px; border: 1px;
font-family: arial; font-family: arial, sans-serif;
font-size: 13px; font-size: 13px;
} }
ul.exports { ul.exports {

View File

@ -1036,7 +1036,7 @@ class Task extends CommonObject
$clone_task->fk_project = $project_id; $clone_task->fk_project = $project_id;
$clone_task->fk_task_parent = $parent_task_id; $clone_task->fk_task_parent = $parent_task_id;
$clone_task->date_c = $datec; $clone_task->date_c = $datec;
$clone_task->planned_workload = $clone_task->planned_workload; $clone_task->planned_workload = $origin_task->planned_workload;
$clone_task->rang = $origin_task->rang; $clone_task->rang = $origin_task->rang;
//Manage Task Date //Manage Task Date

View File

@ -23,7 +23,7 @@
?> ?>
<div id="principal_content" style="margin-left: 0px;"> <div id="principal_content" style="margin-left: 0;">
<div style="margin-left: 0; position: relative;" class="gantt" <div style="margin-left: 0; position: relative;" class="gantt"
id="GanttChartDIV"></div> id="GanttChartDIV"></div>

View File

@ -210,7 +210,7 @@ if (count($tasksarray)>0)
{ {
$s.=$langs->trans("Internals").': '; $s.=$langs->trans("Internals").': ';
$i=0; $i=0;
foreach($idofusers as $key => $valid) foreach($idofusers as $valid)
{ {
$userstatic->fetch($valid); $userstatic->fetch($valid);
if ($i) $s.=','; if ($i) $s.=',';
@ -224,7 +224,7 @@ if (count($tasksarray)>0)
if ($s) $s.=' - '; if ($s) $s.=' - ';
$s.=$langs->trans("Externals").': '; $s.=$langs->trans("Externals").': ';
$i=0; $i=0;
foreach($idofthirdparty as $key => $valid) foreach($idofthirdparty as $valid)
{ {
$companystatic->fetch($valid); $companystatic->fetch($valid);
if ($i) $s.=','; if ($i) $s.=',';

View File

@ -290,7 +290,6 @@ abstract class ActionsCardCommon
} }
else else
{ {
$this->object->id = $this->object->id;
$reload = 0; $reload = 0;
$this->errors = $this->object->errors; $this->errors = $this->object->errors;
$action = "edit"; $action = "edit";

View File

@ -20,15 +20,12 @@ font-size:12px;
font-family: Verdana, Tahoma, Arial, Helvetica, sans-serif; font-family: Verdana, Tahoma, Arial, Helvetica, sans-serif;
background: #f9f9f9 url(headbg.jpg) 0 0 no-repeat; background: #f9f9f9 url(headbg.jpg) 0 0 no-repeat;
/* background-color: #F4F4F4; */ /* background-color: #F4F4F4; */
margin-left: 10px; margin: 5px 10px;
margin-right: 10px;
margin-top: 5px;
margin-bottom: 5px;
} }
div.titre { div.titre {
padding: 5px 5px 5px 5px; padding: 5px 5px 5px 5px;
margin: 0em 0em 0em 0em; margin: 0 0 0 0;
} }
span.titre { span.titre {
@ -37,7 +34,7 @@ font-weight: bold;
background: #FFFFFF; background: #FFFFFF;
color: #4965B3; color: #4965B3;
padding: 5px 5px 5px 5px; padding: 5px 5px 5px 5px;
margin: 0em 0em 0em 0em; margin: 0 0 0 0;
border: 1px solid #AAAAAA; border: 1px solid #AAAAAA;
} }
@ -45,19 +42,19 @@ div.soustitre {
font-size: 15px; font-size: 15px;
font-weight: bold; font-weight: bold;
color: #4965B3; color: #4965B3;
padding: 0em 1.2em 0.5em 2em; padding: 0 1.2em 0.5em 2em;
margin: 1.2em 1.2em 1.2em 1.2em; margin: 1.2em 1.2em 1.2em 1.2em;
border-bottom: 1px solid #8CACBB; border-bottom: 1px solid #8CACBB;
border-right: 1px solid #8CACBB; border-right: 1px solid #8CACBB;
text-align: right; text-align: right;
} }
inputdisabled input:disabled
{ {
background: #FDFDFD; background: #FDFDFD;
border: 1px solid #ACBCBB; border: 1px solid #ACBCBB;
padding: 0px 0px 0px 0px; padding: 0 0 0 0;
margin: 0px 0px 0px 0px; margin: 0 0 0 0;
} }
table.main { table.main {
@ -77,7 +74,7 @@ color: #777711;
div.error { div.error {
color: #550000; font-weight: bold; color: #550000; font-weight: bold;
padding: 0.2em 0.2em 0.2em 0.2em; padding: 0.2em 0.2em 0.2em 0.2em;
margin: 0.5em 0em 0.5em 0em; margin: 0.5em 0 0.5em 0;
border: 1px solid #6C7C8B; border: 1px solid #6C7C8B;
} }
@ -124,7 +121,7 @@ td.label {
background: #dcdcd3; background: #dcdcd3;
color: #5945A3; color: #5945A3;
padding: 5px 5px 5px 5px; padding: 5px 5px 5px 5px;
margin: 0em 0em 0em 0em; margin: 0 0 0 0;
border-bottom: 1px solid #8CACBB; border-bottom: 1px solid #8CACBB;
} }
@ -132,7 +129,7 @@ td.comment {
background: #dcdcd3; background: #dcdcd3;
color: black; color: black;
padding: 5px 5px 5px 5px; padding: 5px 5px 5px 5px;
margin: 0em 0em 0em 0em; margin: 0 0 0 0;
text-decoration:none; text-decoration:none;
font-size: 13px; font-size: 13px;
border-bottom: 1px solid #8CACBB; border-bottom: 1px solid #8CACBB;

View File

@ -358,8 +358,6 @@ function getProductOrService($authentication,$id='',$ref='',$ref_ext='')
'localtax1_tx' => $product->localtax1_tx, 'localtax1_tx' => $product->localtax1_tx,
'localtax2_tx' => $product->localtax2_tx, 'localtax2_tx' => $product->localtax2_tx,
'price_base_type' => $product->price_base_type,
'stock_real' => $product->stock_reel, 'stock_real' => $product->stock_reel,
'stock_alert' => $product->seuil_stock_alerte, 'stock_alert' => $product->seuil_stock_alerte,
'pmp' => $product->pmp, 'pmp' => $product->pmp,