[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 52/54: test : find the accounting with the bi
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 52/54: test : find the accounting with the biggest number of records |
Date: |
Sat, 11 Jul 2020 13:27:02 -0400 (EDT) |
sparkyx pushed a commit to annotated tag entreprise-0500
in repository noalyss.
commit 024797c6675c7d4e60be7a6ef3fb8fb28220442c
Author: Dany De Bontridder <danydb@noalyss.eu>
AuthorDate: 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);
- [Noalyss-commit] [noalyss] 38/54: Merge branch 'accept7100' into entreprise, (continued)
- [Noalyss-commit] [noalyss] 38/54: Merge branch 'accept7100' into entreprise, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 39/54: Bug with p_jrn, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 40/54: Task #1759 = PRINTBAL sur 4 colonnes, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 44/54: gitlab #5 Achat propose l'anc pour toutes les lignes, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 36/54: documentation + traduction, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 37/54: Merge branch 'accept7100' into entreprise, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 41/54: Merge branch 'bug-printtva' into entreprise, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 42/54: If currency not given then supposed to be the default one (id=0), Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 43/54: Save_form_plan must use the array, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 49/54: Adapt printtva to entreprise, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 52/54: test : find the accounting with the biggest number of records,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 47/54: Merge branch 'dev7102' into entreprise, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 48/54: Acc_Ledger : problem with acc_ledger::load(), Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 45/54: fixup! Printtva , under some circumstance tva_summary::check fails, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 46/54: indent, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 50/54: improve test for fiche get_row, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 51/54: test : compute min et max periode, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 53/54: test : use the accounting with the biggest number of records, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 54/54: Improve Scenario Test, Dany De Bontridder, 2020/07/11