';
+
}
print ' ';
@@ -1150,6 +1151,8 @@ llxFooter();
$db->close();
+exit; // don't know why but apache hangs with php 5.3.10-1ubuntu3.12 and apache 2.2.2 if i remove this exit or replace with return
+
/**
* Return table name of an alias. For this, we look for the "tablename as alias" in sql string.
@@ -1172,4 +1175,3 @@ function getablenamefromfield($code,$sqlmaxforexport)
}
else return '';
}
-
diff --git a/htdocs/fourn/commande/card.php b/htdocs/fourn/commande/card.php
index 725cd35a6cb..45670766788 100644
--- a/htdocs/fourn/commande/card.php
+++ b/htdocs/fourn/commande/card.php
@@ -317,7 +317,7 @@ if (empty($reshook))
{
$res=$productsupplier->fetch($idprod);
- $label = $productsupplier->libelle;
+ $label = $productsupplier->label;
$desc = $productsupplier->description;
if (trim($product_desc) != trim($desc)) $desc = dol_concatdesc($desc, $product_desc);
diff --git a/htdocs/fourn/facture/card.php b/htdocs/fourn/facture/card.php
index 01574caa2b2..1794c34a48d 100644
--- a/htdocs/fourn/facture/card.php
+++ b/htdocs/fourn/facture/card.php
@@ -690,7 +690,7 @@ if (empty($reshook))
{
$result=$productsupplier->fetch($idprod);
- $label = $productsupplier->libelle;
+ $label = $productsupplier->label;
$desc = $productsupplier->description;
if (trim($product_desc) != trim($desc)) $desc = dol_concatdesc($desc, $product_desc);
diff --git a/htdocs/fourn/product/categorie.php b/htdocs/fourn/product/categorie.php
index 448cf19e61e..ef07b730a97 100644
--- a/htdocs/fourn/product/categorie.php
+++ b/htdocs/fourn/product/categorie.php
@@ -115,7 +115,7 @@ if ($_GET["id"])
print "
";
print '
'.$langs->trans("Ref").'
'.$product->ref.'
';
- print '
'.$langs->trans("Label").'
'.$product->libelle.'
';
+ print '
'.$langs->trans("Label").'
'.$product->label.'
';
print " \n";
$c = new Categorie($db);
diff --git a/htdocs/fourn/product/photos.php b/htdocs/fourn/product/photos.php
index f20c360de6c..ba5c396c420 100644
--- a/htdocs/fourn/product/photos.php
+++ b/htdocs/fourn/product/photos.php
@@ -102,7 +102,7 @@ if ($id)
print '
';
print $object->getLibStatut(2);
print '
';
- print '
'.$langs->trans("Label").'
'.$object->libelle.'
';
+ print '
'.$langs->trans("Label").'
'.$object->label.'
';
print '
'.$langs->trans("SellingPrice").'
'.price($object->price).'
';
print " \n";
diff --git a/htdocs/install/mysql/migration/3.7.0-3.8.0.sql b/htdocs/install/mysql/migration/3.7.0-3.8.0.sql
index 6d03891a8e3..603946c6351 100755
--- a/htdocs/install/mysql/migration/3.7.0-3.8.0.sql
+++ b/htdocs/install/mysql/migration/3.7.0-3.8.0.sql
@@ -85,7 +85,7 @@ ALTER TABLE llx_projet_task MODIFY COLUMN duration_effective real DEFAULT 0 NULL
ALTER TABLE llx_projet_task MODIFY COLUMN planned_workload real DEFAULT 0 NULL;
-ALTER TABLE llx_commande_fournisseur MODIFY COLUMN date_livraison datetime;
+ALTER TABLE llx_commande_fournisseur MODIFY COLUMN date_livraison datetime;
-- Add id commandefourndet in llx_commande_fournisseur_dispatch to correct /fourn/commande/dispatch.php display when several times same product in supplier order
ALTER TABLE llx_commande_fournisseur_dispatch ADD COLUMN fk_commandefourndet INTEGER NOT NULL DEFAULT 0 AFTER fk_product;
@@ -112,12 +112,12 @@ ALTER TABLE llx_product_price ADD COLUMN fk_price_expression integer DEFAULT NUL
--create table for user conf of printing driver
-CREATE TABLE llx_printing
+CREATE TABLE llx_printing
(
rowid integer AUTO_INCREMENT PRIMARY KEY,
tms timestamp,
datec datetime,
- printer_name text NOT NULL,
+ printer_name text NOT NULL,
printer_location text NOT NULL,
printer_id varchar(255) NOT NULL,
copy integer NOT NULL DEFAULT '1',
@@ -199,7 +199,7 @@ CREATE TABLE llx_expensereport (
total_ht double(24,8) DEFAULT 0,
total_tva double(24,8) DEFAULT 0,
localtax1 double(24,8) DEFAULT 0, -- amount total localtax1
- localtax2 double(24,8) DEFAULT 0, -- amount total localtax2
+ localtax2 double(24,8) DEFAULT 0, -- amount total localtax2
total_ttc double(24,8) DEFAULT 0,
date_debut date NOT NULL,
date_fin date NOT NULL,
@@ -292,11 +292,11 @@ ALTER TABLE llx_commande_fournisseurdet ADD COLUMN special_code integer DEFAULT
ALTER TABLE llx_commande_fournisseurdet ADD COLUMN rang integer DEFAULT 0;
ALTER TABLE llx_commande_fournisseurdet ADD COLUMN fk_parent_line integer NULL after fk_commande;
-ALTER TABLE llx_projet ADD COLUMN date_close datetime DEFAULT NULL;
+ALTER TABLE llx_projet ADD COLUMN date_close datetime DEFAULT NULL;
ALTER TABLE llx_projet ADD COLUMN fk_user_close integer DEFAULT NULL;
-
+
-- Module AskPriceSupplier --
CREATE TABLE llx_askpricesupplier (
rowid integer NOT NULL AUTO_INCREMENT PRIMARY KEY,
@@ -608,4 +608,9 @@ ALTER TABLE llx_user ADD INDEX idx_user_api_key (api_key);
+ALTER TABLE llx_actioncomm ADD COLUMN email_msgid varchar(256);
+ALTER TABLE llx_actioncomm ADD COLUMN email_from varchar(256);
+ALTER TABLE llx_actioncomm ADD COLUMN email_sender varchar(256);
+ALTER TABLE llx_actioncomm ADD COLUMN email_to varchar(256);
+ALTER TABLE llx_actioncomm ADD COLUMN errors_to varchar(256);
diff --git a/htdocs/install/mysql/tables/llx_actioncomm.sql b/htdocs/install/mysql/tables/llx_actioncomm.sql
index f68d99f6a72..826f4d4c268 100644
--- a/htdocs/install/mysql/tables/llx_actioncomm.sql
+++ b/htdocs/install/mysql/tables/llx_actioncomm.sql
@@ -24,15 +24,12 @@ create table llx_actioncomm
(
id integer AUTO_INCREMENT PRIMARY KEY,
ref_ext varchar(128),
- entity integer DEFAULT 1 NOT NULL, -- multi company id
+ entity integer DEFAULT 1 NOT NULL, -- multi company id
datep datetime, -- date start
datep2 datetime, -- date end
- datea datetime, -- deprecated
- datea2 datetime, -- deprecated
- fk_action integer, -- type of action (optional link with llx_c_actioncomm or null)
- code varchar(32) NULL, -- code of action for automatic action
- label varchar(128) NOT NULL, -- label/title of event
+ fk_action integer, -- type of action (optional link with id in llx_c_actioncomm or null)
+ code varchar(32) NULL, -- code of action for automatic action ('AC_OTH_AUTO' for automatic actions, 'AC_EMAILIN_AUTO' for email input, 'AC_xxx' for manual action...)
datec datetime, -- date creation
tms timestamp, -- date modification
@@ -44,7 +41,7 @@ create table llx_actioncomm
fk_contact integer,
fk_parent integer NOT NULL default 0,
- fk_user_action integer, -- user id of owner of action (currently also user id of actor that must do action. In future, actors assigned to action will be an array into table llx_actioncomm_resources)
+ fk_user_action integer, -- user id of owner of action (note that assigned users to event are store into another table)
transparency integer, -- transparency (ical standard). used to say if user assigned to event are busy or not by event (in future version, this field is deprecated and will be stored into table llx_actioncomm_resources)
fk_user_done integer, -- user id of user that has made action (deprecated)
@@ -55,8 +52,15 @@ create table llx_actioncomm
percent smallint NOT NULL default 0,
location varchar(128),
durationp real, -- planed duration
- durationa real, -- deprecated
- note text,
+
+ label varchar(256) NOT NULL, -- label/title of event or topic of email
+ note text, -- note of event or content of email
+
+ email_msgid varchar(256), -- when event was an email, we store here the msgid
+ email_from varchar(256), -- when event was an email, we store here the from
+ email_sender varchar(256), -- when event was an email, we store here the sender
+ email_to varchar(256), -- when event was an email, we store here the email_to
+ errors_to varchar(256), -- when event was an email, we store here the erros_to
fk_element integer DEFAULT NULL,
elementtype varchar(32) DEFAULT NULL
diff --git a/htdocs/margin/productMargins.php b/htdocs/margin/productMargins.php
index b359287d24f..b9bd6e5099d 100644
--- a/htdocs/margin/productMargins.php
+++ b/htdocs/margin/productMargins.php
@@ -263,7 +263,7 @@ if ($result)
$product_static->type=$objp->fk_product_type;
$product_static->id=$objp->rowid;
$product_static->ref=$objp->ref;
- $product_static->libelle=$objp->label;
+ $product_static->label=$objp->label;
$text=$product_static->getNomUrl(1);
print $text.= ' - '.$objp->label;
print "\n";
diff --git a/htdocs/margin/tabs/productMargins.php b/htdocs/margin/tabs/productMargins.php
index eb3ac32c424..d3c53eb9e2e 100644
--- a/htdocs/margin/tabs/productMargins.php
+++ b/htdocs/margin/tabs/productMargins.php
@@ -92,7 +92,7 @@ if ($id > 0 || ! empty($ref))
print '';
// Libelle
- print '