Fix payment summary update on search

This commit is contained in:
jekkos committed 2015-09-04 23:35:23 +02:00
1 parent 9281995029
commit ac3aab51fa
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -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;
}
+1 -1
View File
@@ -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']))
{