diff --git a/htdocs/compta/propal.php b/htdocs/compta/propal.php index f4550c4552c..50b98e27827 100644 --- a/htdocs/compta/propal.php +++ b/htdocs/compta/propal.php @@ -264,7 +264,41 @@ if ($_GET["propalid"]) } print ""; /* + * + * + */ + $nb_commande = sizeof($propal->commande_liste_array()); + if ($nb_commande > 0) + { + $coms = $propal->commande_liste_array(); + print '
'; + + if ($nb_commande == 1) + + { + print "\n"; + } + else + { + print "\n"; + + for ($i = 0 ; $i < $nb_commande ; $i++) + { + print '\n"; + print "\n"; + } + } + print "
Commande rattachée : "; + print ''; + print img_file(); + print ' '.$coms[$i].""; + print "
Commandes rattachées
'.$coms[$i]."
"; + } + + /* + * * Actions + * */ if ($obj->statut <> 4 && $user->societe_id == 0) {