idurar / idurar-erp-crm

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

Delete Payment Details #1067

Open Achref47 opened 2 months ago

Achref47 commented 2 months ago

1.Describe the bug Imagine you've just added a new payment method, but for some reason, you need to remove it. You navigate to the settings, find the payment method, and click "Delete." A confirmation pop-up appears, asking you to verify your choice. Feeling confident, you click "OK." But instead of confirmation, you're met with a frustrating error message: "You can't delete your payment method after it has been created." This experience raises a big question: Why ask for confirmation if deletion isn't actually an option? and is there any solutions to solve it!?.

To Reproduce

  1. You head to the "Payment Mode" section with the intention of adding a new way to pay.
  2. You navigate through the process and successfully create a brand new payment method.
  3. You decide you no longer need this payment method.
  4. You click the delete icon associated with the newly created payment mode.
  5. A confirmation pop-up appears, seemingly finalizing the deletion process. You click "OK" to confirm.
  6. Finally you're met with a surprising error message informing you that deletion is impossible.

Expected behavior Users expect a clear and smooth experience. Currently, the presence of a delete icon (bin icon) implies the ability to remove a payment method. However, encountering an error message after confirmation creates frustration. The system should either allow deletion without errors or remove the delete option altogether. 1p 2p 3p

Desktop (please complete the following information):

OS: [Windows 11] Browser [ Chrome] Version [123.0.6312.123]

AnshulKahar2729 commented 2 months ago

I think removing the delete option is altogether a good choice.

Houssemdaoud commented 2 months ago

i reproduced your bug and i use Windows 11 and Opera GX browser. isn't the payment method are standard either check or bank transfer or straight up cash so why not make it standard and remove the payment option.