[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 03/05: test : find the accounting with the bi
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 03/05: test : find the accounting with the biggest number of records |
Date: |
Sat, 26 Oct 2019 10:37:37 -0400 (EDT) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 860930923c7f450b5ba477ff0b290069d27f7089
Author: Dany De Bontridder <address@hidden>
Date: Sat Oct 26 16:12:57 2019 +0200
test : find the accounting with the biggest number of records
---
scenario/acc_ledger_AccountTest.php | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/scenario/acc_ledger_AccountTest.php
b/scenario/acc_ledger_AccountTest.php
index 02be617..0114e8b 100644
--- a/scenario/acc_ledger_AccountTest.php
+++ b/scenario/acc_ledger_AccountTest.php
@@ -33,12 +33,15 @@ $_POST=array (
$_POST['gDossier']=$gDossierLogInput;
$_GET['gDossier']=$gDossierLogInput;
$_REQUEST=array_merge($_GET,$_POST);
+$acc_count=$cn->get_array("select count(*),j_poste".
+ " from jrnx ".
+ "group by j_poste order by count(*) desc");
-$a=new Acc_Account_Ledger($cn,7000017);
+$a=new Acc_Account_Ledger($cn,$acc_count[0]['j_poste']);
echo h1("Acc_Account_Ledger->get_row");
-$result=$a->get_row(227,215);
+$result=$a->get_row($min,$max);
var_dump($result);
echo h1("Acc_Account_Ledger->get_row_date");
-$result=$a->get_row_date('01.01.2015','01.01.2017');
+$result=$a->get_row_date('01.01.200','01.01.2099');
var_dump($result);