Openbravo Issue Tracking System - POS2 | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0051004 | POS2 | POS | public | 2022-11-24 17:00 | 2023-07-12 05:55 |
Reporter | kchoperena | ||||
Assigned To | sreehari | ||||
Priority | high | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | OS | 5 | OS Version | ||
Product Version | pi | ||||
Target Version | Fixed in Version | ||||
Merge Request Status | approved | ||||
Review Assigned To | |||||
OBNetwork customer | OBPS | ||||
Support ticket | |||||
Regression level | |||||
Regression date | |||||
Regression introduced in release | |||||
Regression introduced by commit | |||||
Triggers an Emergency Pack | No | ||||
Summary | 0051004: Error in a deferred payment when the marketing survey module is installed | ||||
Description | Error in a deferred payment when the marketing survey module is installed and has configured several surveys. For this case, we have configured 4 different surveys: - Code Postal (mandatory) / Type of survey: text - Comment nous avez-vous connu? (mandatory) / Type of survey: text - Avez-vous trouvé tout ce que vous cherchiez? (mandatory) / Type of survey: List of options - Quel produit avez-vous manqué? (optional) / Type of survey: text | ||||
Steps To Reproduce | - Login into the WebPOS - Create a order with a customer and delivery mode any other than Pick and Carry - Pay the partial amount - Check out - Fill up a Marketing Survey. - Go back to the back office to check the payment done - Go back to the POS - Retrieve the order - Pay the remaining balance. - Marketing Survey pop up appears ( Why twice for the same order ?) - Fill out the form. - Check out. RESULTS: - Go to the EWI window. The following error appears: org.postgresql.util.PSQLException: ERROR: duplicate key value violates unique constraint "obms_marksurveyres_un" Detail: Key (obms_marketing_survey_id, c_order_id)=(67B6178996E044F6B8ADB5C648D6FEBD, A870C9D994859727860D92A33B2F1FF5) already exists. at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2676) at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2366) at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:560) at org.postgresql.jdbc.PgStatement.internalExecuteBatch(PgStatement.java:893) at org.postgresql.jdbc.PgStatement.executeBatch(PgStatement.java:916) at org.postgresql.jdbc.PgPreparedStatement.executeBatch(PgPreparedStatement.java:1684) at jdk.internal.reflect.GeneratedMethodAccessor373.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.apache.tomcat.jdbc.pool.StatementFacade$StatementProxy.invoke(StatementFacade.java:114) at com.sun.proxy.$Proxy80.executeBatch(Unknown Source) at org.hibernate.engine.jdbc.batch.internal.BatchingBatch.performExecution(BatchingBatch.java:121) at org.hibernate.engine.jdbc.batch.internal.BatchingBatch.doExecuteBatch(BatchingBatch.java:106) at org.hibernate.engine.jdbc.batch.internal.AbstractBatchImpl.execute(AbstractBatchImpl.java:148) at org.hibernate.engine.jdbc.internal.JdbcCoordinatorImpl.executeBatch(JdbcCoordinatorImpl.java:198) at org.hibernate.engine.jdbc.internal.StatementPreparerImpl.prepareStatement(StatementPreparerImpl.java:80) at org.hibernate.engine.jdbc.batch.internal.AbstractBatchImpl.buildBatchStatement(AbstractBatchImpl.java:137) at org.hibernate.engine.jdbc.batch.internal.AbstractBatchImpl.getBatchStatement(AbstractBatchImpl.java:126) at org.hibernate.engine.jdbc.batch.internal.BatchingBatch.getBatchStatement(BatchingBatch.java:67) at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:3356) at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:3902) at org.hibernate.action.internal.EntityInsertAction.execute(EntityInsertAction.java:107) at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:604) at org.hibernate.engine.spi.ActionQueue.lambda$executeActions$1(ActionQueue.java:478) at java.base/java.util.LinkedHashMap.forEach(LinkedHashMap.java:684) at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:475) at org.hibernate.event.internal.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:344) at org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:40) at org.hibernate.event.service.internal.EventListenerGroupImpl.fireEventOnEachListener(EventListenerGroupImpl.java:107) at org.hibernate.internal.SessionImpl.doFlush(SessionImpl.java:1402) at org.hibernate.internal.SessionImpl.flush(SessionImpl.java:1389) at org.openbravo.dal.service.OBDal.flush(OBDal.java:265) at org.openbravo.retail.discounts.coupons.otf.OrderLoaderHookOTFCoupons.exec(OrderLoaderHookOTFCoupons.java:63) at org.openbravo.retail.discounts.coupons.otf.OrderLoaderHookOTFCoupons$Proxy$_$$_WeldClientProxy.exec(Unknown Source) at org.openbravo.retail.posterminal.OrderLoader.executeHooks(OrderLoader.java:816) at org.openbravo.retail.posterminal.OrderLoader.saveRecord(OrderLoader.java:606) at org.openbravo.mobile.core.process.DataSynchronizationProcess.saveRecord(DataSynchronizationProcess.java:204) at org.openbravo.mobile.core.process.DataSynchronizationProcess.exec(DataSynchronizationProcess.java:156) at org.openbravo.mobile.core.process.DataSynchronizationProcess.exec(DataSynchronizationProcess.java:88) In the sales orders payment plant, the payment is still not processed The webpos still shows the order as "Partially Paid" In the Marketing Survey Result Window only the initial input is registered. | ||||
Proposed Solution | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2022-11-24 17:00 | kchoperena | New Issue | |||
2022-11-24 17:00 | kchoperena | Assigned To | => Retail | ||
2022-11-24 17:00 | kchoperena | OBNetwork customer | => OBPS | ||
2022-11-24 17:00 | kchoperena | Triggers an Emergency Pack | => No | ||
2023-03-31 09:13 | guillermogil | Assigned To | Retail => sreehari | ||
2023-04-08 17:34 | shrewdjay | Note Added: 0148337 | |||
2023-04-10 09:27 | sreehari | Status | new => scheduled | ||
2023-04-13 07:17 | marvintm | Note Deleted: 0148337 | |||
2023-04-15 11:08 | hgbot | Merge Request Status | => open | ||
2023-04-15 11:08 | hgbot | Note Added: 0148451 | |||
2023-07-11 09:23 | hgbot | Merge Request Status | open => approved | ||
2023-07-11 09:23 | hgbot | Resolution | open => fixed | ||
2023-07-11 09:23 | hgbot | Status | scheduled => closed | ||
2023-07-11 09:23 | hgbot | Note Added: 0152303 | |||
2023-07-11 09:23 | hgbot | Note Added: 0152304 | |||
2023-07-11 14:56 | sreehari | Note Added: 0152340 | |||
2023-07-11 14:56 | sreehari | Status | closed => new | ||
2023-07-11 14:56 | sreehari | Resolution | fixed => open | ||
2023-07-11 14:57 | sreehari | Status | new => scheduled | ||
2023-07-11 15:30 | hgbot | Note Added: 0152342 | |||
2023-07-12 05:55 | hgbot | Resolution | open => fixed | ||
2023-07-12 05:55 | hgbot | Status | scheduled => closed | ||
2023-07-12 05:55 | hgbot | Note Added: 0152366 | |||
2023-07-12 05:55 | hgbot | Note Added: 0152367 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|