Fixed security sections update.
[fa-stable.git] / inventory / prices.php
index 6268d2bf697324d13870bba256ff594b4ae40c0a..d6e75adc93a419e31d4471a4a1c5065aaac7a7ef 100644 (file)
@@ -9,8 +9,8 @@
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
     See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
 ***********************************************************************/
-$page_security = 2;
-$path_to_root="..";
+$page_security = 'SA_SALESPRICE';
+$path_to_root = "..";
 include_once($path_to_root . "/includes/session.inc");
 
 page(_("Inventory Item Sales prices"));
@@ -150,7 +150,8 @@ while ($myrow = db_fetch($prices_list))
 end_table();
 if (db_num_rows($prices_list) == 0)
 {
-       $calculated = true;
+       if (get_company_pref('add_pct') != -1)
+               $calculated = true;
        display_note(_("There are no prices set up for this part."), 1);
 }
 div_end();