[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 05/10: Task #1077 - Clef renvoit incorrect Pr
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 05/10: Task #1077 - Clef renvoit incorrect Problem comes from Anc_Key->fill_table : target for hplan was not properly computed from the target, since the target contains the DIV id |
Date: |
Tue, 30 Dec 2014 10:31:30 +0000 |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 6eb3598e5b0475b050d5a417611e06e15453a75e
Author: Dany De Bontridder <address@hidden>
Date: Wed Dec 24 12:52:07 2014 +0100
Task #1077 - Clef renvoit incorrect
Problem comes from Anc_Key->fill_table : target for hplan was not properly
computed from the target, since the target contains the DIV id
---
include/class_anc_key.php | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/include/class_anc_key.php b/include/class_anc_key.php
index 8f1ab0d..1bada74 100644
--- a/include/class_anc_key.php
+++ b/include/class_anc_key.php
@@ -281,7 +281,9 @@ class Anc_Key
function fill_table($p_target,$p_amount)
{
global $cn;
- $number=str_replace('t', '', $p_target);
+ /* number is the index of the plan, he's computed from p_target */
+ $number=preg_replace('/det[0-9]/', '', $p_target);
+ $number=str_replace('t', '', $number);
$number=str_replace('popup', '', $number);
$op[$number]=$p_amount;
- [Noalyss-commit] [noalyss] branch master updated (88f7cf3 -> d8e596d), Dany De Bontridder, 2014/12/30
- [Noalyss-commit] [noalyss] 02/10: Great Ledger Analytic : credit is positif and debit is negatif, Dany De Bontridder, 2014/12/30
- [Noalyss-commit] [noalyss] 04/10: traduction,, Dany De Bontridder, 2014/12/30
- [Noalyss-commit] [noalyss] 03/10: typo, Dany De Bontridder, 2014/12/30
- [Noalyss-commit] [noalyss] 05/10: Task #1077 - Clef renvoit incorrect Problem comes from Anc_Key->fill_table : target for hplan was not properly computed from the target, since the target contains the DIV id,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 07/10: Task #1045 - Amélioration apparence :, Dany De Bontridder, 2014/12/30
- [Noalyss-commit] [noalyss] 09/10: cosmetic, Dany De Bontridder, 2014/12/30
- [Noalyss-commit] [noalyss] 08/10: Task #1076 - ANC : comptabilité analytique et montants négatifs Negative amount are supposed to be used only for sale and purchase, for bank a fee is always on the debit and a product on the credit., Dany De Bontridder, 2014/12/30
- [Noalyss-commit] [noalyss] 10/10: Task #1045 - Amélioration apparence : cosmetic, Dany De Bontridder, 2014/12/30
- [Noalyss-commit] [noalyss] 01/10: Cosmetique remove title detail, Dany De Bontridder, 2014/12/30
- [Noalyss-commit] [noalyss] 06/10: Task #639 - Traduction : anglais Problem comes from Anc_Key->fill_table : target for hplan was not properly computed from the target, since the target contains the DIV id, Dany De Bontridder, 2014/12/30