*
* This program is free software; you can redistribute it and/or modify
@@ -29,18 +29,18 @@
// Load Dolibarr environment
require '../main.inc.php';
-require_once DOL_DOCUMENT_ROOT.'/core/class/html.formfile.class.php';
-require_once DOL_DOCUMENT_ROOT.'/core/lib/ecm.lib.php';
-require_once DOL_DOCUMENT_ROOT.'/ecm/class/ecmdirectory.class.php';
-require_once DOL_DOCUMENT_ROOT.'/ecm/class/ecmfiles.class.php';
-
/**
* @var Conf $conf
* @var DoliDB $db
+ * @var ExtraFields $extrafields
* @var HookManager $hookmanager
* @var Translate $langs
* @var User $user
*/
+require_once DOL_DOCUMENT_ROOT.'/core/class/html.formfile.class.php';
+require_once DOL_DOCUMENT_ROOT.'/core/lib/ecm.lib.php';
+require_once DOL_DOCUMENT_ROOT.'/ecm/class/ecmdirectory.class.php';
+require_once DOL_DOCUMENT_ROOT.'/ecm/class/ecmfiles.class.php';
// Load translation files required by the page
$langs->loadLangs(array('ecm'));
@@ -106,7 +106,7 @@ $filepathtodocument = $relativetodocument.$urlfile;
// Try to load object from index
$object = new EcmFiles($db);
-$extrafields = new ExtraFields($db);
+
// fetch optionals attributes and labels
$extrafields->fetch_name_optionals_label($object->table_element);
diff --git a/htdocs/expensereport/class/expensereportline.class.php b/htdocs/expensereport/class/expensereportline.class.php
index ddce5c718ce..0e4d992a368 100644
--- a/htdocs/expensereport/class/expensereportline.class.php
+++ b/htdocs/expensereport/class/expensereportline.class.php
@@ -222,6 +222,11 @@ class ExpenseReportLine extends CommonObjectLine
*/
public $fk_ecm_files;
+ /**
+ * @var int 0: not check, 1 :tchecked ok -1 : not good
+ */
+ public $tcheck_file;
+
/**
* @var string
*/
@@ -249,7 +254,7 @@ class ExpenseReportLine extends CommonObjectLine
$sql = 'SELECT fde.rowid, fde.fk_expensereport, fde.fk_c_type_fees, fde.fk_c_exp_tax_cat, fde.fk_projet as fk_project, fde.date,';
$sql .= ' fde.tva_tx as vatrate, fde.vat_src_code, fde.comments, fde.qty, fde.value_unit, fde.total_ht, fde.total_tva, fde.total_ttc, fde.fk_ecm_files,';
$sql .= ' fde.localtax1_tx, fde.localtax2_tx, fde.localtax1_type, fde.localtax2_type, fde.total_localtax1, fde.total_localtax2, fde.rule_warning_message,';
- $sql .= ' ctf.code as type_fees_code, ctf.label as type_fees_libelle,';
+ $sql .= ' ctf.code as type_fees_code, ctf.label as type_fees_libelle, tcheck_file';
$sql .= ' pjt.rowid as projet_id, pjt.title as projet_title, pjt.ref as projet_ref';
$sql .= ' FROM '.MAIN_DB_PREFIX.'expensereport_det as fde';
$sql .= ' LEFT JOIN '.MAIN_DB_PREFIX.'c_type_fees as ctf ON fde.fk_c_type_fees=ctf.id'; // Sometimes type of expense report has been removed, so we use a left join here.
@@ -293,6 +298,7 @@ class ExpenseReportLine extends CommonObjectLine
$this->total_localtax2 = $objp->total_localtax2;
$this->fk_ecm_files = $objp->fk_ecm_files;
+ $this->tcheck_file = $objp->tcheck_file;
$this->rule_warning_message = $objp->rule_warning_message;
diff --git a/htdocs/fourn/commande/dispatch.php b/htdocs/fourn/commande/dispatch.php
index c595dd3aae7..b01077beae7 100644
--- a/htdocs/fourn/commande/dispatch.php
+++ b/htdocs/fourn/commande/dispatch.php
@@ -1319,7 +1319,7 @@ if ($id > 0 || !empty($ref)) {
include_once DOL_DOCUMENT_ROOT.'/product/stock/class/productlot.class.php';
$lot = new Productlot($db);
$lot->fetch(0, $objp->pid, $objp->batch);
- print '| '.$lot->getNomUrl(1).' | ';
+ print ''.$lot->getNomUrl(1).' | ';
if (!getDolGlobalString('PRODUCT_DISABLE_SELLBY')) {
print ''.dol_print_date($lot->sellby, 'day').' | ';
}
@@ -1327,7 +1327,7 @@ if ($id > 0 || !empty($ref)) {
print ''.dol_print_date($lot->eatby, 'day').' | ';
}
} else {
- print ' | ';
+ print ' | ';
if (!getDolGlobalString('PRODUCT_DISABLE_SELLBY')) {
print ' | ';
}
diff --git a/htdocs/fourn/commande/tpl/linkedobjectblock.tpl.php b/htdocs/fourn/commande/tpl/linkedobjectblock.tpl.php
index ee434a65d3c..2f27447b8db 100644
--- a/htdocs/fourn/commande/tpl/linkedobjectblock.tpl.php
+++ b/htdocs/fourn/commande/tpl/linkedobjectblock.tpl.php
@@ -70,7 +70,12 @@ foreach ($linkedObjectBlock as $key => $objectlink) {
">trans("SupplierOrder")); ?> |
getNomUrl(1); ?> |
|
- date, 'day'); ?> |
+ trans("Date"), 'generic', 'class="pictofixedwidth"').dol_print_date($objectlink->date, 'day');
+ if (!empty($objectlink->delivery_date)) {
+ echo ' '.img_picto($langs->trans("DateDeliveryPlanned"), 'reception', 'class="pictofixedwidth"').dol_print_date($objectlink->delivery_date, 'day');
+ }
+ ?> |
hasRight("fournisseur", "commande", "lire")) {
$total += $objectlink->total_ht;
diff --git a/htdocs/install/mysql/migration/23.0.0-24.0.0.sql b/htdocs/install/mysql/migration/23.0.0-24.0.0.sql
index f88decf213d..4167944a509 100644
--- a/htdocs/install/mysql/migration/23.0.0-24.0.0.sql
+++ b/htdocs/install/mysql/migration/23.0.0-24.0.0.sql
@@ -52,7 +52,7 @@ ALTER TABLE llx_categorie_project_task ADD INDEX idx_categorie_project_fk_task (
ALTER TABLE llx_categorie_project_task ADD CONSTRAINT fk_categorie_project_task_rowid FOREIGN KEY (fk_project_task) REFERENCES llx_projet_task (rowid);
-- V24 migration
-
+ALTER TABLE llx_expensereport_det ADD COLUMN tcheck_file integer DEFAULT NULL after fk_ecm_files;
ALTER TABLE llx_actioncomm_reminder MODIFY COLUMN fk_user integer DEFAULT NULL;
ALTER TABLE llx_actioncomm_reminder ADD COLUMN fk_soc integer DEFAULT NULL AFTER fk_user;
ALTER TABLE llx_actioncomm_reminder ADD COLUMN fk_contact integer DEFAULT NULL AFTER fk_soc;
diff --git a/htdocs/install/mysql/tables/llx_expensereport_det.sql b/htdocs/install/mysql/tables/llx_expensereport_det.sql
index 04af61cfe55..8ce3725ec30 100644
--- a/htdocs/install/mysql/tables/llx_expensereport_det.sql
+++ b/htdocs/install/mysql/tables/llx_expensereport_det.sql
@@ -54,6 +54,7 @@ CREATE TABLE llx_expensereport_det
multicurrency_total_ttc double(24,8) DEFAULT 0,
fk_facture integer DEFAULT 0, -- ID of customer invoice line if expense is rebilled to a customer
fk_ecm_files integer DEFAULT NULL, -- ID of ECM file that is source document of expense report
+ tcheck_file integer DEFAULT NULL, -- check validity of file with line 0 : not see, 1 : tchecked -1 : not good
fk_code_ventilation integer DEFAULT 0,
rang integer DEFAULT 0, -- position of line
import_key varchar(14),
diff --git a/htdocs/ticket/card.php b/htdocs/ticket/card.php
index 58f646ebd16..c1f0ddc7c6c 100644
--- a/htdocs/ticket/card.php
+++ b/htdocs/ticket/card.php
@@ -2,7 +2,7 @@
/* Copyright (C) 2013-2016 Jean-François FERRY
* Copyright (C) 2016 Christophe Battarel
* Copyright (C) 2018 Laurent Destailleur
- * Copyright (C) 2021-2025 Frédéric France
+ * Copyright (C) 2021-2026 Frédéric France
* Copyright (C) 2021 Alexandre Spangaro
* Copyright (C) 2022-2023 Charlene Benke
* Copyright (C) 2023 Benjamin Falière
@@ -35,6 +35,7 @@ require '../main.inc.php';
/**
* @var Conf $conf
* @var DoliDB $db
+ * @var ExtraFields $extrafields
* @var HookManager $hookmanager
* @var Translate $langs
* @var User $user
@@ -42,7 +43,6 @@ require '../main.inc.php';
require_once DOL_DOCUMENT_ROOT.'/ticket/class/actions_ticket.class.php';
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formticket.class.php';
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formfile.class.php';
-require_once DOL_DOCUMENT_ROOT.'/core/class/extrafields.class.php';
require_once DOL_DOCUMENT_ROOT.'/core/lib/ticket.lib.php';
require_once DOL_DOCUMENT_ROOT.'/core/lib/date.lib.php';
require_once DOL_DOCUMENT_ROOT.'/core/lib/company.lib.php';
@@ -73,8 +73,8 @@ $projectid = GETPOSTINT('projectid');
$notifyTiers = GETPOST("notify_tiers_at_create", 'alpha');
$mine = GETPOSTINT('mine');
-$action = GETPOST('action', 'aZ09');
-$cancel = GETPOST('cancel', 'alpha');
+$action = GETPOST('action', 'aZ09');
+$cancel = GETPOST('cancel', 'alpha');
$backtopage = GETPOST('backtopage', 'alpha');
$backtopageforcancel = GETPOST('backtopageforcancel', 'alpha');
$contextpage = GETPOST('contextpage', 'aZ');
@@ -99,7 +99,6 @@ if (GETPOST('actioncode', 'array')) {
$hookmanager->initHooks(array('ticketcard', 'globalcard'));
$object = new Ticket($db);
-$extrafields = new ExtraFields($db);
// Fetch optionals attributes and labels
$extrafields->fetch_name_optionals_label($object->table_element);
diff --git a/htdocs/user/card.php b/htdocs/user/card.php
index 345f5142715..bc0e6485451 100644
--- a/htdocs/user/card.php
+++ b/htdocs/user/card.php
@@ -41,6 +41,7 @@ require '../main.inc.php';
/**
* @var Conf $conf
* @var DoliDB $db
+ * @var ExtraFields $extrafields
* @var HookManager $hookmanager
* @var Translate $langs
* @var User $user
@@ -55,7 +56,6 @@ require_once DOL_DOCUMENT_ROOT.'/core/class/html.formfile.class.php';
require_once DOL_DOCUMENT_ROOT.'/core/lib/company.lib.php';
require_once DOL_DOCUMENT_ROOT.'/core/lib/images.lib.php';
require_once DOL_DOCUMENT_ROOT.'/core/lib/usergroups.lib.php';
-require_once DOL_DOCUMENT_ROOT.'/core/class/extrafields.class.php';
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formadmin.class.php';
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formcompany.class.php';
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formother.class.php';
@@ -101,7 +101,6 @@ $dateofbirth = dol_mktime(0, 0, 0, GETPOSTINT('dateofbirthmonth'), GETPOSTINT('d
$childids = $user->getAllChildIds(1); // For test on hrm fields (like salary visibility)
$object = new User($db);
-$extrafields = new ExtraFields($db);
// fetch optionals attributes and labels
$extrafields->fetch_name_optionals_label($object->table_element);
|