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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0032278
TypeCategorySeverityReproducibilityDate SubmittedLast Update
backport[Retail Modules] Web POSmajoralways2016-02-18 16:352016-03-03 16:10
ReportermarvintmView Statuspublic 
Assigned Toguilleaer 
PrioritynormalResolutionfixedFixed in VersionRR16Q1
StatusclosedFix in branchFixed in SCM revisionc54d56ef22fc
ProjectionnoneETAnoneTarget VersionRR16Q1
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Tomarvintm
Regression levelPackaging and release
Regression date2015-12-15
Regression introduced in releasepi
Regression introduced by commithttps://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/5521 [^]
Triggers an Emergency PackNo
Summary

0032278: When a discretionary discount is removed, the total amount of the ticket is not computed

DescriptionWhen a discretionary discount is added to a line, the total amount of the ticket is correctly calculated. However, when this discount is removed, the total doesn't change, and this is wrong.
Steps To Reproduce- Add a line to a ticket
- Add a discretionary discount (using Receipt discounts)
- Select the line, and in the Edit panel, click on "Remove discount" button
- Verify that the discount is correctly removed from the line, but the total amount of the ticket hasn't changed.
Proposed SolutionThis problem comes from the removal of these two lines in editline.js:

+++ b/web/org.openbravo.retail.posterminal/js/pointofsale/view/editline.js Tue Dec 15 13:23:54 2015 +0100
@@ -263,8 +263,6 @@
     tap: function () {
       if (this.owner.owner && this.owner.owner.line && this.owner.owner.line.get('promotions')) {
         this.owner.owner.line.unset('promotions');
- OB.Model.Discounts.applyPromotions(this.model.get('order'));
- this.model.get('order').calculateGross();
         this.hide();
       }
     },


The solution is to replace them by a call to the new calculateReceipt() function.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
blocks defect 0032277pi closedjorge-garcia When a discretionary discount is removed, the total amount of the ticket is not computed 

-  Notes
(0084501)
hgbot (developer)
2016-02-25 13:55

Repository: retail/backports/3.0RR16Q1/org.openbravo.retail.posterminal
Changeset: c54d56ef22fc24cc7bbf4730c16bc38eb13913cf
Author: Guillermo Alvarez de Eulate <guillermo.alvarez <at> openbravo.com>
Date: Thu Feb 25 13:54:21 2016 +0100
URL: http://code.openbravo.com/retail/backports/3.0RR16Q1/org.openbravo.retail.posterminal/rev/c54d56ef22fc24cc7bbf4730c16bc38eb13913cf [^]

Fixed issue 32278, Backport of 32277: Receipr is recalculated when a discount is removed from an specific line

---
M web/org.openbravo.retail.posterminal/js/pointofsale/view/editline.js
---

- Issue History
Date Modified Username Field Change
2016-02-18 16:37 marvintm Type defect => backport
2016-02-18 16:37 marvintm Target Version pi => RR16Q1
2016-02-25 13:55 hgbot Checkin
2016-02-25 13:55 hgbot Note Added: 0084501
2016-02-25 13:55 hgbot Status scheduled => resolved
2016-02-25 13:55 hgbot Resolution open => fixed
2016-02-25 13:55 hgbot Fixed in SCM revision => http://code.openbravo.com/retail/backports/3.0RR16Q1/org.openbravo.retail.posterminal/rev/c54d56ef22fc24cc7bbf4730c16bc38eb13913cf [^]
2016-02-25 13:56 guilleaer Assigned To jorge-garcia => guilleaer
2016-03-03 16:10 marvintm Review Assigned To => marvintm
2016-03-03 16:10 marvintm Status resolved => closed
2016-03-03 16:10 marvintm Fixed in Version => RR16Q1


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker