Project

General

Profile

Development #7121

Updated by Kyle Chong 3 months ago

Refer to: docs/planning/modules/M03_POS_Terminal_Cart.md 

 Implement controlled manual price override for a cart item and protect active-cart state from unauthorised exit/re-entry. item. 

 Scope: 

 * Allow authorised price override. 
 * Block unauthorised users. 
 * Trigger supervisor/manager approval where configured. 
 * Record original price. 
 * Record overridden price. 
 * Record requesting cashier. 
 * Record approving user. 
 * Record reason where required. 
 * Recalculate cart totals after approval. 
 * Record the override in transaction audit information. 
 * 

 Reuse M01 authentication/permission mechanisms rather than implementing separate supervisor authentication. 

 Additional active-cart control: 

 * When the cart already contains one or more products, restrict the cashier from navigating back to the main/dashboard page without completing, suspending or voiding the current sale. 
 * If the cashier attempts to close/exit the POS application while an active cart contains items, preserve the active cart state locally. 
 * On the next POS startup/login, detect the unfinished active cart. 
 * Before allowing the user to continue into the POS sales page or clear/recover the unfinished cart, require Manager/Supervisor validation. 
 * The Manager/Supervisor approval must use the existing M01 authentication/permission mechanism. 
 * Record the requesting cashier, approving Manager/Supervisor, terminal, date/time and recovery/override action in the audit trail. 
 * Prevent the cashier from bypassing the control by repeatedly restarting the application. 
 * Ensure the unfinished cart is not silently deleted or converted into a completed transaction. 
 * After approval, follow the configured action, such as: 
 * * Resume the unfinished cart, or 
 * * Void/cancel the unfinished cart with the required reason and audit record. 

 Done when: Controlled price override can be performed by/with an authorised user and is fully auditable, and an active cart cannot be bypassed by returning to dashboard or intentionally closing/reopening POS without Manager/Supervisor validation. auditable.

Back