Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||||||
ID | ||||||||||||
0039224 | ||||||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||||||
defect | [Retail Modules] Discounts by Payment Method | major | always | 2018-09-04 14:18 | 2018-09-06 15:08 | |||||||
Reporter | umartirena | View Status | public | |||||||||
Assigned To | umartirena | |||||||||||
Priority | urgent | Resolution | open | Fixed in Version | ||||||||
Status | scheduled | Fix in branch | Fixed in SCM revision | |||||||||
Projection | none | ETA | none | Target Version | ||||||||
OS | Any | Database | Any | Java version | ||||||||
OS Version | Database version | Ant version | ||||||||||
Product Version | SCM revision | |||||||||||
Review Assigned To | ||||||||||||
Regression level | ||||||||||||
Regression date | ||||||||||||
Regression introduced in release | ||||||||||||
Regression introduced by commit | ||||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0039224: Discount calculation amount issue in Discount by Payment Method | |||||||||||
Description | Payment method discount amount is not properly calculated under certain circumstances. | |||||||||||
Steps To Reproduce | Go 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 Solution | Don't recalculate the discount again, reuse the information calculated to add the payment | |||||||||||
Tags | No tags attached. | |||||||||||
Attached Files | ||||||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | ||||||||
|
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 |