v1.6.0-rc4#16
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request adds support for cancelling orders from the cashier interface. It introduces backend integration for order cancellation, updates the UI to allow users to cancel confirmed orders with confirmation dialogs, and ensures the new "CANCELLED" status is handled throughout the application. Additionally, relevant types and translations are updated to support this feature.
Order Cancellation Feature
cancelOrderAPI action incashier.tsto allow deleting an order via the backend.cancelOrderaction into the cashier UI, including the main client component (CassaClient.tsx) and all layouts (desktop and mobile), so users can initiate cancellation from the order list. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13]DailyOrderCardcomponent to show a cancel button for confirmed orders, with anAlertDialogconfirmation before cancelling. [1] [2]Status and Type Updates
CANCELLEDstatus to order types inapi-types.tsand ensured all components and status badges handle this new state. [1] [2]UI and UX Improvements
DailyOrderCard.These changes collectively enable users to safely and clearly cancel confirmed orders from the cashier interface, with proper feedback and status handling across the application.