Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete Donation Button not working #25314

Closed
hanneshier opened this issue Jul 9, 2023 · 2 comments
Closed

Delete Donation Button not working #25314

hanneshier opened this issue Jul 9, 2023 · 2 comments
Assignees
Labels
Bug This is a bug (something does not work as expected) Discussion Some questions or discussions are opened and wait answers of author or other people to be processed

Comments

@hanneshier
Copy link

Bug

The delete Button for donations is greyed and not working. If a manually add "action=delete" to the url, the donation can be removed.

Environment Version

17.0.2

Environment OS

Docker Linux 3c459c7be176 5.4.0-131-generic #147-Ubuntu SMP Fri Oct 14 17:07:22 UTC 2022 x86_64

Environment Web server

Apache

Environment PHP

Ok 8.1.20

Environment Database

MySQL or MariaDB 10.8.8-MariaDB-1:10.8.8+maria~ubu2204

Environment URL(s)

/societe/card.php?socid=96&save_lastsearch_values=1

Expected and actual behavior

Expected: be able to delete a donation via the UI with the delete button

Actual: deletion is only possible by changing the url

Steps to reproduce the behavior

Activate Unalterable Archives
Set INVOICE_CAN_ALWAYS_BE_REMOVED=1

Create a donation, remove the payment, try to delete the donation with the delete button.

Attached files

Screenshot 2023-07-09 at 12 39 37
@hanneshier hanneshier added the Bug This is a bug (something does not work as expected) label Jul 9, 2023
@lamrani002
Copy link
Contributor

Hi, i tried to reproduce the same behavior, for delete a donation you should delete all payments before, and after that a new button will appear where you can class it "drop out". And then you can delete donation properly.

@lamrani002 lamrani002 added the Discussion Some questions or discussions are opened and wait answers of author or other people to be processed label Jul 17, 2023
@eldy
Copy link
Member

eldy commented Aug 2, 2023

We must add a title="xxxx" with xxx = message to say that deletion is not possible because there is at least 1 payment.

@eldy eldy assigned lamrani002 and unassigned oussamanhairech Aug 2, 2023
eldy added a commit that referenced this issue Aug 9, 2023
NEW  updating for display Help title when try to delete Don (issue  #25314)
@eldy eldy closed this as completed Aug 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This is a bug (something does not work as expected) Discussion Some questions or discussions are opened and wait answers of author or other people to be processed
Projects
None yet
Development

No branches or pull requests

4 participants