Openbravo Issue Tracking System - Retail Modules |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0034856 | Retail Modules | Discounts by Payment Method | public | 2017-01-05 13:41 | 2018-02-15 14:06 |
|
Reporter | ranjith_qualiantech_com | |
Assigned To | ranjith_qualiantech_com | |
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | RR18Q2 | |
Merge Request Status | |
Review Assigned To | marvintm |
OBNetwork customer | |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0034856: Issues in Payment Method discount calculation |
Description | a) If we have 10% Discount on Cash payment method & 20% Discount on Card payment method. If we add a product with Price 200 and then adding Cash "70", we will have 7.78 discount for Cash. While clicking card payment, it will display "Pay 97.78 ..." by calculating the pending amount with 20% discount. But actually value was "97.776". Due to this, we will have some issues in calculation (https://www.youtube.com/watch?v=u2sC6hyK6oM [^])
b) If we add same payment method under 2 discount with 10% and 20%, discount with 10% is inactive and discount with 20% is active, then active discount is not used in discount calculation |
Steps To Reproduce | a) Remove rounding decimals 6 from paymentmethod-discount.js and run test "I31850_VerifyDiscountByPaymentMethod"
b) Run test "I30305_VerifyDiscountByMultiPaymentII" |
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | related to | defect | 0041154 | | closed | rqueralta | "Tax" field in the order's JSON is wrong when including a compound tax rate in a layaway, it is loaded and paid | related to | defect | 0041332 | | closed | ranjith_qualiantech_com | Discounts by Payment Method are not applied when paying a layaway |
|
Attached Files | issue 34856 source discount_paymentmethod 61.patch (22,268) 2017-05-09 09:27 https://issues.openbravo.com/file_download.php?file_id=10737&type=bug issue 34856 test 6520.patch (13,235) 2017-05-09 09:27 https://issues.openbravo.com/file_download.php?file_id=10738&type=bug |
|
Issue History |
Date Modified | Username | Field | Change |
2017-01-05 13:41 | ranjith_qualiantech_com | New Issue | |
2017-01-05 13:41 | ranjith_qualiantech_com | Assigned To | => Retail |
2017-01-05 13:41 | ranjith_qualiantech_com | Triggers an Emergency Pack | => No |
2017-01-05 13:41 | ranjith_qualiantech_com | Assigned To | Retail => ranjith_qualiantech_com |
2017-01-05 13:41 | ranjith_qualiantech_com | Status | new => scheduled |
2017-05-09 09:27 | ranjith_qualiantech_com | File Added: issue 34856 source discount_paymentmethod 61.patch | |
2017-05-09 09:27 | ranjith_qualiantech_com | File Added: issue 34856 test 6520.patch | |
2017-12-22 06:57 | hgbot | Checkin | |
2017-12-22 06:57 | hgbot | Note Added: 0101194 | |
2017-12-22 12:14 | hgbot | Checkin | |
2017-12-22 12:14 | hgbot | Note Added: 0101211 | |
2017-12-22 13:43 | hgbot | Checkin | |
2017-12-22 13:43 | hgbot | Note Added: 0101235 | |
2017-12-26 08:47 | hgbot | Checkin | |
2017-12-26 08:47 | hgbot | Note Added: 0101250 | |
2017-12-26 11:34 | hgbot | Checkin | |
2017-12-26 11:34 | hgbot | Note Added: 0101252 | |
2017-12-26 14:45 | hgbot | Checkin | |
2017-12-26 14:45 | hgbot | Note Added: 0101256 | |
2018-01-05 07:07 | ranjith_qualiantech_com | Status | scheduled => resolved |
2018-01-05 07:07 | ranjith_qualiantech_com | Resolution | open => fixed |
2018-02-15 14:06 | marvintm | Review Assigned To | => marvintm |
2018-02-15 14:06 | marvintm | Status | resolved => closed |
2018-02-15 14:06 | marvintm | Fixed in Version | => RR18Q2 |
2019-07-04 13:58 | ngarcia | Relationship added | related to 0041154 |
2019-07-10 13:35 | ngarcia | Relationship added | related to 0041332 |
Notes |
|
(0101194)
|
hgbot
|
2017-12-22 06:57
|
|
|
|
(0101211)
|
hgbot
|
2017-12-22 12:14
|
|
Repository: tools/automation/pi-mobile
Changeset: acd5b2e34e9328a785350de799f62c0ca78ee80d
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Fri Dec 22 16:43:45 2017 +0530
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/acd5b2e34e9328a785350de799f62c0ca78ee80d [^]
Verifies issue 34856 : Added automated test 'I34856_VerifyDiscountWithMultiProduct'
---
M src-test/org/openbravo/test/mobile/quarantine/extmodules/RAN/discounts_bypaymentmethod/I30305_VerifyDiscountByMultiPayment.java
M src-test/org/openbravo/test/mobile/quarantine/extmodules/RAN/discounts_bypaymentmethod/I30305_VerifyDiscountByMultiPaymentII.java
M src-test/org/openbravo/test/mobile/quarantine/extmodules/RAN/discounts_bypaymentmethod/I31850_VerifyDiscountByPaymentMethod.java
M src-test/org/openbravo/test/mobile/retail/extmodules/selenium/terminals/WebPOSExtModulesSplitLineHelper.java
M src-test/org/openbravo/test/mobile/retail/extmodules/selenium/terminals/WebPOSExtModulesTerminalHelper.java
M src-test/org/openbravo/test/mobile/retail/pack/selenium/TestIdPack.java
A src-test/org/openbravo/test/mobile/quarantine/extmodules/RAN/discounts_bypaymentmethod/I34856_VerifyDiscountWithMultiProduct.java
---
|
|
|
(0101235)
|
hgbot
|
2017-12-22 13:43
|
|
Repository: tools/automation/pi-mobile
Changeset: b1a6cb566811707ca5f2e2a0a96659cf9e8c958d
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Fri Dec 22 18:12:50 2017 +0530
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/b1a6cb566811707ca5f2e2a0a96659cf9e8c958d [^]
Verifies issue 34856 : Added waitFixOf for PaymentMethodDiscount Tests
---
M src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/discounts_bypaymentmethod/I33511_VerifyLayaway.java
M src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/discounts_bypaymentmethod/I33512_VerifyPayOpenTickets.java
---
|
|
|
(0101250)
|
hgbot
|
2017-12-26 08:47
|
|
|
|
(0101252)
|
hgbot
|
2017-12-26 11:34
|
|
|
|
(0101256)
|
hgbot
|
2017-12-26 14:45
|
|
Repository: tools/automation/pi-mobile
Changeset: af921a54b0b2861661d707b51cfa1f77499d12a7
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Tue Dec 26 19:15:23 2017 +0530
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/af921a54b0b2861661d707b51cfa1f77499d12a7 [^]
Verifies issue 34856 : Moved test from quaratine to discount by payment method location
---
M src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/discounts_bypaymentmethod/I33511_VerifyLayaway.java
M src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/discounts_bypaymentmethod/I33512_VerifyPayOpenTickets.java
A src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/discounts_bypaymentmethod/I30305_VerifyDiscountByMultiPayment.java
A src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/discounts_bypaymentmethod/I30305_VerifyDiscountByMultiPaymentII.java
A src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/discounts_bypaymentmethod/I31850_VerifyDiscountByPaymentMethod.java
A src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/discounts_bypaymentmethod/I34856_VerifyDiscountWithMultiProduct.java
R src-test/org/openbravo/test/mobile/quarantine/extmodules/RAN/discounts_bypaymentmethod/I30305_VerifyDiscountByMultiPayment.java
R src-test/org/openbravo/test/mobile/quarantine/extmodules/RAN/discounts_bypaymentmethod/I30305_VerifyDiscountByMultiPaymentII.java
R src-test/org/openbravo/test/mobile/quarantine/extmodules/RAN/discounts_bypaymentmethod/I31850_VerifyDiscountByPaymentMethod.java
R src-test/org/openbravo/test/mobile/quarantine/extmodules/RAN/discounts_bypaymentmethod/I34856_VerifyDiscountWithMultiProduct.java
---
|
|