Openbravo Issue Tracking System - Retail Modules
View Issue Details
0038438Retail ModulesWeb POSpublic2018-04-24 15:362018-11-19 15:41
kchoperena 
rqueralta 
highmajoralways
closedfixed 
5
 
RR18Q3 
marvintm
No
0038438: [SERQ 3874]: Error when we add a credit note in store A for a customer that have created a credit note in store B
Error when trying to create a credit note in Store A for a customer that has been created in Store B and have a related credit note in that store.

It is needed to configure Credit Note in a POS Terminal of Vallblanca (IE: VBS-1)
1.https://livebuilds.openbravo.com/retail_modules_pgsql_pi/web/org.openbravo.retail.posterminal/?terminal=VBS-1#retail.pointofsale [^]
2. Click on “Customer Button”.
3. Click on “New Customer Button”
4. From Popup “New Customer”, Fill the data
5. Click on “Save Button”
6. Click on “Assign Customer”
7. insert a product
8. Return line -button-
9. click Total
10. select 'Credit Note' -payment methods.
11. click V + Done
12.https://livebuilds.openbravo.com/retail_modules_pgsql_pi/web/org.openbravo.retail.posterminal/?terminal=YS-11 [^]
13. Assign Customer created previously
14. insert a product
15. Return line -button-
16. click Total
17. select 'Credit Note' -payment methods.
18. click V + Done
ERROR: https://drive.google.com/open?id=1HU_qi2lttp94HO43WkjytllOfGNMoHGC [^]

cdb72c84 2018-04-24 09:39:19,602 [ajp-nio-8009-exec-9] ERROR org.openbravo.mobile.core.process.DataSynchronizationProcess - Entity 1067706 - 24-04-2018 - Bravo Open - 39.99 (FIN_Payment) with organization BUT STRASBOURG NORD references an entity AMBRE CORDIER - 24-04-2018 09:39:18 through its property obposAppCashup but this referenced entity belongs to an organization BUT BOURG-EN-BRESSE which is not part of the natural tree of BUT STRASBOURG NORD
org.openbravo.base.exception.OBSecurityException: Entity 1067706 - 24-04-2018 - Bravo Open - 39.99 (FIN_Payment) with organization BUT STRASBOURG NORD references an entity AMBRE CORDIER - 24-04-2018 09:39:18 through its property obposAppCashup but this referenced entity belongs to an organization BUT BOURG-EN-BRESSE which is not part of the natural tree of BUT STRASBOURG NORD
        at org.openbravo.dal.core.OBInterceptor.checkReferencedOrganizations(OBInterceptor.java:314)
        at org.openbravo.dal.core.OBInterceptor.onFlushDirty(OBInterceptor.java:189)
        at org.hibernate.event.def.DefaultFlushEntityEventListener.invokeInterceptor(DefaultFlushEntityEventListener.java:372)
        at org.hibernate.event.def.DefaultFlushEntityEventListener.handleInterception(DefaultFlushEntityEventListener.java:349)
        at org.hibernate.event.def.DefaultFlushEntityEventListener.scheduleUpdate(DefaultFlushEntityEventListener.java:287)
        at org.hibernate.event.def.DefaultFlushEntityEventListener.onFlushEntity(DefaultFlushEntityEventListener.java:155)
        at org.hibernate.event.def.AbstractFlushingEventListener.flushEntities(AbstractFlushingEventListener.java:219)
        at org.hibernate.event.def.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:99)
        at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:50)
        at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1216)
        at org.openbravo.dal.service.OBDal.flush(OBDal.java:260)
        at org.openbravo.retail.giftcards.process.GiftCardGLItemUtils.close(GiftCardGLItemUtils.java:110)
        at org.openbravo.retail.giftcards.process.GiftCardGLItemUtils.close(GiftCardGLItemUtils.java:50)
        at org.openbravo.retail.giftcards.GiftCardModel.createCreditNote(GiftCardModel.java:733)
        at org.openbravo.retail.giftcards.hooks.GiftCardHookUtils.updateGCPaymentTransaction(GiftCardHookUtils.java:54)
        at org.openbravo.retail.giftcards.hooks.OrderLoaderHookGiftCard.exec(OrderLoaderHookGiftCard.java:35)
        at org.openbravo.retail.giftcards.hooks.OrderLoaderHookGiftCard$Proxy$_$$_WeldClientProxy.exec(OrderLoaderHookGiftCard$Proxy$_$$_WeldClientProxy.java)
        at org.openbravo.retail.posterminal.OrderLoader.executeHooks(OrderLoader.java:587)
        at org.openbravo.retail.posterminal.OrderLoader.saveRecord(OrderLoader.java:531)
