[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 104/219: Réécriture de CFGPCMN pour util
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 104/219: Réécriture de CFGPCMN pour utiliser ManageTable pas de delete proposé si compte utilisé |
Date: |
Mon, 18 Dec 2017 13:22:45 -0500 (EST) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 754eb4420eb4b566e6531dbed4bddfc21e3e2aed
Author: Dany De Bontridder <address@hidden>
Date: Tue Oct 24 00:31:54 2017 +0200
Réécriture de CFGPCMN pour utiliser ManageTable
pas de delete proposé si compte utilisé
---
include/class/acc_plan_mtable.class.php | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/include/class/acc_plan_mtable.class.php
b/include/class/acc_plan_mtable.class.php
index 8902fd3..fae6345 100644
--- a/include/class/acc_plan_mtable.class.php
+++ b/include/class/acc_plan_mtable.class.php
@@ -74,6 +74,10 @@ class Acc_Plan_MTable extends Manage_Table_SQL
for ($i=0; $i<$nb_order; $i++)
{
$v=$this->a_order[$i];
+ $nb=0;
+ $cn=Dossier::connect();
+ $nb=$cn->get_value("select count(*) from jrnx where
j_poste=$1",[$p_row['pcm_val']]);
+ $nb+=$cn->get_value("select count(*) from tmp_pcmn where
pcm_val_parent=$1",[$p_row['pcm_val']]);
if ($v=="pcm_val")
{
$js=sprintf("onclick=\"%s.input('%s','%s');\"",
$this->object_name,
@@ -90,8 +94,8 @@ class Acc_Plan_MTable extends Manage_Table_SQL
}
elseif ($v=="pcm_lib")
{
- $cn=Dossier::connect();
- if ( $cn->get_value("select count(*) from jrnx where
j_poste=$1",[$p_row['pcm_val']])>0){
+
+ if ( $nb >0){
echo "<td>";
echo
HtmlInput::history_account($p_row['pcm_val'],h($p_row["pcm_lib"]));
echo "</td>";
@@ -106,8 +110,8 @@ class Acc_Plan_MTable extends Manage_Table_SQL
echo td($p_row[$v]);
}
}
- $this->display_icon_del($p_row);
-
+ if ( $nb == 0 ) $this->display_icon_del($p_row);
+ else echo td(" ");
echo '</tr>';
- [Noalyss-commit] [noalyss] 67/219: Icon : for Inplace Edit field, (continued)
- [Noalyss-commit] [noalyss] 67/219: Icon : for Inplace Edit field, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 166/219: Space, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 19/219: Replace global $http by new httpInput() to make the test of scenario working, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 128/219: Esthetic, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 99/219: CSS : button border, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 108/219: task #0001272: Rendre possible l'appel de la calculatrice depuis le fin fond d'une page., Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 174/219: space, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 114/219: Change max article in STOCK INV, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 16/219: Update test with new architecture, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 173/219: Improve calc, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 104/219: Réécriture de CFGPCMN pour utiliser ManageTable pas de delete proposé si compte utilisé,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 14/219: Infobulle : warning : esthetic, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 44/219: fix minor bug + doc, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 46/219: Manage_Table : Improve Javascript for adding / removing row of table, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 27/219: Task #0001443: opérations rapprochées : bug quand on utilise des tva avec autoliquidation Check with the view v_quant_detail and take into account the negative VAT, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 33/219: Task #0001324: Afficher la date (période) dans FSALDO, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 198/219: Task #001381 : reinitialize the search_form, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 154/219: Task #1440 CA - opération diverses inaccessibles Task #1370 les OD en comptabilité analytique - problème., Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 209/219: Merge branch 'master' of ns3:/srv/git/noalyss, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 186/219: Protect queryString with encodeURI, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 207/219: Task #1381 Change esthetic Search Filter, Dany De Bontridder, 2017/12/18