Question: Search Customer By Vat Number

Search Customer By Vat Number

Good afternoon team, I would like to know how to change the search option in the POS to search for the customer by the VAT number since currently it is only possible by name. Thank you

MA

Michael Alonzo

Asked
Good afternoon team, I would like to know how to change the search option in the POS to search for the customer by the VAT number since currently it is only possible by name.

Thank you
  • MS

    Mian Saleem

    Answered
    Hello,

    You can search customer by `name`, `company`, `email` & `phone`.

    To search by vat number, you will need to modify the `getCustomerSuggestions` method of `app/models/admin/Companies_model.php`

    Thank you
  • MA

    Michael Alonzo

    Answered
    Sorry, I didn't explain it well, what I need is to find the customer with the VAT number at the POS.

    Thank you very much for your support
  • MS

    Mian Saleem

    Answered
    Yes, the reply above is correct for customer search at POS. Thank you
  • MA

    Michael Alonzo

    Answered
    I already made the suggested modification, but I try to search with email and phone but it does not show the result, when making the suggested modification it does not show me the result. Thanks for your support
  • MS

    Mian Saleem

    Answered
    Hello,

    Please pay attention on the query and the browser console for any error.

    If you modify the query correctly. it should work same as before.

    Thank you
  • Login to Reply