';
From 68c99d01a7a545ec91965e2f717c2437d717733a Mon Sep 17 00:00:00 2001
From: florian HENRY
Date: Fri, 5 Oct 2018 10:35:32 +0200
Subject: [PATCH 09/13] OMG!!!! var_dump....
---
htdocs/core/lib/company.lib.php | 1 -
1 file changed, 1 deletion(-)
diff --git a/htdocs/core/lib/company.lib.php b/htdocs/core/lib/company.lib.php
index 02652892305..db6ef2de6cb 100644
--- a/htdocs/core/lib/company.lib.php
+++ b/htdocs/core/lib/company.lib.php
@@ -1628,7 +1628,6 @@ function show_actions_done($conf, $langs, $db, $filterobj, $objcon='', $noprint=
$contactstatic->lastname=$histo[$key]['lastname'];
$contactstatic->firstname=$histo[$key]['firstname'];
$contactstatic->id=$histo[$key]['contact_id'];
- var_dump($histo[$key]['contact_id']);
$out.='| '.$contactstatic->getNomUrl(1,'',10).' | ';
} elseif (isset($histo[$key]['socpeopleassigned']) && is_array($histo[$key]['socpeopleassigned']) && count($histo[$key]['socpeopleassigned']) > 0) {
$out .= '';
From 82651cd920478b419d0677081be4a5fbd3e81b42 Mon Sep 17 00:00:00 2001
From: Marc de Lima Lucio
Date: Fri, 5 Oct 2018 12:12:04 +0200
Subject: [PATCH 10/13] FIX: invoice stats: situation invoices were not counted
---
htdocs/compta/facture/class/facturestats.class.php | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/htdocs/compta/facture/class/facturestats.class.php b/htdocs/compta/facture/class/facturestats.class.php
index b6874862286..484d6447878 100644
--- a/htdocs/compta/facture/class/facturestats.class.php
+++ b/htdocs/compta/facture/class/facturestats.class.php
@@ -84,8 +84,8 @@ class FactureStats extends Stats
$this->where.=" AND f.fk_soc = ".$this->socid;
}
if ($this->userid > 0) $this->where.=' AND f.fk_user_author = '.$this->userid;
- if (! empty($conf->global->FACTURE_DEPOSITS_ARE_JUST_PAYMENTS)) $this->where.= " AND f.type IN (0,1,2)";
- else $this->where.= " AND f.type IN (0,1,2,3)";
+ if (! empty($conf->global->FACTURE_DEPOSITS_ARE_JUST_PAYMENTS)) $this->where.= " AND f.type IN (0,1,2,5)";
+ else $this->where.= " AND f.type IN (0,1,2,3,5)";
}
From 320ca3db673a9b8098ea3ffaadd1b460dc0b5780 Mon Sep 17 00:00:00 2001
From: Maxime Kohlhaas
Date: Sat, 6 Oct 2018 22:53:28 +0200
Subject: [PATCH 11/13] Fix request on project overview
Fixes #9220
---
htdocs/projet/element.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/htdocs/projet/element.php b/htdocs/projet/element.php
index 3263309187a..713e5ec74f1 100644
--- a/htdocs/projet/element.php
+++ b/htdocs/projet/element.php
@@ -291,7 +291,7 @@ $listofreferent=array(
'title'=>"ListSupplierProposalsAssociatedProject",
'class'=>'SupplierProposal',
'table'=>'supplier_proposal',
- 'datefieldname'=>'date',
+ 'datefieldname'=>'datec',
'urlnew'=>DOL_URL_ROOT.'/supplier_proposal/card.php?action=create&projectid='.$id.'&socid='.$socid,
'lang'=>'supplier_proposal',
'buttonnew'=>'AddSupplierProposal',
From 021f9552dd91fb017d3ff403f3722d2bcc143365 Mon Sep 17 00:00:00 2001
From: gauthier
Date: Mon, 8 Oct 2018 15:41:31 +0200
Subject: [PATCH 12/13] FIX : when we're just admin and not super admin, if we
create new user with transverse mode, we don't see it then we can't add him
in usergroup
---
htdocs/user/index.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/htdocs/user/index.php b/htdocs/user/index.php
index 704c04d2593..813d1e5ad05 100644
--- a/htdocs/user/index.php
+++ b/htdocs/user/index.php
@@ -194,7 +194,7 @@ $sql.= " LEFT JOIN ".MAIN_DB_PREFIX."user as u2 ON u.fk_user = u2.rowid";
// TODO add hook
if (! empty($conf->multicompany->enabled)) {
if (! empty($conf->global->MULTICOMPANY_TRANSVERSE_MODE)) {
- if (! empty($user->admin) && empty($user->entity)) {
+ if (! empty($user->admin)) {
if ($conf->entity == 1) {
$sql.= " WHERE u.entity IS NOT NULL";
} else {
From dc498173c8755119fc63a46df9c434fd2b1a0c9d Mon Sep 17 00:00:00 2001
From: Laurent Destailleur
Date: Tue, 9 Oct 2018 16:58:55 +0200
Subject: [PATCH 13/13] Code comment
---
htdocs/install/mysql/tables/llx_facturedet.sql | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/htdocs/install/mysql/tables/llx_facturedet.sql b/htdocs/install/mysql/tables/llx_facturedet.sql
index 05c68e92751..bf008d41f03 100644
--- a/htdocs/install/mysql/tables/llx_facturedet.sql
+++ b/htdocs/install/mysql/tables/llx_facturedet.sql
@@ -52,7 +52,7 @@ create table llx_facturedet
date_end datetime DEFAULT NULL, -- date end if service
info_bits integer DEFAULT 0, -- VAT NPR or not (for france only)
- buy_price_ht double(24,8) DEFAULT 0, -- buying price
+ buy_price_ht double(24,8) DEFAULT 0, -- buying price. Note: this value is saved as an always positive value, even on credit notes (it is price we bought the product before selling it).
fk_product_fournisseur_price integer DEFAULT NULL, -- reference of supplier price when line was added (may be used to update buy_price_ht current price when future invoice will be created)
fk_code_ventilation integer DEFAULT 0 NOT NULL, -- Id in table llx_accounting_bookeeping to know accounting account for product line
|