idurar / idurar-erp-crm

Free Open Source ERP CRM Accounting Invoicing Software | Node Js React
https://cloud.idurarapp.com
GNU Affero General Public License v3.0
6.56k stars 2.02k forks source link

Fix: Product Category can be recreated with the same name, description & color tag. #1074 #1094

Open MehdiMsa opened 6 months ago

MehdiMsa commented 6 months ago

Description

In this pull request, I have been able to create a README.md documentation file in German. In addition, Problem with the Product Category and Product Replication has been fixed. With this change, if you attempt to create a new product with a name that already exists in the database, MongoDB will throw a duplicate key error, preventing the creation of duplicate products with the same name.

Related Issues

If this pull request is related to any issue(s), please list them here.

https://github.com/idurar/idurar-erp-crm/issues/1074

Steps to Test

  1. Login
  2. Go to 'Products Category Section'
  3. Click on 'Add New Product Category'
  4. Fill in the information & create the Product Category
  5. Click on 'Add New Product Category'
  6. Recreate another Product Category with the same data

Screenshots (if applicable)

image

Checklist