diff --git a/htdocs/comm/propal.php b/htdocs/comm/propal.php index 7578d315810..e27a7f69b84 100644 --- a/htdocs/comm/propal.php +++ b/htdocs/comm/propal.php @@ -483,6 +483,22 @@ if ($_POST["action"] == 'setmode') if ($resql < 0) dolibarr_print_error($db); } +/* + * Ordonnancement des lignes + */ + +if ($_GET['action'] == 'up' && $user->rights->propale->creer) +{ + $propal = new Propal($db); + $propal->line_up($_GET['rowid']); +} + +if ($_GET['action'] == 'down' && $user->rights->propale->creer) +{ + $propal = new Propal($db); + $propal->line_down($_GET['rowid']); +} + llxHeader(); @@ -867,7 +883,7 @@ if ($_GET['propalid'] > 0) if ($objp->fk_product_type) print img_object($langs->trans('ShowService'),'service'); else print img_object($langs->trans('ShowProduct'),'product'); print ' '.$objp->ref.''; - print ' - '.nl2br(stripslashes($objp->product)); + print ' - '.nl2br(stripslashes($objp->product)); if ($conf->global->PROP_ADD_PROD_DESC && !$conf->global->PRODUIT_CHANGE_PROD_DESC) { @@ -928,15 +944,27 @@ if ($_GET['propalid'] > 0) print '