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:Cannot-Delete-Client #1097

Open Hritikror opened 2 months ago

Hritikror commented 2 months ago

Description

This pull request addresses the issue related to the deletion of clients. Previously, clients were not being deleted if they didn't have any associated invoices, leading to unexpected behavior. With this update, the deletion process has been revised to align with the expected behavior. promise.allSettled return an object of enteries 'status' and 'value' but we just need 'value' here so promise.all is accurate here.

Related Issues

1013 #1086

Steps to Test

Provide steps on how to test the changes introduced in this pull request.

Screenshots (if applicable)

Before: ss-before

After: ss-after

Checklist