mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-03-06 08:11:12 -05:00
Merge branch 'master' into feature/receipt_config
This commit is contained in:
@@ -99,10 +99,11 @@ function show_report_if_allowed($report_prefix, $report_name, $person_id, $permi
|
||||
function show_report($report_prefix, $report_name, $lang_key='')
|
||||
{
|
||||
$CI =& get_instance();
|
||||
$report_label = $CI->lang->line(empty($lang_key) ? $report_name : $lang_key);
|
||||
$lang_key = empty($lang_key) ? $report_name : $lang_key;
|
||||
$report_label = $CI->lang->line($lang_key);
|
||||
$report_prefix = empty($report_prefix) ? '' : $report_prefix . '_';
|
||||
// no summary nor detailed reports for receivings
|
||||
if (!empty($report_label))
|
||||
if (!empty($report_label) && $report_label != $lang_key . ' (TBD)')
|
||||
{
|
||||
?>
|
||||
<li><a href="<?php echo site_url('reports/' . $report_prefix . preg_replace('/reports_(.*)/', '$1', $report_name));?>"><?php echo $report_label; ?></a></li>
|
||||
|
||||
@@ -366,7 +366,7 @@ class Receiving_lib
|
||||
$total = 0;
|
||||
foreach($this->get_cart() as $item)
|
||||
{
|
||||
$total += $this->get_item_total($item['quantity'], $item['price'], $item['discount']);
|
||||
$total = bcadd($total, $this->get_item_total($item['quantity'], $item['price'], $item['discount']), PRECISION);
|
||||
}
|
||||
|
||||
return $total;
|
||||
|
||||
Reference in New Issue
Block a user