diff --git a/include/ajax/ajax_add_concerned_card.php b/include/ajax/ajax_add_concerned_card.php index 1f9f97286..de16902d8 100644 --- a/include/ajax/ajax_add_concerned_card.php +++ b/include/ajax/ajax_add_concerned_card.php @@ -112,9 +112,9 @@ for ($i=0; $iinput(); $array[$i]['quick_code']=$a[$i]['quick_code']; $array[$i]['name']=h($a[$i]['vw_name']); - $array[$i]['accounting']=$a[$i]['accounting']; $array[$i]['first_name']=h($a[$i]['vw_first_name']); $array[$i]['description']=h($a[$i]['vw_description']); + $array[$i]['company']=h($a[$i]['company']); }//foreach // No accountancy history diff --git a/include/class/card_multiple.class.php b/include/class/card_multiple.class.php index b4094851b..2fbd1a4d8 100644 --- a/include/class/card_multiple.class.php +++ b/include/class/card_multiple.class.php @@ -28,7 +28,8 @@ class Card_Multiple private $sql ; //!< SQL with the right column name function __construct() { - $this->sql="select f_id,quick_code,vw_name,accounting,vw_first_name,vw_description + $this->sql="select f_id,quick_code,vw_name,accounting,vw_first_name,vw_description, + (select ad_value from fiche_detail fd where fd.f_id=vw_fiche_attr.f_id and fd.ad_id=25) as company from vw_fiche_attr "; } /** diff --git a/include/template/card_multiple_result.php b/include/template/card_multiple_result.php index cef4de134..9afdb5699 100644 --- a/include/template/card_multiple_result.php +++ b/include/template/card_multiple_result.php @@ -13,6 +13,11 @@ $nb_array=count($array); ?> + + + + + @@ -22,11 +27,11 @@ $nb_array=count($array); -
- + +