Implementation of a Discount Lock Button in Business Settings

o provide greater control over discount policies and prevent unauthorized discounting, we need to implement a Discount Lock Button in the business settings. When this button is enabled, the system should restrict the ability to apply any discounts on the POS (Point of Sale) screen. If a user attempts to apply a discount, an error sound should be triggered, accompanied by a pop-up message stating that discounts are not allowed.

DETAILED REQUIREMENTS:

  1. Discount Lock Button in Business Settings:
  • A Discount Lock Button should be added to the business settings interface, allowing the business owner or admin to control whether discounts can be applied.

  • This button should be a toggle switch labeled “Discount Lock”, with two states:

  • ON: Discounts are locked, and no discounts can be applied on the POS screen.

  • OFF: Discounts are allowed as per usual business rules and user permissions.

  1. POS Screen Behavior When Discount Lock is Enabled:
  • When the Discount Lock Button is turned ON:

  • The Discount Button on the POS screen should be disabled, preventing any discount entry.

  • If a user attempts to click on the discount button or manually enter a discount value, the system should:

  • Trigger an error sound to alert the user.

  • Display a pop-up message with the text: “Discounts are not allowed for this transaction. Please contact the administrator.”

  • The system should prevent any form of discount entry (both invoice discount and inline discount) when the lock is enabled.

  1. User Interface Changes:
  • Business Settings:

  • The Discount Lock Button should be placed under the Sales Settings or a similar section in the business settings panel.

  • The button should have a clear visual indicator to show its current state (e.g., green for “ON” and gray for “OFF”).

  • POS Screen:

  • When the Discount Lock is enabled:

  • The Discount Button should appear grayed out or crossed to indicate it is inactive.

  • An error sound file should be linked to any discount action when the lock is active.

Please authenticate to join the conversation.

Upvoters
Status

In Review

Board

💡 Feature Request

Tags

Improvements

Date

Over 1 year ago

Author

Munshi Sohag Hossen

Subscribe to post

Get notified by email when there are changes.