Browse Source

May 26: [FIX] Bug Fixed 'pos_idle_time_session_lock'

pull/320/merge
Cybrosys Technologies 2 weeks ago
parent
commit
8d8052f08a
  1. 2
      pos_idle_time_session_lock/__manifest__.py
  2. 6
      pos_idle_time_session_lock/doc/RELEASE_NOTES.md
  3. 7
      pos_idle_time_session_lock/static/src/js/session_timer.js

2
pos_idle_time_session_lock/__manifest__.py

@ -21,7 +21,7 @@
#############################################################################
{
'name': "POS Idle Session Lock",
'version': '16.0.1.0.0',
'version': '16.0.1.0.1',
'category': 'Point of Sale',
'summary': """The Module Allows the POS User to Set Screen Lock for POS
Screen""",

6
pos_idle_time_session_lock/doc/RELEASE_NOTES.md

@ -3,3 +3,9 @@
#### Version 16.0.1.0.0
##### ADD
- Initial commit POS Idle Session Lock
#### 23.05.2025
#### Version 16.0.1.0.1
#### UPDT
- Bug fix in PosTimerChrome class.Fixed an issue that occurred while loading the POS session.

7
pos_idle_time_session_lock/static/src/js/session_timer.js

@ -18,6 +18,9 @@ var count_down_time;
const PosTimerChrome = (Chrome) =>
class extends Chrome {
// Timer main function for set the timer
setup() {
super.setup();
}
set_timer() {
var self = this;
var count_down_time = this.env.pos.config.idle_time_limit
@ -35,9 +38,9 @@ const PosTimerChrome = (Chrome) =>
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
if (hours) {
this.body.children[1].querySelector('#times').textContent = hours + " h " + minutes + " m " + seconds + " s ";
this.document.body.querySelector('#times').textContent = hours + " h " + minutes + " m " + seconds + " s ";
} else {
this.body.children[1].querySelector('#times').textContent= minutes + " m " + seconds + " s ";
this.document.body.querySelector('#times').textContent= minutes + " m " + seconds + " s ";
}
if (distance < 0) {
clearInterval(x);

Loading…
Cancel
Save