mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-05-24 16:28:40 -04:00
Add sales total to daily overview (#3138)
This commit is contained in:
@@ -149,13 +149,18 @@ Get the sales payments summary
|
||||
*/
|
||||
function get_sales_manage_payments_summary($payments)
|
||||
{
|
||||
$CI =& get_instance();
|
||||
|
||||
$table = '<div id="report_summary">';
|
||||
$total = 0;
|
||||
|
||||
foreach($payments as $key=>$payment)
|
||||
{
|
||||
$amount = $payment['payment_amount'];
|
||||
$total = bcadd($total, $amount);
|
||||
$table .= '<div class="summary_row">' . $payment['payment_type'] . ': ' . to_currency($amount) . '</div>';
|
||||
}
|
||||
$table .= '<div class="summary_row">' . $CI->lang->line('sales_total') . ': ' . to_currency($total) . '</div>';
|
||||
$table .= '</div>';
|
||||
|
||||
return $table;
|
||||
|
||||
Reference in New Issue
Block a user