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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0039224
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Discounts by Payment Methodmajoralways2018-09-04 14:182018-09-06 15:08
ReporterumartirenaView Statuspublic 
Assigned Toumartirena 
PriorityurgentResolutionopenFixed in Version
StatusscheduledFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0039224: Discount calculation amount issue in Discount by Payment Method

DescriptionPayment method discount amount is not properly calculated under certain circumstances.
Steps To ReproduceGo to https://livebuilds.openbravo.com/retail_modules_pgsql_pi/ [^]
Open Discounts and Promotions window and create a new record:
 * Discount/Promotion type: "Payment Method Discount"
 * Name: "2.3% Discount on Cash Payment Method"
 * Starting date: Something earlier than Today
 * Percentage from Total: 2.3%
 * Add a record in Payment Method tab:
   - Payment Method: Wire transfer
Login into https://livebuilds.openbravo.com/retail_modules_pgsql_pi/web/org.openbravo.retail.posterminal/?terminal=VBS-1 [^]
 * Add an item
 * Change price to 15.00
 * Go to payment method
 * Click on Exact Payment
 * Realize that the payment added is of amount 14.65, but the discount included is of amount -0.34, so there is pending 0.01€ to be paid, which is wrong.
Proposed SolutionDon't recalculate the discount again, reuse the information calculated to add the payment
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0037856 closedranjith_qualiantech_com Issues in Payment Method discount calculation 

-  Notes
(0106617)
hgbot (developer)
2018-09-06 12:02

Repository: erp/pmods/org.openbravo.retail.discounts.bypaymentmethod
Changeset: 602c9e6db91c6fe40f3b9743f79dc9f6afbea422
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Thu Sep 06 15:32:34 2018 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts.bypaymentmethod/rev/602c9e6db91c6fe40f3b9743f79dc9f6afbea422 [^]

Related to issue 39224 : Modified Discount calculation to avoid roundoff problems

---
M web/org.openbravo.retail.discounts.bypaymentmethod/js/paymentmethod-discount.js
---
(0106625)
hgbot (developer)
2018-09-06 15:08

Repository: tools/automation/pi-mobile
Changeset: 9f86c472363732157eb3a560650d5a0345b5ffa8
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Thu Sep 06 18:38:22 2018 +0530
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/9f86c472363732157eb3a560650d5a0345b5ffa8 [^]

Verifies issue 39224 : Modified Test 'I30305_VerifyDiscountByMultiPayment'

---
M src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/discounts_bypaymentmethod/I30305_VerifyDiscountByMultiPayment.java
M src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/discounts_bypaymentmethod/I30305_VerifyDiscountByMultiPaymentII.java
---

- Issue History
Date Modified Username Field Change
2018-09-04 14:18 umartirena New Issue
2018-09-04 14:18 umartirena Assigned To => Retail
2018-09-04 14:18 umartirena Triggers an Emergency Pack => No
2018-09-04 14:18 umartirena Relationship added related to 0037856
2018-09-04 14:27 ranjith_qualiantech_com Assigned To Retail => ranjith_qualiantech_com
2018-09-04 14:27 ranjith_qualiantech_com Status new => scheduled
2018-09-04 16:21 jfrances Issue Monitored: jfrances
2018-09-05 07:44 rafaroda Issue Monitored: rafaroda
2018-09-05 13:15 umartirena Assigned To ranjith_qualiantech_com => umartirena
2018-09-06 12:02 hgbot Checkin
2018-09-06 12:02 hgbot Note Added: 0106617
2018-09-06 15:08 hgbot Checkin
2018-09-06 15:08 hgbot Note Added: 0106625


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker