idurar / idurar-erp-crm

Open Source Headless ERP CRM E-Commerce Accounting Software | Node Js React
https://cloud.idurarapp.com/
Other
5.86k stars 1.73k forks source link

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

Open MehdiMsa opened 2 months ago

MehdiMsa commented 2 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