Openbravo Issue Tracking System - Retail Modules
View Issue Details
0040960Retail ModulesGift cards and gift voucherspublic2019-05-28 14:402019-07-11 12:49
ucarrion 
ranjith_qualiantech_com 
highmajorhave not tried
closedfixed 
5
 
RR19Q4 
marvintm
No
0040960: Server error when trying to reimburse a credit note created in a different organization
A server error raises when trying to reimburse a credit note created in a different organization.

e.g.-
2019-05-28 14:29:20,161 [Import Entry - 1] ERROR org.openbravo.retail.posterminal.POSDataSynchronizationErrorHandler - An error happened when processing a record:
org.openbravo.base.exception.OBSecurityException: Entity 84B9188D078740A9A9BAA91E8B88DC67 - Cash - Gift Card - Reimburse (OBPOS_Paymentcashup_Events) with organization Yosemite Store references an entity Credit Note - PS - EUR - PS1000001 - 28-05-2019 - PS Customer - 93.75 - 0 - 20 through its property OBPOS_Paymentcashup_Events.relatedTransaction but this referenced entity belongs to an organization Posets Store which is not part of the natural tree of Yosemite Store
    at org.openbravo.dal.core.OBInterceptor.checkReferencedOrganizations(OBInterceptor.java:316)
1. Create a credit note in an store
2. Check in backend that the credit note has been created
3. Login a different store and go to cash management
4. Press reimburse
5. Select the credit note created previously
6. In the popup press 'Apply'
Add a setAdminMode(false)
No tags attached.
related to defect 0041052 closed Retail System Problem when incrementing a Credit Note in a different store 
causes defect 0041464 closed ranjith_qualiantech_com Payments are not correctly created during the reimburse process 
Issue History
2019-05-28 14:40ucarrionNew Issue
2019-05-28 14:40ucarrionAssigned To => Retail
2019-05-28 14:40ucarrionResolution time => 1560808800
2019-05-28 14:40ucarrionTriggers an Emergency Pack => No
2019-05-28 14:44guillermogilDescription Updatedbug_revision_view_page.php?rev_id=18827#r18827
2019-05-28 14:44guillermogilProposed Solution updated
2019-06-04 09:46ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2019-06-04 09:50ranjith_qualiantech_comStatusnew => scheduled
2019-06-07 11:50barbararoncatoRelationship addedrelated to 0041052
2019-07-04 13:22hgbotCheckin
2019-07-04 13:22hgbotNote Added: 0113181
2019-07-04 15:50hgbotCheckin
2019-07-04 15:50hgbotNote Added: 0113183
2019-07-04 17:44ranjith_qualiantech_comStatusscheduled => resolved
2019-07-04 17:44ranjith_qualiantech_comResolutionopen => fixed
2019-07-05 13:27marvintmReview Assigned To => marvintm
2019-07-05 13:27marvintmStatusresolved => closed
2019-07-05 13:27marvintmFixed in Version => RR19Q4
2019-07-11 12:49hgbotCheckin
2019-07-11 12:49hgbotNote Added: 0113272
2019-07-29 07:33ranjith_qualiantech_comRelationship addedcauses 0041464

Notes
(0113181)
hgbot   
2019-07-04 13:22   
Repository: erp/pmods/org.openbravo.retail.giftcards
Changeset: 06f9deb499c8510307437f376722263cc83b2ead
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Thu Jul 04 16:52:34 2019 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.giftcards/rev/06f9deb499c8510307437f376722263cc83b2ead [^]

Related to issue 40960 : Reimburse Payment should be created with payment method when reimbursing credit note

* When reimbursing credit note, Reimburse Payment should be created with the selected payment method in cash management

---
M src/org/openbravo/retail/giftcards/CloseGiftCard.java
M src/org/openbravo/retail/giftcards/hooks/ProcessCashMgmtHookGiftCard.java
M src/org/openbravo/retail/giftcards/process/GiftCardGLItemUtils.java
M web/org.openbravo.retail.giftcards/js/hooks/preSaveCashManagementsHook.js
---
(0113183)
hgbot   
2019-07-04 15:50   
Repository: tools/automation/pi-mobile
Changeset: 1c9753da4c387edf7498481450e7c6196041fa9c
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Thu Jul 04 19:19:52 2019 +0530
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/1c9753da4c387edf7498481450e7c6196041fa9c [^]

Verifies issue 40960 : Added Automated Test 'I40960_VerifyCreditNoteReimburseInCrossStore'

---
M src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/creditnote/CreditNoteAddRemoveTransaction.java
M src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/creditnote/CreditNoteReimburse.java
A src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/creditnote/I40960_VerifyCreditNoteReimburseInCrossStore.java
---
(0113272)
hgbot   
2019-07-11 12:49   
Repository: retail/backports/3.0RR19Q3/pi-mobile
Changeset: 60207e436967193947a1ae2fa20f8494acc4b962
Author: Miguel de Juana <miguel.dejuana <at> openbravo.com>
Date: Thu Jul 11 12:48:39 2019 +0200
URL: http://code.openbravo.com/retail/backports/3.0RR19Q3/pi-mobile/rev/60207e436967193947a1ae2fa20f8494acc4b962 [^]

Related to issue 40960 : Reimburse Payment should be created with payment method when reimbursing credit note

* When reimbursing credit note, Reimburse Payment should be created with the selected payment method in cash management

---
M src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/creditnote/CreditNoteAddRemoveTransaction.java
---