[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 02/02: Improve : order of the document to gen
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 02/02: Improve : order of the document to generate |
Date: |
Sun, 13 Mar 2022 12:17:28 -0400 (EDT) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 9013df24e97751ad1e459d5b23202ce08badb4a4
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Thu Mar 10 17:07:26 2022 +0100
Improve : order of the document to generate
---
include/class/acc_ledger_purchase.class.php | 2 +-
include/class/acc_ledger_sale.class.php | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/include/class/acc_ledger_purchase.class.php
b/include/class/acc_ledger_purchase.class.php
index 7133e37c..17c7f9c3 100644
--- a/include/class/acc_ledger_purchase.class.php
+++ b/include/class/acc_ledger_purchase.class.php
@@ -1922,7 +1922,7 @@ EOF;
$doc_gen->name="gen_doc";
$doc_gen->value=$this->db->make_array(
"select md_id,md_name ".
- " from document_modele where md_affect='ACH'");
+ " from document_modele where md_affect='ACH'
order by 2");
$r.=$doc_gen->input().'<br>';
}
$r.='<br>';
diff --git a/include/class/acc_ledger_sale.class.php
b/include/class/acc_ledger_sale.class.php
index 7437a2ba..7f36a369 100644
--- a/include/class/acc_ledger_sale.class.php
+++ b/include/class/acc_ledger_sale.class.php
@@ -1166,7 +1166,7 @@ EOF;
$r.=_("Ajoutez une pièce justificative ");
$r.=$file->input("pj", "");
- if ($this->db->count_sql("select md_id,md_name from document_modele
where md_affect='VEN'") > 0) {
+ if ($this->db->count_sql("select md_id,md_name from document_modele
where md_affect='VEN' ") > 0) {
$r.=_('ou générer une facture') . ' <input type="checkbox"
name="gen_invoice" CHECKED>';
@@ -1175,7 +1175,7 @@ EOF;
$doc_gen->name = "gen_doc";
$doc_gen->value = $this->db->make_array(
"select md_id,md_name " .
- " from document_modele where md_affect='VEN'");
+ " from document_modele where md_affect='VEN' order by 2");
$r.=$doc_gen->input() . '<br>';
}
$r.='<br>';