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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0044578
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Web POSmajorhave not tried2020-07-08 11:422020-07-20 12:32
ReporterAugustoMauchView Statuspublic 
Assigned Toranjith_qualiantech_com 
PrioritynormalResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Toadrianromero
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0044578: Deleting a receipt that contains a coupon consumes the coupon

DescriptionIf the webpos is configured to store deleted receipts, and a receipt containing a coupon is deleted, the coupon will be consumed.

This happens because the [1] PreOrderLoaderHookCoupons is not checking if the order has been deleted.

[1] https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts.coupons/-/blob/master/src/org/openbravo/retail/discounts/coupons/PreOrderLoaderHookCoupons.java#L23 [^]
Steps To ReproduceIn an environment with the org.openbravo.retail.discounts.coupons module installed:
- Configure the preference to store deleted receipts: Web POS Save Removed Tickets
- In the backend, configure a discount to be used with coupons, create a coupon
- In webpos, add some products to a ticket and then add the coupon created in the previous step.
- Remove the ticket, and check that the coupon status has been changed to Not Available
TagsNOR
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
has duplicate defect 0044591 closedranjith_qualiantech_com When a ticket with a coupon is deleted, the coupon is set a Not available 

-  Notes
(0121402)
hgbot (developer)
2020-07-13 07:45

Repository: erp/pmods/org.openbravo.retail.discounts.coupons
Changeset: b417d170cb7beff7bd84aeca88575fc475ffd9a2
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Mon Jul 13 11:14:52 2020 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts.coupons/rev/b417d170cb7beff7bd84aeca88575fc475ffd9a2 [^]

Related to issue-44578: Coupons should not be consumed when deleting the receipt

* With Pref. Save Removed Tickets is enabled, Coupons should not be processed/consumed
  when deleting the receipt with coupons

---
M src/org/openbravo/retail/discounts/coupons/PreOrderLoaderHookCoupons.java
---
(0121528)
adrianromero (manager)
2020-07-20 12:32

Reviewed

- Issue History
Date Modified Username Field Change
2020-07-08 11:42 AugustoMauch New Issue
2020-07-08 11:42 AugustoMauch Assigned To => Retail
2020-07-08 11:42 AugustoMauch Resolution time => 1595368800
2020-07-08 11:42 AugustoMauch Triggers an Emergency Pack => No
2020-07-08 11:42 AugustoMauch Tag Attached: NOR
2020-07-10 06:32 ranjith_qualiantech_com Assigned To Retail => ranjith_qualiantech_com
2020-07-13 07:45 hgbot Checkin
2020-07-13 07:45 hgbot Note Added: 0121402
2020-07-13 08:18 ranjith_qualiantech_com Status new => scheduled
2020-07-14 18:20 ranjith_qualiantech_com Status scheduled => resolved
2020-07-14 18:20 ranjith_qualiantech_com Resolution open => fixed
2020-07-20 05:25 ranjith_qualiantech_com Relationship added has duplicate 0044591
2020-07-20 12:32 adrianromero Review Assigned To => adrianromero
2020-07-20 12:32 adrianromero Note Added: 0121528
2020-07-20 12:32 adrianromero Status resolved => closed


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker