[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 03/11: GESTION : operation add receipt number
From: |
dwm |
Subject: |
[Noalyss-commit] [noalyss] 03/11: GESTION : operation add receipt number |
Date: |
Thu, 8 Aug 2024 14:52:16 -0400 (EDT) |
sparkyx pushed a commit to branch unstable
in repository noalyss.
commit 0df0c7d6da70f173ffc3a0022102a990c3f64b11
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Fri Aug 2 10:38:04 2024 +0200
GESTION : operation add receipt number
---
include/class/follow_up.class.php | 4 +++-
include/template/follow_up-display.php | 4 +++-
unit-test/README | 31 +++++++++++++------------------
3 files changed, 19 insertions(+), 20 deletions(-)
diff --git a/include/class/follow_up.class.php
b/include/class/follow_up.class.php
index aa112d398..09c660669 100644
--- a/include/class/follow_up.class.php
+++ b/include/class/follow_up.class.php
@@ -234,7 +234,9 @@ class Follow_Up
);
// List opération liées
- $operation=$this->db->get_array("select
ago_id,j.jr_id,j.jr_internal,j.jr_comment,to_char(j.jr_date,'DD.MM.YY') as
str_date
+ $operation=$this->db->get_array("select
ago_id,j.jr_id,j.jr_internal,j.jr_comment
+ ,to_char(j.jr_date,'DD.MM.YY')
as str_date
+ ,jr_pj_number
from jrn as j join action_gestion_operation as ago on
(j.jr_id=ago.jr_id)
where ag_id=$1 order by jr_date", array($this->ag_id));
$iconcerned=new IConcerned('operation');
diff --git a/include/template/follow_up-display.php
b/include/template/follow_up-display.php
index fe090fb2e..798b3da7b 100644
--- a/include/template/follow_up-display.php
+++ b/include/template/follow_up-display.php
@@ -224,7 +224,9 @@ if ($this->ag_id > 0 &&
Document_Option::is_enable_contact_multiple($this->dt_id
if ( $p_view != 'READ')
{
$js =
HtmlInput::button_action_remove_operation($operation[$o]['ago_id']);
- echo '<li
id="op'.$operation[$o]['ago_id'].'">'.$operation[$o]['str_date']."
".HtmlInput::detail_op($operation[$o]['jr_id'],$operation[$o]['jr_internal'])."
".h($operation[$o]['jr_comment'])." "
+ echo '<li
id="op'.$operation[$o]['ago_id'].'">'.$operation[$o]['str_date']." "
+
.HtmlInput::detail_op($operation[$o]['jr_id'],sprintf("%s (%s)
",$operation[$o]['jr_pj_number'],$operation[$o]['jr_internal']))
+ ." ".h($operation[$o]['jr_comment'])." "
.$js.'</li>';
}
else
diff --git a/unit-test/README b/unit-test/README
index 7128a5a5f..6950dfc14 100644
--- a/unit-test/README
+++ b/unit-test/README
@@ -51,27 +51,22 @@ Ensuite copier bootstrap.php.example vers bootstrap.php et
modifier les variable
Testing commande en ligne
=========================
+Si vous utilisez Xdebug, il faut le désactiver avec ceci
-test (depuis repertoire include)
- php <chemin>/phpunit.phar --tap --colors --bootstrap ../bootstrap.php
class_acc_accountTest.php
-
-Tous les fichiers
- for i in *.php;do php <chemin>/phpunit.phar --tap --colors --bootstrap
../bootstrap.php $i;done
+ export XDEBUG_MODE=off
+Dans une autre fenêtre, si vous testez la transformation avec libreOffice
+
+ unoconv -l
-Génération pour tous les fichiers
-=================================
-Permet de voir les lignes de code qui ont été testées
-php <chemin>/phpunit.phar --coverage-html html --bootstrap bootstrap.php
include
+Et aussi, supprimer le fichier
+
+ /tmp/web.xml
-exemple depuis NETBEANS "/usr/bin/php"
"/home/dany/Program/phpunit-skelgen.phar" "--ansi" "generate-test"
"--bootstrap=/home/dany/developpement/phpcompta/noalyss/unit-test/bootstrap.php"
"View_SQL"
"/home/dany/developpement/phpcompta/noalyss/include/lib/view_sql.class.php"
"View_SQLTest"
"/home/dany/developpement/phpcompta/noalyss/unit-test/include/lib/view_sql.classTest.php"
+Dans le fichier noalyss/include/config.inc.php , donner 1 à DEBUGNOALYSS
-Note développeur
-================
-Pour avoir tous les fichiers à inclure
---------------------------------------
-Depuis ici, faites
-
-cd ../include
+ define ('DEBUGNOALYSS',1);
+
+test (depuis repertoire include)
+ php <chemin>/phpunit.phar --tap --colors --bootstrap ../bootstrap.php
class_acc_accountTest.php
-find class lib -type f | awk '{print "require_once
NOALYSS_INCLUDE.--/"$1"--;";}'|sed -e 's/--/"/g' >> ../unit-test/bootstrap.php
- [Noalyss-commit] [noalyss] branch unstable updated (65dd4e31c -> 451b9cb7c), dwm, 2024/08/08
- [Noalyss-commit] [noalyss] 03/11: GESTION : operation add receipt number,
dwm <=
- [Noalyss-commit] [noalyss] 11/11: documentation, dwm, 2024/08/08
- [Noalyss-commit] [noalyss] 01/11: Documentation, dwm, 2024/08/08
- [Noalyss-commit] [noalyss] 07/11: CCARD : rewrite, dwm, 2024/08/08
- [Noalyss-commit] [noalyss] 04/11: CCARD : rewriting interface, code cleanup, dwm, 2024/08/08
- [Noalyss-commit] [noalyss] 08/11: new function alternate_row_color_list, dwm, 2024/08/08
- [Noalyss-commit] [noalyss] 09/11: CCARD : remove category card with confirm, remove dead code, dwm, 2024/08/08
- [Noalyss-commit] [noalyss] 05/11: Javascript : documentation avec JSDOC, dwm, 2024/08/08
- [Noalyss-commit] [noalyss] 06/11: Cosmetic h1.legend, legend & fieldset, dwm, 2024/08/08
- [Noalyss-commit] [noalyss] 10/11: Fix : retrieve label from tva_code, dwm, 2024/08/08
- [Noalyss-commit] [noalyss] 02/11: Bug : fix create event from AGENDA, dwm, 2024/08/08