diff --git a/htdocs/product/fiche.php3 b/htdocs/product/fiche.php3 index fb749bdc880..fa9df14c264 100644 --- a/htdocs/product/fiche.php3 +++ b/htdocs/product/fiche.php3 @@ -21,6 +21,7 @@ */ require("./pre.inc.php3"); +require("../propal.class.php3"); llxHeader(); @@ -37,8 +38,20 @@ if ($action == 'add') $product->description = $desc; $id = $product->create($user); + $action = ''; } +if ($action == 'addinpropal') +{ + $propal = New Propal($db); + + $propal->fetch($HTTP_POST_VARS["propalid"]); + $propal->insert_product($id, $HTTP_POST_VARS["qty"]); + + $action = ''; +} + + if ($action == 'update') { $product = new Product($db); @@ -77,15 +90,12 @@ if ($action == 'create') print ""; print '
| Référence | '.$product->ref.' | '; - print 'Statistiques | '; - print 'Statistiques | '; print "Libellé | $product->label | "; print ''; print "Propositions commerciales : ".$product->count_propale(); @@ -117,8 +126,7 @@ else print " |