Openbravo Issue Tracking System - Retail Modules
View Issue Details
0040793Retail ModulesWeb POSpublic2019-05-07 10:272019-05-07 10:27
dmiguelez 
Retail 
highmajoralways
newopen 
5
 
 
No
0040793: Not possible to properly work with error in import entries when using different modules
In an scenario where there are two modules:
  - Loyalty Programs (Core Dependent)
  - Retail Loyalty (POS Dependent)

To be able to create an offline subscription, it is necessary to create the logic in the Retail module for an Object of the Loyalty module.

If there are any errors while importing, and import entry should be created. In order to do so, it is necessary to create a record in the 'Types of data to be synchronized in Web POS' Reference List.

This list should reference the entity that is going to be imported, however, the list entry should start with the module prefix. In this case it is impossible to fulfill both requirements.
2019-05-07 10:17:20,293 [http-bio-8080-exec-8] ERROR org.openbravo.mobile.core.process.SecuredJSONProcess - typeofdata: Property OBPOS_Errors.typeofdata, value (OBLP_Subscription) is not allowed, it should be one of the following values: [Order, OBPOS_Invoice, OBRLP_Subscription, GCNV_RevertGiftCardAmount, GCNV_GiftCardCertificate, BusinessPartner, FIN_Finacc_Transaction, OBPOS_CancelLayaway, BusinessPartnerLocation, GCNV_CancelGiftCardTransaction, GCNV_ConsumeGiftCardLines, OBPOS_IsOrderCancelled, GCNV_CancelGiftcard, OBPOS_App_Cashup] but it is value OBLP_Subscription
org.openbravo.base.validation.ValidationException: typeofdata: Property OBPOS_Errors.typeofdata, value (OBLP_Subscription) is not allowed, it should be one of the following values: [Order, OBPOS_Invoice, OBRLP_Subscription, GCNV_RevertGiftCardAmount, GCNV_GiftCardCertificate, BusinessPartner, FIN_Finacc_Transaction, OBPOS_CancelLayaway, BusinessPartnerLocation, GCNV_CancelGiftCardTransaction, GCNV_ConsumeGiftCardLines, OBPOS_IsOrderCancelled, GCNV_CancelGiftcard, OBPOS_App_Cashup] but it is value OBLP_Subscription
    at org.openbravo.base.model.domaintype.BaseEnumerateDomainType.checkIsValidValue(BaseEnumerateDomainType.java:64) ~[BaseEnumerateDomainType.class:?]
    at org.openbravo.base.model.Property.checkIsValidValue(Property.java:821) ~[Property.class:?]
    at org.openbravo.base.structure.BaseOBObject.set(BaseOBObject.java:271) ~[BaseOBObject.class:?]
    at org.openbravo.retail.posterminal.OBPOSErrors.setTypeofdata(OBPOSErrors.java:185) ~[OBPOSErrors.class:?]
    at org.openbravo.retail.posterminal.POSDataSynchronizationErrorHandler.handleError(POSDataSynchronizationErrorHandler.java:114) ~[POSDataSynchronizationErrorHandler.class:?]
    at org.openbravo.retail.posterminal.POSDataSynchronizationErrorHandler$Proxy$_$$_WeldClientProxy.handleError(POSDataSynchronizationErrorHandler$Proxy$_$$_WeldClientProxy.java) ~[POSDataSynchronizationErrorHandler.class:?]
    at org.openbravo.mobile.core.process.DataSynchronizationProcess.handleError(DataSynchronizationProcess.java:386) ~[DataSynchronizationProcess.class:?]
    at org.openbravo.mobile.core.process.DataSynchronizationProcess.saveRecord(DataSynchronizationProcess.java:251) ~[DataSynchronizationProcess.class:?]
    at org.openbravo.mobile.core.process.DataSynchronizationProcess.exec(DataSynchronizationProcess.java:155) ~[DataSynchronizationProcess.class:?]
    at org.openbravo.mobile.core.process.DataSynchronizationProcess.exec(DataSynchronizationProcess.java:87) ~[DataSynchronizationProcess.class:?]
    at org.openbravo.mobile.core.process.JSONProcessSimple.exec(JSONProcessSimple.java:48) ~[JSONProcessSimple.class:?]
    at org.openbravo.mobile.core.process.SecuredJSONProcess.secureExec(SecuredJSONProcess.java:62) [SecuredJSONProcess.class:?]
    at org.openbravo.mobile.core.process.MobileServiceProcessor.execProcess(MobileServiceProcessor.java:131) [MobileServiceProcessor.class:?]
    at org.openbravo.mobile.core.process.MobileServiceProcessor.execServiceName(MobileServiceProcessor.java:105) [MobileServiceProcessor.class:?]
    at org.openbravo.mobile.core.process.MobileService.doGetOrPost(MobileService.java:194) [MobileService.class:?]
    at org.openbravo.mobile.core.process.MobileService.doPost(MobileService.java:73) [MobileService.class:?]
No tags attached.
Issue History
2019-05-07 10:27dmiguelezNew Issue
2019-05-07 10:27dmiguelezAssigned To => Retail
2019-05-07 10:27dmiguelezTriggers an Emergency Pack => No

There are no notes attached to this issue.