https://code.openbravo.com/erp/pmods-branches/org.openbravo.retail.giftcards-but-dev/rev/bcfc85808a6b [^]
https://code.openbravo.com/erp/pmods-branches/org.openbravo.retail.giftcards-but-dev/rev/dac451310b0f [^]
https://code.openbravo.com/erp/pmods-branches/org.openbravo.retail.giftcards-but-dev/rev/97bb23e6bfe0 [^]
No tags attached.
Issue History
2018-04-24 15:36kchoperenaNew Issue
2018-04-24 15:36kchoperenaAssigned To => Retail
2018-04-24 15:36kchoperenaTriggers an Emergency Pack => No
2018-04-25 09:09kchoperenaSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=17053#r17053
2018-04-26 10:25kchoperenaProposed Solution updated
2018-05-03 16:30kchoperenaSummary[SERQ 3875]: Error when we add a credit note in store A for a customer that have created a credit note in store B => [SERQ 3874]: Error when we add a credit note in store A for a customer that have created a credit note in store B
2018-05-03 16:30kchoperenaProposed Solution updated
2018-05-07 12:43xabiermerinoSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=17093#r17093
2018-05-07 13:01xabiermerinoDescription Updatedbug_revision_view_page.php?rev_id=17095#r17095
2018-05-07 13:01xabiermerinoSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=17096#r17096
2018-05-10 22:08rqueraltaAssigned ToRetail => rqueralta
2018-05-10 22:08rqueraltaStatusnew => scheduled
2018-05-14 21:50hgbotCheckin
2018-05-14 21:50hgbotNote Added: 0104509
2018-05-14 21:50hgbotStatusscheduled => resolved
2018-05-14 21:50hgbotResolutionopen => fixed
2018-05-14 21:50hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.giftcards/rev/033dee8e5bbf1a36193e71b67d3bd859a1db8aaf [^]
2018-05-18 15:01marvintmReview Assigned To => marvintm
2018-05-18 15:01marvintmStatusresolved => closed
2018-05-18 15:01marvintmFixed in Version => RR18Q3
2018-11-19 15:41hgbotCheckin
2018-11-19 15:41hgbotNote Added: 0107985

Notes
(0104509)
hgbot   
2018-05-14 21:50   
Repository: erp/pmods/org.openbravo.retail.giftcards
Changeset: 033dee8e5bbf1a36193e71b67d3bd859a1db8aaf
Author: Rafael Queralta Pozo <rqueralta <at> nauta.cu>
Date: Mon May 14 13:48:52 2018 -0400
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.giftcards/rev/033dee8e5bbf1a36193e71b67d3bd859a1db8aaf [^]

Fixed issue 38438: [SERQ 3874]: Error when we add a credit note in store A for a
customer that have created a credit note in store B

---
M src/org/openbravo/retail/giftcards/CloseGiftCard.java
M src/org/openbravo/retail/giftcards/process/GiftCardGLItemUtils.java
---
(0107985)
hgbot   
2018-11-19 15:41   
Repository: tools/automation/pi-mobile
Changeset: deee522cb3c460dca4fb36a5695d6d6ca285927f
Author: Alejandro <alekosmp86 <at> gmail.com>
Date: Thu Nov 15 09:24:38 2018 -0500
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/deee522cb3c460dca4fb36a5695d6d6ca285927f [^]

Related to issue 38438: added automated test

---
M src-test/org/openbravo/test/mobile/core/utils/AllowedErrorsHelper.java
A src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/creditnote/I38438_VerifyNoErrorWhenAddCreditNoteFromCustomerOfAnotherStore.java
---