Wrong Permission for Inventory Purchasing Report (rep306.php). Fixed.
[fa-stable.git] / reporting / rep306.php
index f3d022fd29fff42f73cddf5e9f2812d125071c5d..3ce3a86025bd49314d54a4d5a60f706e7f390300 100644 (file)
@@ -9,7 +9,7 @@
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
     See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
 ***********************************************************************/
-$page_security = 'SA_SALESANALYTIC';
+$page_security = 'SA_SUPPLIERANALYTIC';
 // ----------------------------------------------------------------
 // $ Revision: 2.0 $
 // Creator:    Joe Hunt
@@ -266,7 +266,7 @@ function print_inventory_purchase()
                        $rep->NewLine();
                        $rep->NewLine();
                        $total_supp = $total_qty = 0.0;
-                       $supplier_name = $trans['supplier_name'];
+                       $supplier_name = isset($trans['supplier_name']) ? $trans['supplier_name'] : "";
                }       
        }
        if ($supplier_name != '')