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.59k stars 2.04k forks source link

Can't let me delete people even if he doesn't have any invoice or belonging to a company #1013

Open Houssemdaoud opened 8 months ago

Houssemdaoud commented 8 months ago

Hello, I created a person in the people section and gave him an invoice then deleted the invoice and when trying to delete the people it doesn't let me.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'People'
  2. Click on 'Add new person'
  3. make sure he doesn't belong to any company
  4. create an invoice in his name
  5. delete the invoice
  6. try to delete the person

Expected behavior the created person can't get deleted

Screenshots Screenshot 2024-03-20 151050 Screenshot 2024-03-20 151152

Desktop:

slimskhab commented 8 months ago

Hello, I tried reproducing it and encountered the same error. I'll investigate further to find the cause.

inesmrad commented 8 months ago

hi houssem, i reproduced the steps and got the same error, i'll try to fix that.

sanskaraggarwal2025 commented 8 months ago

A person can be deleted when he has no invoice and he is not client

or should it be deleted only when he has no invoice? @inesmrad @Houssemdaoud

inesmrad commented 8 months ago

A person can be deleted when he has no invoice and he is not client

or should it be deleted only when he has no invoice? @inesmrad @Houssemdaoud

i guess even as 'people ' and having no invoice, technically we should be able to delete it.

sanskaraggarwal2025 commented 8 months ago

@salahlalami Could you please assign this issue to me? I would like to work on it.

samr874 commented 7 months ago

@Houssemdaoud tell me what is the status of this issue please tell me??? does it has to be worked upon ??

Houssemdaoud commented 7 months ago

@Houssemdaoud tell me what is the status of this issue please tell me??? does it has to be worked upon ??

If u create a new person then create an invoice in his name then delete the invoice it doesn't let you to delete the person because it says there is an invoice in his name