Question: Unique product names

Unique product names

I use my inventory ID (which is unique) as the product name in SIM. SIM does not require a product name to be unique, so it is possible to create duplicate entries. How can I make SIM enfo

SS

Scott Smith

Asked
I use my inventory ID (which is unique) as the product name in SIM.

SIM does not require a product name to be unique, so it is possible to create duplicate entries.

How can I make SIM enforce unique product names?
  • MS

    Mian Saleem

    Answered
    Yes, there is no unique validation for product name in Simple Invoice Manager.

    You can add unique validation `is_unique[products.name]` for name in products controller `app/controllers/Products.php`'s add method.
  • MS

    Mian Saleem

    Answered
    The form page should have `$_POST` that can be use to repopulate the fields OR you can use `set_value('field_name')`
  • Login to Reply