Help Needed with "Enable Show Receipt" Setting in MindsPOS #55068
Unanswered
codexteamofficial
asked this question in
Q&A
Replies: 1 comment 2 replies
-
@codexteamofficial Hey, it seems like there's a few problem with your current implementation, first of all it looks to me like your checkbox doesn't update the value as it should, but I would also make sure that the settings are properly considered, more specifically when it comes 'enable_show_receipt' |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The requirement:
I need to add a checkbox in the Settings Panel under business settings. This checkbox will control whether the receipt should be shown after completing a cash transaction:
Enabled: The receipt will be displayed after a cash payment.
Disabled: No receipt will be shown after a cash payment.
Current Implementation:
Added a checkbox for "Enable Show Receipt" in the settings.
The setting is stored in the database (pos_settings table) and persists across sessions.
I’ve updated the backend and front-end code to dynamically check this setting when processing transactions.
There are already some checkboxes in the settings panel that are functional, but when I implemented the new checkbox, it doesn't seem to work. I didn’t migrate the enable_show_receipt setting to pos_settings through Laravel migration; instead, I updated it directly in the database table.
I made changes in the Business Controller, Transaction Payment Controller, Business Utils, settings_pos.blade.php, and pos.js.
Issue:
Even though the setting is stored correctly and seems to be updating, the window.print() dialog box won't appear, and the receipt is not displaying as expected after completing a transaction. Whether I enable or disable the checkbox, the receipt still doesn't show up.
Has anyone encountered a similar issue or can suggest what might be missing in the logic? Any help would be appreciated! 🙏
Thanks in advance! 🚀






Beta Was this translation helpful? Give feedback.
All reactions