noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 04/05: Fix bug when searching for an accounti


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 04/05: Fix bug when searching for an accounting in a card
Date: Thu, 12 Aug 2021 17:11:22 -0400 (EDT)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 0d1e3b163e4ad36ce08db612c5e4267f67f9331f
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Thu Aug 12 22:27:34 2021 +0200

    Fix bug when searching for an accounting in a card
---
 unit-test/include/class/acc_account_ledger.Test.php | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)

diff --git a/unit-test/include/class/acc_account_ledger.Test.php 
b/unit-test/include/class/acc_account_ledger.Test.php
index affed69..1e6debd 100644
--- a/unit-test/include/class/acc_account_ledger.Test.php
+++ b/unit-test/include/class/acc_account_ledger.Test.php
@@ -27,6 +27,7 @@ class Acc_Account_LedgerTest extends TestCase
         $g_parameter=new Noalyss_Parameter_Folder($g_connection);
         $g_user=new User($g_connection);
         $this->object=new Acc_Account_Ledger($g_connection, 400);
+        $g_connection->exec_sql("update jrn_def set jrn_def_class_deb='4* 2*' 
where jrn_def_type='ODS'");
     }
 
     /**
@@ -385,9 +386,10 @@ class Acc_Account_LedgerTest extends TestCase
     {
         return array(
             array(0, array()),
-            array(1, array('5*', '')),
-            array(2, array('4*')),
-            array(3, array('6*'))
+            array(1, array()),
+            array(2, array()),
+            array(3, array()),
+            array(4, array('4*','2*'))
         );
     }
 
@@ -414,10 +416,10 @@ class Acc_Account_LedgerTest extends TestCase
     {
         return array(
             array(0, ""),
-            array(1, "pcm_val::text like '5%'"),
-            array(2, "pcm_val::text like '4%'"),
-            array(3, "pcm_val::text like '6%'"),
-            array(4, "")
+            array(1, ""),
+            array(2, ""),
+            array(3, ""),
+            array(4, "pcm_val::text like '4%' or pcm_val::text like '2%'")
         );
     }
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]