X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=inventory%2Fprices.php;h=d6e75adc93a419e31d4471a4a1c5065aaac7a7ef;hb=d1e419168006f2ff7e3ddb9add2952da2f6601f9;hp=6268d2bf697324d13870bba256ff594b4ae40c0a;hpb=44012f6736c91bc0811d64544fd90b6181433a5f;p=fa-stable.git diff --git a/inventory/prices.php b/inventory/prices.php index 6268d2bf..d6e75adc 100644 --- a/inventory/prices.php +++ b/inventory/prices.php @@ -9,8 +9,8 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the License here . ***********************************************************************/ -$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();