mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-10-21 07:44:37 -04:00
Fix payment summary update on search
This commit is contained in:
1 parent
9281995029
commit
ac3aab51fa
2 files changed
+3
-3
No files matched your search
@@ -109,9 +109,9 @@ function get_sales_manage_payments_summary($payments, $sales, $controller)
|
||||
$amount -= $sale['change_due'];
|
||||
}
|
||||
}
|
||||
$table.='<div class="summary_row">'.$payment['payment_type'].': '.to_currency( $amount );'</div>';
|
||||
$table.='<div class="summary_row">'.$payment['payment_type'].': '.to_currency( $amount ) . '</div>';
|
||||
}
|
||||
|
||||
$table.='</div>';
|
||||
return $table;
|
||||
}
|
||||
|
||||
|
||||
@@ -88,7 +88,7 @@ class Sale extends CI_Model
|
||||
$this->db->select('sales_payments.payment_type, count(*) AS count, SUM(payment_amount) AS payment_amount', FALSE);
|
||||
$this->db->from('sales_payments');
|
||||
$this->db->join('sales_items_temp', 'sales_items_temp.sale_id=sales_payments.sale_id');
|
||||
$this->db->join('people', 'people.person_id = sales_items_temp.sale_id', 'left');
|
||||
$this->db->join('people', 'people.person_id = sales_items_temp.customer_id', 'left');
|
||||
|
||||
if (empty($inputs['search']))
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user