GESTION : operation add receipt number
This commit is contained in:
parent
2d262a2016
commit
0df0c7d6da
3 changed files with 21 additions and 22 deletions
|
|
@ -234,7 +234,9 @@ class Follow_Up
|
||||||
);
|
);
|
||||||
|
|
||||||
// List opération liées
|
// 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)
|
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));
|
where ag_id=$1 order by jr_date", array($this->ag_id));
|
||||||
$iconcerned=new IConcerned('operation');
|
$iconcerned=new IConcerned('operation');
|
||||||
|
|
|
||||||
|
|
@ -224,7 +224,9 @@ if ($this->ag_id > 0 && Document_Option::is_enable_contact_multiple($this->dt_id
|
||||||
if ( $p_view != 'READ')
|
if ( $p_view != 'READ')
|
||||||
{
|
{
|
||||||
$js = HtmlInput::button_action_remove_operation($operation[$o]['ago_id']);
|
$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>';
|
.$js.'</li>';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
||||||
|
|
@ -51,27 +51,22 @@ Ensuite copier bootstrap.php.example vers bootstrap.php et modifier les variable
|
||||||
|
|
||||||
Testing commande en ligne
|
Testing commande en ligne
|
||||||
=========================
|
=========================
|
||||||
|
Si vous utilisez Xdebug, il faut le désactiver avec ceci
|
||||||
|
|
||||||
|
export XDEBUG_MODE=off
|
||||||
|
|
||||||
|
Dans une autre fenêtre, si vous testez la transformation avec libreOffice
|
||||||
|
|
||||||
|
unoconv -l
|
||||||
|
|
||||||
|
Et aussi, supprimer le fichier
|
||||||
|
|
||||||
|
/tmp/web.xml
|
||||||
|
|
||||||
|
Dans le fichier noalyss/include/config.inc.php , donner 1 à DEBUGNOALYSS
|
||||||
|
|
||||||
|
define ('DEBUGNOALYSS',1);
|
||||||
|
|
||||||
test (depuis repertoire include)
|
test (depuis repertoire include)
|
||||||
php <chemin>/phpunit.phar --tap --colors --bootstrap ../bootstrap.php class_acc_accountTest.php
|
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
|
|
||||||
|
|
||||||
|
|
||||||
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
|
|
||||||
|
|
||||||
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"
|
|
||||||
|
|
||||||
Note développeur
|
|
||||||
================
|
|
||||||
Pour avoir tous les fichiers à inclure
|
|
||||||
--------------------------------------
|
|
||||||
Depuis ici, faites
|
|
||||||
|
|
||||||
cd ../include
|
|
||||||
|
|
||||||
find class lib -type f | awk '{print "require_once NOALYSS_INCLUDE.--/"$1"--;";}'|sed -e 's/--/"/g' >> ../unit-test/bootstrap.php
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue