Openbravo Issue Tracking System - Retail Modules
View Issue Details
0041181Retail ModulesWeb POSpublic2019-06-26 10:302019-07-17 09:52
francisco 
ranjith_qualiantech_com 
highmajoralways
closedfixed 
5
 
RR19Q4 
guilleaer
No
0041181: [POS]wrong behavior applying discount by payment method
[POS]wrong behavior applying discount by payment method
Tested in PI
1. Discount and promotions windows and activate the discount by payment method for cash
2. In the POS by a product and cash as payment method
3. It is applying the correct discount, but doesn't confirm the payment and cancel it
4. Go in menu to Cash management and click Done
5. Try again to pay cash the product:
    * On the left side of the POS is not applying the discount
    * On the right side of the POS is showing as remaining to pay the amount of the discount
    * If you confirm the payment it takes as amount paid the double of the quantity it shows in the screen (real price - discount)
6. After that, it is continuously showing this wrong behavior until you click on the line, and try to pay again, when it is applying the discount again
No tags attached.
patch issue 41181 source posterminal.patch (859) 2019-07-04 18:36
https://issues.openbravo.com/file_download.php?file_id=13089&type=bug
patch issue 41181 source discounts_paymentmethod_2.patch (2,291) 2019-07-04 18:37
https://issues.openbravo.com/file_download.php?file_id=13090&type=bug
patch issue 41181 source discounts_paymentmethod 16-May.patch (4,180) 2019-07-16 12:56
https://issues.openbravo.com/file_download.php?file_id=13136&type=bug
patch issue 41181 source giftcards 16-May.patch (1,415) 2019-07-16 12:57
https://issues.openbravo.com/file_download.php?file_id=13137&type=bug
patch issue 41181 source pimobile 16-May.patch (6,379) 2019-07-16 13:06
https://issues.openbravo.com/file_download.php?file_id=13138&type=bug
Issue History
2019-06-26 10:30franciscoNew Issue
2019-06-26 10:30franciscoAssigned To => Retail
2019-06-26 10:30franciscoResolution time => 1563228000
2019-06-26 10:30franciscoTriggers an Emergency Pack => No
2019-06-26 10:37jfrancesIssue Monitored: jfrances
2019-06-26 10:46franciscoNote Added: 0113031
2019-06-26 16:19malsasuaNote Added: 0113040
2019-06-26 16:27marvintmCategoryDiscounts by Payment Method => Web POS
2019-06-27 19:52matias-bernalIssue Monitored: matias-bernal
2019-07-01 11:09ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2019-07-01 11:09ranjith_qualiantech_comStatusnew => scheduled
2019-07-01 12:53ranjith_qualiantech_comFile Added: issue 41181 source discounts_paymentmethod.patch
2019-07-04 18:36marvintmFile Added: issue 41181 source posterminal.patch
2019-07-04 18:37marvintmFile Added: issue 41181 source discounts_paymentmethod_2.patch
2019-07-08 12:47hgbotCheckin
2019-07-08 12:47hgbotNote Added: 0113210
2019-07-08 12:49hgbotCheckin
2019-07-08 12:49hgbotNote Added: 0113211
2019-07-08 12:49hgbotStatusscheduled => resolved
2019-07-08 12:49hgbotResolutionopen => fixed
2019-07-08 12:49hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts.bypaymentmethod/rev/fcbb2e397905403b2f7f5b17dd3ef55b4b9b9532 [^]
2019-07-09 14:20hgbotCheckin
2019-07-09 14:20hgbotNote Added: 0113244
2019-07-11 15:31hgbotCheckin
2019-07-11 15:31hgbotNote Added: 0113285
2019-07-12 12:39hgbotCheckin
2019-07-12 12:39hgbotNote Added: 0113326
2019-07-12 15:04guilleaerNote Deleted: 0113285
2019-07-16 12:26ranjith_qualiantech_comFile Deleted: issue 41181 source discounts_paymentmethod.patch
2019-07-16 12:27ranjith_qualiantech_comNote Added: 0113401
2019-07-16 12:27ranjith_qualiantech_comStatusresolved => new
2019-07-16 12:27ranjith_qualiantech_comResolutionfixed => open
2019-07-16 12:27ranjith_qualiantech_comStatusnew => scheduled
2019-07-16 12:56ranjith_qualiantech_comFile Added: issue 41181 source discounts_paymentmethod 16-May.patch
2019-07-16 12:57ranjith_qualiantech_comFile Added: issue 41181 source giftcards 16-May.patch
2019-07-16 13:06ranjith_qualiantech_comFile Added: issue 41181 source pimobile 16-May.patch
2019-07-16 13:23hgbotCheckin
2019-07-16 13:23hgbotNote Added: 0113403
2019-07-16 13:24hgbotCheckin
2019-07-16 13:24hgbotNote Added: 0113404
2019-07-17 07:44hgbotCheckin
2019-07-17 07:44hgbotNote Added: 0113462
2019-07-17 07:45ranjith_qualiantech_comStatusscheduled => resolved
2019-07-17 07:45ranjith_qualiantech_comResolutionopen => fixed
2019-07-17 09:52guilleaerReview Assigned To => guilleaer
2019-07-17 09:52guilleaerStatusresolved => closed
2019-07-17 09:52guilleaerFixed in Version => RR19Q4

Notes
(0113031)
francisco   
2019-06-26 10:46   
You can see a video with the example:
https://drive.google.com/open?id=1RUvVDsjJmuVNoVAzWkSpGPe6TF0e1d5i [^]
(0113040)
malsasua   
2019-06-26 16:19   
It seems that, when Cash Management window is opened, the events stop working
(0113210)
hgbot   
2019-07-08 12:47   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: d7a97bc67ce65acb2eeb068e4c6fa1bc221b0d6d
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Mon Jul 08 16:17:40 2019 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/d7a97bc67ce65acb2eeb068e4c6fa1bc221b0d6d [^]

Related to issue 41181 : Added OBPOS_postRemovePayment hook after removing payment

---
M web/org.openbravo.retail.posterminal/js/model/order.js
---
(0113211)
hgbot   
2019-07-08 12:49   
Repository: erp/pmods/org.openbravo.retail.discounts.bypaymentmethod
Changeset: fcbb2e397905403b2f7f5b17dd3ef55b4b9b9532
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Mon Jul 08 16:19:00 2019 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts.bypaymentmethod/rev/fcbb2e397905403b2f7f5b17dd3ef55b4b9b9532 [^]

Fixed issue 41181 : Discount should be added from postAddPayment hook instead of receipt payment add event

* Discount should be removed from postRemovePayment hook instead of receipt payment remove event
* receipt calculatingReceipt events should be reset when OBPOS_PrePaymentHook is called

---
M web/org.openbravo.retail.discounts.bypaymentmethod/js/paymentmethod-discount.js
---
(0113244)
hgbot   
2019-07-09 14:20   
Repository: erp/pmods/org.openbravo.retail.discounts.bypaymentmethod
Changeset: 89402b5ac464106f1c28635157d1333825a532cb
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Tue Jul 09 17:38:24 2019 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts.bypaymentmethod/rev/89402b5ac464106f1c28635157d1333825a532cb [^]

Related to issue 41181 : Payment method discounts should be removed from postRemovePayment hook

* When receipt customer is changed, payment method discounts should be removed
* Hook callbackExecutor must be called after removing discounts

---
M web/org.openbravo.retail.discounts.bypaymentmethod/js/paymentmethod-discount.js
---
(0113326)
hgbot   
2019-07-12 12:39   
Repository: erp/pmods/org.openbravo.retail.discounts.bypaymentmethod
Changeset: d1fec57314472886c8780928769928b2f0c1246a
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Fri Jul 12 16:08:34 2019 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts.bypaymentmethod/rev/d1fec57314472886c8780928769928b2f0c1246a [^]

Related to issue 41181 : Discounts should be recalculted if receipt is changed in payment tab

* If Payment tab is visible, receipt is changed(By changing customer or address) then payment method discounts should be recalculated

---
M src-db/database/sourcedata/AD_MESSAGE.xml
M web/org.openbravo.retail.discounts.bypaymentmethod/js/paymentmethod-discount.js
---
(0113401)
ranjith_qualiantech_com   
2019-07-16 12:27   
Discounts are not caluclated properly when changing receipt customer for more than 2 times
(0113403)
hgbot   
2019-07-16 13:23   
Repository: erp/pmods/org.openbravo.retail.discounts.bypaymentmethod
Changeset: 6e67e2cf75000c93edc103a9a6e3a46bec2ce5fd
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Tue Jul 16 16:53:08 2019 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts.bypaymentmethod/rev/6e67e2cf75000c93edc103a9a6e3a46bec2ce5fd [^]

Related to issue 41181 : Discount should be removed when receipt is loaded from local database

* When pointofsale window is refreshed or redirected from cashup, existing receipt will lost the events.
  So when order loaded from local database, payment method discounts should be removed

---
M web/org.openbravo.retail.discounts.bypaymentmethod/js/paymentmethod-discount.js
---
(0113404)
hgbot   
2019-07-16 13:24   
Repository: erp/pmods/org.openbravo.retail.giftcards
Changeset: 3a581138900a18e74e8d153e206659b5e80f67ca
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Tue Jul 16 16:54:33 2019 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.giftcards/rev/3a581138900a18e74e8d153e206659b5e80f67ca [^]

Related to issue 41181 : Hook OBPOS_CheckReceiptMandatoryFields args should be updated based on existing value

---
M web/org.openbravo.retail.giftcards/js/hooks/checkGiftCardMandatoryFields.js
---
(0113462)
hgbot   
2019-07-17 07:44   
Repository: tools/automation/pi-mobile
Changeset: 72adfc81d17982325ee1a7d326fde4faf03026bf
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Wed Jul 17 11:13:49 2019 +0530
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/72adfc81d17982325ee1a7d326fde4faf03026bf [^]

Verifies issue 41181 : Added automated test 'I41181_VerifyReceiptEventChange'

---
M 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/I41181_VerifyReceiptEventChange.java
---