From 56d037d9eb559dab5fb2ffe4a28f1034e0aa7380 Mon Sep 17 00:00:00 2001 From: sparkyx Date: Sat, 20 Oct 2007 11:18:44 +0000 Subject: [PATCH] order the tva by the rate --- include/user_form_ach.php | 2 +- include/user_form_ven.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/user_form_ach.php b/include/user_form_ach.php index 4c36b6970..560c0e351 100644 --- a/include/user_form_ach.php +++ b/include/user_form_ach.php @@ -229,7 +229,7 @@ echo_debug('user_form_ach.php',__LINE__,"Enter FormAchInput($p_cn,$p_jrn,$p_peri $Price->size=9; $r.=$Price->IOValue("e_march".$i."_buy",$march_buy); // vat label - $select_tva=make_array($p_cn,"select tva_id,tva_label from tva_rate order by tva_id",1); + $select_tva=make_array($p_cn,"select tva_id,tva_label from tva_rate order by tva_rate desc",1); $Tva=new widget("select"); $Tva->table=1; $Tva->selected=$march_tva_id; diff --git a/include/user_form_ven.php b/include/user_form_ven.php index 6e30c5684..5ec3ed882 100644 --- a/include/user_form_ven.php +++ b/include/user_form_ven.php @@ -216,7 +216,7 @@ function FormVenInput($p_cn,$p_jrn,$p_periode,$p_array=null,$pview_only=true,$p_ $r.=$Price->IOValue("e_march".$i."_sell",$march_sell); // vat label //-- - $select_tva=make_array($p_cn,"select tva_id,tva_label from tva_rate order by tva_id",1); + $select_tva=make_array($p_cn,"select tva_id,tva_label from tva_rate order by tva_rate desc",1); $Tva=new widget("select"); $Tva->table=1; $Tva->selected=$march_tva_id;