[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 58/173: Mantis #1665: Pouvoir modifier l'ordr
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 58/173: Mantis #1665: Pouvoir modifier l'ordre dans les listing de compta analytique |
Date: |
Mon, 22 Mar 2021 12:58:41 -0400 (EDT) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 312d93061a71a8e455adc883672c2f44e02eae30
Author: Dany De Bontridder <dany@alchimerys.be>
AuthorDate: Mon Jan 28 20:10:01 2019 +0100
Mantis #1665: Pouvoir modifier l'ordre dans les listing de compta analytique
---
include/anc_history.inc.php | 3 +++
include/class/anc_listing.class.php | 24 +++++++++++++-----------
include/class/anc_operation.class.php | 1 +
include/class/anc_print.class.php | 16 +++++++++++-----
4 files changed, 28 insertions(+), 16 deletions(-)
diff --git a/include/anc_history.inc.php b/include/anc_history.inc.php
index bac4a8b..505927e 100644
--- a/include/anc_history.inc.php
+++ b/include/anc_history.inc.php
@@ -27,6 +27,9 @@ if (isset($_GET['result']))
{
echo $list->show_button();
echo $result;
+ echo '<div></div>';
+ echo $list->show_button();
+
}
else
{
diff --git a/include/class/anc_listing.class.php
b/include/class/anc_listing.class.php
index 999c2fc..9ba5b34 100644
--- a/include/class/anc_listing.class.php
+++ b/include/class/anc_listing.class.php
@@ -72,9 +72,11 @@ class Anc_Listing extends Anc_Print
}
$cred=0;$deb=0;
bcscale(2);
- $r.= '<table class="result" style="width=100%">';
+ $r.='<div></div>';
+
$r.=_('Cherche').HtmlInput::filter_table("tb_anchop",'0,1,2,3,4,5,6,7',1);
+ $r.= '<table id="tb_anchop" class="sortable" >';
$r.= '<tr>'.
- '<th>'._('Date').'</th>'.
+ '<th class=" sorttable_sorted">'._('Date').'</th>'.
'<th>'._('Poste').'</th>'.
'<th>'._('Quick_code').'</th>'.
'<th>'._('Analytique').'</th>'.
@@ -94,14 +96,14 @@ class Anc_Listing extends Anc_Print
$card_detail=($row['f_id'] !=
null)?HtmlInput::history_card($row['f_id'],$row['qcode']):'';
$r.=
- '<td>'.$row['oa_date'].'</td>'.
- td($post_detail).
+ '<td
sorttable_customkey="'.$row['str_order_date'].'">'.$row['oa_date'].'</td>'.
+ td($post_detail,' sorttable_customkey="X'.$row['j_poste'].'"').
td($card_detail).
'<td>'.HtmlInput::history_anc_account($row['po_id'],h($row['po_name'])).'</td>'.
'<td>'.h($row['oa_description']).'</td>'.
td($row['jr_comment']).
'<td>'.$detail.'</td>'.
- '<td class="num">'.nbm($row['oa_amount']).'</td>'.
+ '<td class="num"
sorttable_customkey="'.$row['oa_amount'].'">'.nbm($row['oa_amount']).'</td>'.
'<td>'.(($row['oa_debit']=='f')?'C':'D').'</td>';
$r.= '</tr>';
if ( $row['oa_debit'] == 'f')
{$cred=bcadd($cred,$row['oa_amount']);}
@@ -112,15 +114,15 @@ class Anc_Listing extends Anc_Print
ob_start();
echo _("Total");
echo '<ol style="list-style:none">';
- echo '<li>'.nbm($deb).' D '.'</li>';
- echo '<li>'.nbm($cred).' C '.'</li>';
+ echo '<li>'._('Total')." ".nbm($deb).' D '.'</li>';
+ echo '<li>'._('Total')." ".nbm($cred).' C '.'</li>';
echo '<li>';
echo _('Solde');
$solde=abs(bcsub($deb,$cred));
- echo $solde;
- if ( $cred == $deb ) echo " = ";
- else if ( $cred > $deb ) echo " C ";
- else echo ' D ';
+ echo $solde." ";
+ echo findSide($deb-$cred);
+ echo '<li>';
+ echo '</ol>';
$r_solde=ob_get_clean();
diff --git a/include/class/anc_operation.class.php
b/include/class/anc_operation.class.php
index aa3b19d..de27cbc 100644
--- a/include/class/anc_operation.class.php
+++ b/include/class/anc_operation.class.php
@@ -235,6 +235,7 @@ class Anc_Operation
po_description,
oa_debit,
(case when jr_date is not null then to_char(jr_date,'DD.MM.YYYY')
else to_char(oa_date,'DD.MM.YYYY') end ) as oa_date,
+ (case when jr_date is not null then to_char(jr_date,'YYYYMMDD')
else to_char(oa_date,'YYYYMMDD') end ) as str_order_date,
oa_amount,
oa_group,
j_id ,
diff --git a/include/class/anc_print.class.php
b/include/class/anc_print.class.php
index 5e8ea00..174fb1a 100644
--- a/include/class/anc_print.class.php
+++ b/include/class/anc_print.class.php
@@ -148,8 +148,6 @@ class Anc_Print
echo $from->input();
?>
</td>
- </tr>
- <tr>
<td>
<?php
echo _('Jusque') ;
@@ -161,13 +159,21 @@ class Anc_Print
echo $to->input();
?>
</td>
+ <td>
+ <?php echo _( "Plan Analytique ")?>
+ </td>
+ <td>
+ <?php
+ echo $plan_id->input();
+ echo Icon_Action::infobulle(42);
+ ?>
+ </td>
+
</tr>
</table>
<span style="padding:5px;margin:5px;display:block;">
- <?php echo _( "Plan Analytique :").$plan_id->input();
- echo Icon_Action::infobulle(42);
- ?>
+
</span>
<?php
- [Noalyss-commit] [noalyss] 29/173: Currency : purchase, save all detail also in currency, fix problem with the advance payment, (continued)
- [Noalyss-commit] [noalyss] 29/173: Currency : purchase, save all detail also in currency, fix problem with the advance payment, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 33/173: Fix problem with total in balance export, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 31/173: Task #1660 : place the button for the inventory on the top, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 32/173: New function findSide return D if number is <0, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 35/173: Task #0001309: Association d'une opération avec elle-même., Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 36/173: Merge branch 'r700-currency' of gitlab.noalyss.eu:noalyss/noalyss into r700-currency, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 41/173: PHP 7.2 incomptability : sizeof of not array, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 45/173: Database upgrade, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 53/173: Mantis #0001682: CA - ajouter possibilité d'exporter le plan analytique, missing file, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 56/173: Mantis #1626: AFFICHAGE BALANCE FICHE - soldes nuls au débit, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 58/173: Mantis #1665: Pouvoir modifier l'ordre dans les listing de compta analytique,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 59/173: Mantis #1596: Dans le plan comptable, fiches non cliquables Les fiches sont cliquable dans Plan Comptable , PCMNCFG et dans la liste des postes, en plus on peut obtenir toutes les fiches d'un poste, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 42/173: Currency - fix view, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 52/173: Mantis #0001682: CA - ajouter possibilité d'exporter le plan analytique, add action CSV:Analytic_Axis, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 67/173: Wrong merge broke fiche.class.php, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 64/173: CSS : cosmetic, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 68/173: Fix broken merge, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 71/173: Cosmetic adapt color, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 74/173: TEST : fix some little bugs, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 75/173: mantis #1690: Bug : impossible d'utiliser < dans Inplace_Edit Replace strip_tags , add a space before the "<", Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 21/173: Currency : for misc. operation, Dany De Bontridder, 2021/03/22