Payment not updated if invoice customer changed

0

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.

Question Resolved For: Simple Invoice Manager - Invoicing Made Easy 0 Votes 1 Answers 313 Views
Asked by Scott Smith 4 years ago

0

Answered by Mian Saleem

Hello,

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

We use Cookies

We use cookies to ensure that we give you the best experience on our website. By continuing to browse the site you are agreeing to our use of cookies.