Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0051876
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Web POSmajoralways2023-03-15 21:082023-04-03 06:58
ReportersofidossantView Statuspublic 
Assigned Toranjith_qualiantech_com 
PriorityhighResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionRR20Q3.1SCM revision 
Review Assigned To
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0051876: Error when using Coupons and sending by Email

DescriptionWhen I use a coupon, on 2 tickets, I finish one and then try to finish the other, we see the email popup, and the popup where it tells us that the coupon has been used, but when I exit, the screen frizes.
Steps To ReproduceStep to reproduce :
1 - Create new coupon
2 - Scan an article, scan coupon then pay ticket with any method payment
3 - Click in "New receipt" button, scan an article, scan the same coupon then pay ticket with any method payment then finalize ticket
4 - Remain the first ticket (step 2), finalize ticket, you have message popup "The following coupons have already been used", click on button "Remove coupon from ticket" then choose sending method (mail or print)
5 - WebPOS freezes in grey screen
Proposed SolutionThe problem is that both controls use the pre order save hook.
In version 22q1 of send email, this was changed, and the hook was removed.
In this commit:

https://gitlab.com/openbravo/devel/pmods/org.openbravo.retail.sendemail/-/commit/759baf7b0701f96e697371900ec206d2dc5bc098 [^]

We could make a backport.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0147993)
ranjith_qualiantech_com (developer)
2023-03-27 16:36

Attached patch for 20Q3
(0148075)
sofidossant (developer)
2023-03-29 20:59

With the patch the WebPOS freezes in grey screen

1 - Create new coupon
2 - Scan an article, scan coupon then pay ticket with any method payment
3 - Click in "New receipt" button, scan an article, scan the same coupon then pay ticket with any method payment then finalize ticket
4 - Remain the first ticket (step 2), finalize ticket, you have message popup "The following coupons have already been used",
by mistake I click outside the windows instead of :
click on button "Remove coupon from ticket"
5 - then choose sending method (mail or print)
6 - after that the WebPOS freezes in grey screen

Then I made the same test and at Step 4
- I Clicked on the button "Remove coupon from ticket "
 - then print
the Webpos freezes in grey screen
(0148121)
ranjith_qualiantech_com (developer)
2023-03-30 15:22

Steps to reproduce in livebuilds
Backoffice
1) Create price adjustment discount and add coupon code (with expire after 1 use)
POS
1) Add product, Apply coupon code (Do not complete it)
2) Create new receipt, Add product, Apply same coupon code, complete it
3) Select receipt from step 1
4) Complete the receipt
5) Popup will be shown. (Coupon can't be used)
If user click "Remove coupon from ticket", receipt scan should be shown. Since, receipt will be recalculated and gross will be changed due to removing coupons.
(0148157)
hgbot (developer)
2023-03-31 12:44

Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts.coupons/-/merge_requests/18 [^]
(0148173)
hgbot (developer)
2023-04-03 06:58

Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts.coupons/-/merge_requests/18 [^]
(0148174)
hgbot (developer)
2023-04-03 06:58

Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts.coupons [^]
Changeset: c490b98fdfd755cc708184f998e0edd0e740bba8
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 31-03-2023 11:10:16
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts.coupons/-/commit/c490b98fdfd755cc708184f998e0edd0e740bba8 [^]

Fixed ISSUE-51876: Receipt scan tab should be shown when coupon is removed
* When completing the ticket, coupon is already processed, then
  coupon should be removed from ticket and receipt scan tab should be shown
* AutoDismiss option should be removed from remove coupon from ticket popup

---
M web/org.openbravo.retail.discounts.coupons/js/hooks/preordersavehook.js
M web/org.openbravo.retail.discounts.coupons/js/utils/utils.js
---

- Issue History
Date Modified Username Field Change
2023-03-15 21:08 sofidossant New Issue
2023-03-15 21:08 sofidossant Assigned To => Triage Platform Conn
2023-03-15 21:08 sofidossant Triggers an Emergency Pack => No
2023-03-20 09:38 marvintm Assigned To Triage Platform Conn => Retail
2023-03-20 09:38 marvintm Category Web POS Hardware Manager => Web POS
2023-03-27 08:13 ranjith_qualiantech_com Assigned To Retail => ranjith_qualiantech_com
2023-03-27 08:13 ranjith_qualiantech_com Status new => scheduled
2023-03-27 16:36 ranjith_qualiantech_com Note Added: 0147993
2023-03-27 16:36 ranjith_qualiantech_com Status scheduled => closed
2023-03-27 16:36 ranjith_qualiantech_com Resolution open => no change required
2023-03-29 20:59 sofidossant Note Added: 0148075
2023-03-29 21:00 sofidossant Status closed => new
2023-03-30 07:10 ranjith_qualiantech_com Status new => scheduled
2023-03-30 15:22 ranjith_qualiantech_com Note Added: 0148121
2023-03-31 12:44 hgbot Note Added: 0148157
2023-04-03 06:58 hgbot Note Added: 0148173
2023-04-03 06:58 hgbot Resolution no change required => fixed
2023-04-03 06:58 hgbot Status scheduled => closed
2023-04-03 06:58 hgbot Note Added: 0148174


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker