Skip to content

Open the payment mode popup when settling an order - #10

Merged
khafifithebork merged 1 commit into
dem-bijan:mainfrom
khafifithebork:featur/checkbox
Aug 9, 2026
Merged

khafifithebork merged 1 commit into
dem-bijan:mainfrom
khafifithebork:featur/checkbox

Conversation

@khafifithebork

Copy link
Copy Markdown
Collaborator

Valider le paiement was a dead action. The popup was built and mounted, and the confirmPaiement handler was correct, but nothing ever called setPayingAchat — so the stale confirm() from before the payment-mode work still fired, and the validatePaiement() call had already been removed from the try block. Clicking through it showed "La caisse du chantier … sera débitée de …", then did nothing: no request, no state change, order left unpaid.

The button now opens the mode popup, and the request goes out once a mode is chosen.

This slipped through because every check on the payment-mode work hit the API directly. Those passed, and the endpoint really is correct — but none of them went through the button, so a UI path that never reached the API looked identical to one that did. Found by clicking it in a browser.

Valider le paiement was a dead action. The popup was built and mounted,
and the confirmPaiement handler was correct, but nothing ever called
setPayingAchat — so the stale confirm() from before the payment-mode work
still fired, and the validatePaiement() call had already been removed from
the try block. Clicking through it showed "La caisse du chantier … sera
débitée de …", then did nothing: no request, no state change, order left
unpaid.

The button now opens the mode popup, and the request goes out once a mode
is chosen.

This slipped through because every check on the payment-mode work hit the
API directly. Those passed, and the endpoint really is correct — but none
of them went through the button, so a UI path that never reached the API
looked identical to one that did. Found by clicking it in a browser.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@vercel

vercel Bot commented Aug 9, 2026

Copy link
Copy Markdown

@khafifithebork is attempting to deploy a commit to the Mohamed najib's projects Team on Vercel.

A member of the Team first needs to authorize it.

@khafifithebork
khafifithebork merged commit fafee82 into dem-bijan:main Aug 9, 2026
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant