SS
Asked
I had an invoice input using the wrong customer. Payment was made at the same time. After editing the invoice to set the correct customer, the payment report still shows the payment as being from the first (incorrect) customer.
In looking at the database, you are duplicating the customer ID in the payments table. This is not being updated when the invoice is edited.
In looking at the database, you are duplicating the customer ID in the payments table. This is not being updated when the invoice is edited.
- MSAnsweredHello,
Thank you for reporting this. I will update soon. If you need it urgent, please edit the `updateSale` method of the `app/models/Sales_model.php` and the line below before `return true;`
```
$this->db->update('payment', ['customer_id' => $data['customer_id']], ['sale_id' => $id]);
```
Thank you - Login to Reply