Update price.php

This commit is contained in:
Frédéric FRANCE 2018-05-26 15:15:38 +02:00 committed by GitHub
parent 894f16c5ee
commit a487cf6806
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,9 +45,7 @@ if (! empty($conf->global->PRODUIT_CUSTOMER_PRICES)) {
$prodcustprice = new Productcustomerprice($db); $prodcustprice = new Productcustomerprice($db);
} }
$langs->load("products"); $langs->loadLangs(array("products", "bills", "companies"));
$langs->load("bills");
$langs->load("companies");
$mesg=''; $error=0; $errors=array(); $mesg=''; $error=0; $errors=array();
@ -945,6 +943,7 @@ if (! empty($conf->global->PRODUIT_MULTIPRICES) || ! empty($conf->global->PRODUI
} }
print '</table>'; print '</table>';
print '<a href="' . $_SERVER['PHP_SELF'] . '?id=' . $object->id . '&action=disable_price_by_qty&level='.$i.'">(' . $langs->trans("DisablePriceByQty").')';
} else { } else {
print $langs->trans("No"); print $langs->trans("No");
print '&nbsp; <a href="' . $_SERVER['PHP_SELF'] . '?id=' . $object->id . '&action=activate_price_by_qty&level=' . $i . '">(' . $langs->trans("Activate") . ')</a>'; print '&nbsp; <a href="' . $_SERVER['PHP_SELF'] . '?id=' . $object->id . '&action=activate_price_by_qty&level=' . $i . '">(' . $langs->trans("Activate") . ')</a>';