diff --git a/pos_discount_manager/__manifest__.py b/pos_discount_manager/__manifest__.py index 39096aa1f..a63fe0157 100755 --- a/pos_discount_manager/__manifest__.py +++ b/pos_discount_manager/__manifest__.py @@ -20,7 +20,7 @@ ############################################################################# { 'name': "POS Discount Manager Approval", - 'version': '17.0.1.0.0', + 'version': '17.0.1.0.1', 'category': 'Point Of Sale', 'summary': "Discount limit for each employee in every point of sale""", 'description': """This module helps you to set a discount limit for each diff --git a/pos_discount_manager/doc/RELEASE_NOTES.md b/pos_discount_manager/doc/RELEASE_NOTES.md index 850b65de2..107fb81c3 100755 --- a/pos_discount_manager/doc/RELEASE_NOTES.md +++ b/pos_discount_manager/doc/RELEASE_NOTES.md @@ -4,3 +4,8 @@ #### Version 17.0.1.0.0 #### ADD - Initial Commit POS Discount Manager Approval + +#### 06.11.2024 +#### Version 17.0.1.0.1 +#### Updated +- Added a condition in payment_screen \ No newline at end of file diff --git a/pos_discount_manager/static/src/js/payment_screen.js b/pos_discount_manager/static/src/js/payment_screen.js index 54e9cf041..8a2d7463f 100755 --- a/pos_discount_manager/static/src/js/payment_screen.js +++ b/pos_discount_manager/static/src/js/payment_screen.js @@ -28,7 +28,7 @@ patch(PaymentScreen.prototype, { if(confirmed){ var output = this.pos.employees.filter((obj) => obj.role == 'manager' && obj.user_id == session.uid); var pin = output[0].pin - if (Sha1.hash(payload) == pin) { + if (pin && Sha1.hash(payload) == pin) { this.pos.showScreen(this.nextScreen); } else {