mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-03-13 12:43:52 -04:00
Extend permission system to allow 'submodule' permissions Add permissions for stock locations (multistore support)
69 lines
2.1 KiB
PHP
69 lines
2.1 KiB
PHP
|
|
<?php $this->load->view("partial/header"); ?>
|
|
<div id="page_title" style="margin-bottom:8px;"><?php echo $this->lang->line('reports_reports'); ?></div>
|
|
<div id="welcome_message"><?php echo $this->lang->line('reports_welcome_message'); ?>
|
|
<ul id="report_list">
|
|
<li><h3><?php echo $this->lang->line('reports_graphical_reports'); ?></h3>
|
|
<ul>
|
|
<?php
|
|
foreach($allowed_modules->result() as $module)
|
|
{
|
|
show_report_if_allowed($allowed_modules, 'graphical_summary', $module->module_id);
|
|
}
|
|
foreach(array('categories', 'taxes', 'discounts', 'payments') as $sales_category)
|
|
{
|
|
show_report_if_allowed($allowed_modules, 'graphical_summary', $sales_category, 'sales');
|
|
}
|
|
?>
|
|
</ul>
|
|
</li>
|
|
|
|
<li><h3><?php echo $this->lang->line('reports_summary_reports'); ?></h3>
|
|
<ul>
|
|
<?php
|
|
foreach($allowed_modules->result() as $module)
|
|
{
|
|
show_report_if_allowed($allowed_modules, 'summary', $module->module_id);
|
|
}
|
|
foreach(array('categories', 'taxes', 'discounts', 'payments') as $sales_category)
|
|
{
|
|
show_report_if_allowed($allowed_modules, 'summary', $sales_category, 'sales');
|
|
}
|
|
?>
|
|
</ul>
|
|
</li>
|
|
|
|
<li><h3><?php echo $this->lang->line('reports_detailed_reports'); ?></h3>
|
|
<ul>
|
|
<?php
|
|
show_report_if_allowed($allowed_modules, 'detailed', 'sales');
|
|
show_report_if_allowed($allowed_modules, 'detailed', 'receivings');
|
|
show_report_if_allowed($allowed_modules, 'specific', 'customer', 'customers');
|
|
show_report_if_allowed($allowed_modules, 'specific', 'discount', 'sales');
|
|
show_report_if_allowed($allowed_modules, 'specific', 'employee', 'employees');
|
|
?>
|
|
</ul>
|
|
</li>
|
|
<?php
|
|
if ($this->Employee->has_permission('reports_inventory', $this->session->userdata('person_id')))
|
|
{
|
|
?>
|
|
<li><h3><?php echo $this->lang->line('reports_inventory_reports'); ?></h3>
|
|
<ul>
|
|
<?php
|
|
show_report_if_allowed($allowed_modules, '', 'inventory_low', 'inventory');
|
|
show_report_if_allowed($allowed_modules, '', 'inventory_summary', 'inventory');
|
|
?>
|
|
</ul>
|
|
</li>
|
|
<?php
|
|
}
|
|
?>
|
|
</ul>
|
|
<?php
|
|
if(isset($error))
|
|
{
|
|
echo "<div class='error_message'>".$error."</div>";
|
|
}
|
|
?>
|
|
<?php $this->load->view("partial/footer"); ?>
|