You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Vikrant Rathore (JIRA)" <ji...@apache.org> on 2007/03/20 06:08:32 UTC
[jira] Created: (OFBIZ-828) problem in the pos module related to
item discount and sales discount
problem in the pos module related to item discount and sales discount
---------------------------------------------------------------------
Key: OFBIZ-828
URL: https://issues.apache.org/jira/browse/OFBIZ-828
Project: OFBiz (The Open for Business Project)
Issue Type: Bug
Components: pos
Affects Versions: SVN trunk
Environment: Postgresql 8.1, ubuntu Linux, java 1.5
Reporter: Vikrant Rathore
Hi Everyone,
There is a problem in financial module which in turns create a problem for POS. I have been trying POS with the demo data and found this error.
1. I create an order on POS and then try to choose cash to pay. When I key in the cash amount little higher then the receipt amount. Instead of showing me a return the system return with the error. "Problem with the order change see logs for details". I was looking at the logs and found that the GL account for credit payment is not set. But its not required.
2. If I remove the Financial module the POS works fine. Then the sale discount and item discount do not work.
THanks
with best regards,
Vikrant
Following is the log:
---- exception report ----------------------------------------------------------
Rollback Only was set when trying to commit transaction here; throwing rollbackOnly cause exception
Exception: javax.transaction.RollbackException
Message: null
---- stack trace ---------------------------------------------------------------
javax.transaction.RollbackException
org.apache.geronimo.transaction.context.GeronimoTransactionManager.commit(GeronimoTransactionManager.java:82)
org.ofbiz.entity.transaction.TransactionUtil.commit(TransactionUtil.java:179)
org.ofbiz.entity.transaction.TransactionUtil.commit(TransactionUtil.java:165)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:426)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:211)
org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:136)
org.ofbiz.order.order.OrderChangeHelper.createReceivedPayments(OrderChangeHelper.java:265)
org.ofbiz.order.order.OrderChangeHelper.completeOrder(OrderChangeHelper.java:119)
org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:1046)
org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:814)
org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:625)
org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
java.lang.reflect.Method.invoke(Unknown Source)
org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.java:105)
org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
java.lang.Thread.run(Unknown Source)
--------------------------------------------------------------------------------
2007-03-20 12:08:19,125 (Thread-27) [ ServiceDispatcher.java:429:ERROR]
---- exception report ----------------------------------------------------------
Could not commit transaction for service [createPaymentFromPreference] call
Exception: org.ofbiz.entity.transaction.GenericTransactionException
Message: Roll back error, could not commit transaction, was rolled back instead because of: Service Error [postPaymentToGl]: No credit GL accounts found for payment posting
---- stack trace ---------------------------------------------------------------
org.ofbiz.entity.transaction.GenericTransactionException: Roll back error, could not commit transaction, was rolled back instead because of: Service Error [postPaymentToGl]: No credit GL accounts found for payment posting
org.ofbiz.entity.transaction.TransactionUtil.commit(TransactionUtil.java:201)
org.ofbiz.entity.transaction.TransactionUtil.commit(TransactionUtil.java:165)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:426)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:211)
org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:136)
org.ofbiz.order.order.OrderChangeHelper.createReceivedPayments(OrderChangeHelper.java:265)
org.ofbiz.order.order.OrderChangeHelper.completeOrder(OrderChangeHelper.java:119)
org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:1046)
org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:814)
org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:625)
org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
java.lang.reflect.Method.invoke(Unknown Source)
org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.java:105)
org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
java.lang.Thread.run(Unknown Source)
--------------------------------------------------------------------------------
2007-03-20 12:08:19,125 (Thread-27) [ OrderChangeHelper.java:126:ERROR]
---- exception report ----------------------------------------------------------
Exception: org.ofbiz.service.GenericServiceException
Message: Could not commit transaction for service [createPaymentFromPreference] call: Roll back error, could not commit transaction, was rolled back instead because of: Service Error [postPaymentToGl]: No credit GL accounts found for payment posting
---- stack trace ---------------------------------------------------------------
org.ofbiz.service.GenericServiceException: Could not commit transaction for service [createPaymentFromPreference] call: Roll back error, could not commit transaction, was rolled back instead because of: Service Error [postPaymentToGl]: No credit GL accounts found for payment posting
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:433)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:211)
org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:136)
org.ofbiz.order.order.OrderChangeHelper.createReceivedPayments(OrderChangeHelper.java:265)
org.ofbiz.order.order.OrderChangeHelper.completeOrder(OrderChangeHelper.java:119)
org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:1046)
org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:814)
org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:625)
org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
java.lang.reflect.Method.invoke(Unknown Source)
org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.java:105)
org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
java.lang.Thread.run(Unknown Source)
--------------------------------------------------------------------------------
2007-03-20 12:08:19,125 (Thread-27) [ CheckOutHelper.java:1047:INFO ] Complete Order Result - false
2007-03-20 12:08:19,125 (Thread-27) [ PosTransaction.java:627:ERROR]
---- exception report ----------------------------------------------------------
Exception: org.ofbiz.base.util.GeneralException
Message: Problem with order change; see error logs
---- stack trace ---------------------------------------------------------------
org.ofbiz.base.util.GeneralException: Problem with order change; see error logs
org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:1049)
org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:814)
org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:625)
org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
java.lang.reflect.Method.invoke(Unknown Source)
org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.java:105)
org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
java.lang.Thread.run(Unknown Source)
--------------------------------------------------------------------------------
2007-03-20 12:08:19,125 (Thread-27) [ PaymentEvents.java:307:ERROR]
---- exception report ----------------------------------------------------------
Problem with order change; see error logs
Exception: org.ofbiz.base.util.GeneralException
Message: Problem with order change; see error logs
---- stack trace ---------------------------------------------------------------
org.ofbiz.base.util.GeneralException: Problem with order change; see error logs
org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:1049)
org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:814)
org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:625)
org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
java.lang.reflect.Method.invoke(Unknown Source)
org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.java:105)
org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
java.lang.Thread.run(Unknown Source)
--------------------------------------------------------------------------------
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (OFBIZ-828) problem in the pos module related to
item discount and sales discount
Posted by "Jacques Le Roux (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OFBIZ-828?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12483044 ]
Jacques Le Roux commented on OFBIZ-828:
---------------------------------------
Thanks Scott,
This wil surely help. BTW, no paymentTypeId string used in any files in POS component.
The POS creates 2 payments related to an invoice in such case, for instance :
. 1 positive with exact price amount (Payments Applied: US$25.99, open: US$4.01)
. 1 negative with remaining amount (Payments Applied: -US$4.01, open: US$0.00 )
> problem in the pos module related to item discount and sales discount
> ---------------------------------------------------------------------
>
> Key: OFBIZ-828
> URL: https://issues.apache.org/jira/browse/OFBIZ-828
> Project: OFBiz (The Open for Business Project)
> Issue Type: Bug
> Components: pos
> Affects Versions: SVN trunk
> Environment: Postgresql 8.1, ubuntu Linux, java 1.5
> Reporter: Vikrant Rathore
> Assigned To: Jacques Le Roux
>
> Hi Everyone,
> There is a problem in financial module which in turns create a problem for POS. I have been trying POS with the demo data and found this error.
> 1. I create an order on POS and then try to choose cash to pay. When I key in the cash amount little higher then the receipt amount. Instead of showing me a return the system return with the error. "Problem with the order change see logs for details". I was looking at the logs and found that the GL account for credit payment is not set. But its not required.
> 2. If I remove the Financial module the POS works fine. Then the sale discount and item discount do not work.
> THanks
> with best regards,
> Vikrant
> Following is the log:
> ---- exception report ----------------------------------------------------------
> Rollback Only was set when trying to commit transaction here; throwing rollbackOnly cause exception
> Exception: javax.transaction.RollbackException
> Message: null
> ---- stack trace ---------------------------------------------------------------
> javax.transaction.RollbackException
> org.apache.geronimo.transaction.context.GeronimoTransactionManager.commit(GeronimoTransactionManager.java:82)
> org.ofbiz.entity.transaction.TransactionUtil.commit(TransactionUtil.java:179)
> org.ofbiz.entity.transaction.TransactionUtil.commit(TransactionUtil.java:165)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:426)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:211)
> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:136)
> org.ofbiz.order.order.OrderChangeHelper.createReceivedPayments(OrderChangeHelper.java:265)
> org.ofbiz.order.order.OrderChangeHelper.completeOrder(OrderChangeHelper.java:119)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:1046)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:814)
> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:625)
> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> java.lang.reflect.Method.invoke(Unknown Source)
> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.java:105)
> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> java.lang.Thread.run(Unknown Source)
> --------------------------------------------------------------------------------
> 2007-03-20 12:08:19,125 (Thread-27) [ ServiceDispatcher.java:429:ERROR]
> ---- exception report ----------------------------------------------------------
> Could not commit transaction for service [createPaymentFromPreference] call
> Exception: org.ofbiz.entity.transaction.GenericTransactionException
> Message: Roll back error, could not commit transaction, was rolled back instead because of: Service Error [postPaymentToGl]: No credit GL accounts found for payment posting
> ---- stack trace ---------------------------------------------------------------
> org.ofbiz.entity.transaction.GenericTransactionException: Roll back error, could not commit transaction, was rolled back instead because of: Service Error [postPaymentToGl]: No credit GL accounts found for payment posting
> org.ofbiz.entity.transaction.TransactionUtil.commit(TransactionUtil.java:201)
> org.ofbiz.entity.transaction.TransactionUtil.commit(TransactionUtil.java:165)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:426)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:211)
> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:136)
> org.ofbiz.order.order.OrderChangeHelper.createReceivedPayments(OrderChangeHelper.java:265)
> org.ofbiz.order.order.OrderChangeHelper.completeOrder(OrderChangeHelper.java:119)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:1046)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:814)
> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:625)
> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> java.lang.reflect.Method.invoke(Unknown Source)
> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.java:105)
> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> java.lang.Thread.run(Unknown Source)
> --------------------------------------------------------------------------------
> 2007-03-20 12:08:19,125 (Thread-27) [ OrderChangeHelper.java:126:ERROR]
> ---- exception report ----------------------------------------------------------
> Exception: org.ofbiz.service.GenericServiceException
> Message: Could not commit transaction for service [createPaymentFromPreference] call: Roll back error, could not commit transaction, was rolled back instead because of: Service Error [postPaymentToGl]: No credit GL accounts found for payment posting
> ---- stack trace ---------------------------------------------------------------
> org.ofbiz.service.GenericServiceException: Could not commit transaction for service [createPaymentFromPreference] call: Roll back error, could not commit transaction, was rolled back instead because of: Service Error [postPaymentToGl]: No credit GL accounts found for payment posting
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:433)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:211)
> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:136)
> org.ofbiz.order.order.OrderChangeHelper.createReceivedPayments(OrderChangeHelper.java:265)
> org.ofbiz.order.order.OrderChangeHelper.completeOrder(OrderChangeHelper.java:119)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:1046)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:814)
> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:625)
> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> java.lang.reflect.Method.invoke(Unknown Source)
> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.java:105)
> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> java.lang.Thread.run(Unknown Source)
> --------------------------------------------------------------------------------
> 2007-03-20 12:08:19,125 (Thread-27) [ CheckOutHelper.java:1047:INFO ] Complete Order Result - false
> 2007-03-20 12:08:19,125 (Thread-27) [ PosTransaction.java:627:ERROR]
> ---- exception report ----------------------------------------------------------
> Exception: org.ofbiz.base.util.GeneralException
> Message: Problem with order change; see error logs
> ---- stack trace ---------------------------------------------------------------
> org.ofbiz.base.util.GeneralException: Problem with order change; see error logs
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:1049)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:814)
> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:625)
> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> java.lang.reflect.Method.invoke(Unknown Source)
> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.java:105)
> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> java.lang.Thread.run(Unknown Source)
> --------------------------------------------------------------------------------
> 2007-03-20 12:08:19,125 (Thread-27) [ PaymentEvents.java:307:ERROR]
> ---- exception report ----------------------------------------------------------
> Problem with order change; see error logs
> Exception: org.ofbiz.base.util.GeneralException
> Message: Problem with order change; see error logs
> ---- stack trace ---------------------------------------------------------------
> org.ofbiz.base.util.GeneralException: Problem with order change; see error logs
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:1049)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:814)
> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:625)
> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> java.lang.reflect.Method.invoke(Unknown Source)
> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.java:105)
> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> java.lang.Thread.run(Unknown Source)
> --------------------------------------------------------------------------------
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (OFBIZ-828) problem in the pos module related to
item discount and sales discount
Posted by "Jacques Le Roux (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OFBIZ-828?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12482330 ]
Jacques Le Roux commented on OFBIZ-828:
---------------------------------------
Hi Vikrant,
Interesting, I will have a look at it soon...
> problem in the pos module related to item discount and sales discount
> ---------------------------------------------------------------------
>
> Key: OFBIZ-828
> URL: https://issues.apache.org/jira/browse/OFBIZ-828
> Project: OFBiz (The Open for Business Project)
> Issue Type: Bug
> Components: pos
> Affects Versions: SVN trunk
> Environment: Postgresql 8.1, ubuntu Linux, java 1.5
> Reporter: Vikrant Rathore
> Assigned To: Jacques Le Roux
>
> Hi Everyone,
> There is a problem in financial module which in turns create a problem for POS. I have been trying POS with the demo data and found this error.
> 1. I create an order on POS and then try to choose cash to pay. When I key in the cash amount little higher then the receipt amount. Instead of showing me a return the system return with the error. "Problem with the order change see logs for details". I was looking at the logs and found that the GL account for credit payment is not set. But its not required.
> 2. If I remove the Financial module the POS works fine. Then the sale discount and item discount do not work.
> THanks
> with best regards,
> Vikrant
> Following is the log:
> ---- exception report ----------------------------------------------------------
> Rollback Only was set when trying to commit transaction here; throwing rollbackOnly cause exception
> Exception: javax.transaction.RollbackException
> Message: null
> ---- stack trace ---------------------------------------------------------------
> javax.transaction.RollbackException
> org.apache.geronimo.transaction.context.GeronimoTransactionManager.commit(GeronimoTransactionManager.java:82)
> org.ofbiz.entity.transaction.TransactionUtil.commit(TransactionUtil.java:179)
> org.ofbiz.entity.transaction.TransactionUtil.commit(TransactionUtil.java:165)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:426)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:211)
> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:136)
> org.ofbiz.order.order.OrderChangeHelper.createReceivedPayments(OrderChangeHelper.java:265)
> org.ofbiz.order.order.OrderChangeHelper.completeOrder(OrderChangeHelper.java:119)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:1046)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:814)
> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:625)
> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> java.lang.reflect.Method.invoke(Unknown Source)
> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.java:105)
> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> java.lang.Thread.run(Unknown Source)
> --------------------------------------------------------------------------------
> 2007-03-20 12:08:19,125 (Thread-27) [ ServiceDispatcher.java:429:ERROR]
> ---- exception report ----------------------------------------------------------
> Could not commit transaction for service [createPaymentFromPreference] call
> Exception: org.ofbiz.entity.transaction.GenericTransactionException
> Message: Roll back error, could not commit transaction, was rolled back instead because of: Service Error [postPaymentToGl]: No credit GL accounts found for payment posting
> ---- stack trace ---------------------------------------------------------------
> org.ofbiz.entity.transaction.GenericTransactionException: Roll back error, could not commit transaction, was rolled back instead because of: Service Error [postPaymentToGl]: No credit GL accounts found for payment posting
> org.ofbiz.entity.transaction.TransactionUtil.commit(TransactionUtil.java:201)
> org.ofbiz.entity.transaction.TransactionUtil.commit(TransactionUtil.java:165)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:426)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:211)
> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:136)
> org.ofbiz.order.order.OrderChangeHelper.createReceivedPayments(OrderChangeHelper.java:265)
> org.ofbiz.order.order.OrderChangeHelper.completeOrder(OrderChangeHelper.java:119)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:1046)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:814)
> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:625)
> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> java.lang.reflect.Method.invoke(Unknown Source)
> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.java:105)
> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> java.lang.Thread.run(Unknown Source)
> --------------------------------------------------------------------------------
> 2007-03-20 12:08:19,125 (Thread-27) [ OrderChangeHelper.java:126:ERROR]
> ---- exception report ----------------------------------------------------------
> Exception: org.ofbiz.service.GenericServiceException
> Message: Could not commit transaction for service [createPaymentFromPreference] call: Roll back error, could not commit transaction, was rolled back instead because of: Service Error [postPaymentToGl]: No credit GL accounts found for payment posting
> ---- stack trace ---------------------------------------------------------------
> org.ofbiz.service.GenericServiceException: Could not commit transaction for service [createPaymentFromPreference] call: Roll back error, could not commit transaction, was rolled back instead because of: Service Error [postPaymentToGl]: No credit GL accounts found for payment posting
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:433)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:211)
> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:136)
> org.ofbiz.order.order.OrderChangeHelper.createReceivedPayments(OrderChangeHelper.java:265)
> org.ofbiz.order.order.OrderChangeHelper.completeOrder(OrderChangeHelper.java:119)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:1046)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:814)
> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:625)
> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> java.lang.reflect.Method.invoke(Unknown Source)
> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.java:105)
> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> java.lang.Thread.run(Unknown Source)
> --------------------------------------------------------------------------------
> 2007-03-20 12:08:19,125 (Thread-27) [ CheckOutHelper.java:1047:INFO ] Complete Order Result - false
> 2007-03-20 12:08:19,125 (Thread-27) [ PosTransaction.java:627:ERROR]
> ---- exception report ----------------------------------------------------------
> Exception: org.ofbiz.base.util.GeneralException
> Message: Problem with order change; see error logs
> ---- stack trace ---------------------------------------------------------------
> org.ofbiz.base.util.GeneralException: Problem with order change; see error logs
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:1049)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:814)
> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:625)
> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> java.lang.reflect.Method.invoke(Unknown Source)
> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.java:105)
> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> java.lang.Thread.run(Unknown Source)
> --------------------------------------------------------------------------------
> 2007-03-20 12:08:19,125 (Thread-27) [ PaymentEvents.java:307:ERROR]
> ---- exception report ----------------------------------------------------------
> Problem with order change; see error logs
> Exception: org.ofbiz.base.util.GeneralException
> Message: Problem with order change; see error logs
> ---- stack trace ---------------------------------------------------------------
> org.ofbiz.base.util.GeneralException: Problem with order change; see error logs
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:1049)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:814)
> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:625)
> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> java.lang.reflect.Method.invoke(Unknown Source)
> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.java:105)
> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> java.lang.Thread.run(Unknown Source)
> --------------------------------------------------------------------------------
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (OFBIZ-828) problem in the pos module related to
item discount and sales discount
Posted by "Jacques Le Roux (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OFBIZ-828?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12483046 ]
Jacques Le Roux commented on OFBIZ-828:
---------------------------------------
Thanks for the tip Si, I will try...
> problem in the pos module related to item discount and sales discount
> ---------------------------------------------------------------------
>
> Key: OFBIZ-828
> URL: https://issues.apache.org/jira/browse/OFBIZ-828
> Project: OFBiz (The Open for Business Project)
> Issue Type: Bug
> Components: pos
> Affects Versions: SVN trunk
> Environment: Postgresql 8.1, ubuntu Linux, java 1.5
> Reporter: Vikrant Rathore
> Assigned To: Jacques Le Roux
>
> Hi Everyone,
> There is a problem in financial module which in turns create a problem for POS. I have been trying POS with the demo data and found this error.
> 1. I create an order on POS and then try to choose cash to pay. When I key in the cash amount little higher then the receipt amount. Instead of showing me a return the system return with the error. "Problem with the order change see logs for details". I was looking at the logs and found that the GL account for credit payment is not set. But its not required.
> 2. If I remove the Financial module the POS works fine. Then the sale discount and item discount do not work.
> THanks
> with best regards,
> Vikrant
> Following is the log:
> ---- exception report ----------------------------------------------------------
> Rollback Only was set when trying to commit transaction here; throwing rollbackOnly cause exception
> Exception: javax.transaction.RollbackException
> Message: null
> ---- stack trace ---------------------------------------------------------------
> javax.transaction.RollbackException
> org.apache.geronimo.transaction.context.GeronimoTransactionManager.commit(GeronimoTransactionManager.java:82)
> org.ofbiz.entity.transaction.TransactionUtil.commit(TransactionUtil.java:179)
> org.ofbiz.entity.transaction.TransactionUtil.commit(TransactionUtil.java:165)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:426)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:211)
> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:136)
> org.ofbiz.order.order.OrderChangeHelper.createReceivedPayments(OrderChangeHelper.java:265)
> org.ofbiz.order.order.OrderChangeHelper.completeOrder(OrderChangeHelper.java:119)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:1046)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:814)
> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:625)
> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> java.lang.reflect.Method.invoke(Unknown Source)
> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.java:105)
> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> java.lang.Thread.run(Unknown Source)
> --------------------------------------------------------------------------------
> 2007-03-20 12:08:19,125 (Thread-27) [ ServiceDispatcher.java:429:ERROR]
> ---- exception report ----------------------------------------------------------
> Could not commit transaction for service [createPaymentFromPreference] call
> Exception: org.ofbiz.entity.transaction.GenericTransactionException
> Message: Roll back error, could not commit transaction, was rolled back instead because of: Service Error [postPaymentToGl]: No credit GL accounts found for payment posting
> ---- stack trace ---------------------------------------------------------------
> org.ofbiz.entity.transaction.GenericTransactionException: Roll back error, could not commit transaction, was rolled back instead because of: Service Error [postPaymentToGl]: No credit GL accounts found for payment posting
> org.ofbiz.entity.transaction.TransactionUtil.commit(TransactionUtil.java:201)
> org.ofbiz.entity.transaction.TransactionUtil.commit(TransactionUtil.java:165)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:426)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:211)
> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:136)
> org.ofbiz.order.order.OrderChangeHelper.createReceivedPayments(OrderChangeHelper.java:265)
> org.ofbiz.order.order.OrderChangeHelper.completeOrder(OrderChangeHelper.java:119)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:1046)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:814)
> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:625)
> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> java.lang.reflect.Method.invoke(Unknown Source)
> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.java:105)
> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> java.lang.Thread.run(Unknown Source)
> --------------------------------------------------------------------------------
> 2007-03-20 12:08:19,125 (Thread-27) [ OrderChangeHelper.java:126:ERROR]
> ---- exception report ----------------------------------------------------------
> Exception: org.ofbiz.service.GenericServiceException
> Message: Could not commit transaction for service [createPaymentFromPreference] call: Roll back error, could not commit transaction, was rolled back instead because of: Service Error [postPaymentToGl]: No credit GL accounts found for payment posting
> ---- stack trace ---------------------------------------------------------------
> org.ofbiz.service.GenericServiceException: Could not commit transaction for service [createPaymentFromPreference] call: Roll back error, could not commit transaction, was rolled back instead because of: Service Error [postPaymentToGl]: No credit GL accounts found for payment posting
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:433)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:211)
> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:136)
> org.ofbiz.order.order.OrderChangeHelper.createReceivedPayments(OrderChangeHelper.java:265)
> org.ofbiz.order.order.OrderChangeHelper.completeOrder(OrderChangeHelper.java:119)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:1046)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:814)
> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:625)
> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> java.lang.reflect.Method.invoke(Unknown Source)
> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.java:105)
> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> java.lang.Thread.run(Unknown Source)
> --------------------------------------------------------------------------------
> 2007-03-20 12:08:19,125 (Thread-27) [ CheckOutHelper.java:1047:INFO ] Complete Order Result - false
> 2007-03-20 12:08:19,125 (Thread-27) [ PosTransaction.java:627:ERROR]
> ---- exception report ----------------------------------------------------------
> Exception: org.ofbiz.base.util.GeneralException
> Message: Problem with order change; see error logs
> ---- stack trace ---------------------------------------------------------------
> org.ofbiz.base.util.GeneralException: Problem with order change; see error logs
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:1049)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:814)
> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:625)
> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> java.lang.reflect.Method.invoke(Unknown Source)
> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.java:105)
> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> java.lang.Thread.run(Unknown Source)
> --------------------------------------------------------------------------------
> 2007-03-20 12:08:19,125 (Thread-27) [ PaymentEvents.java:307:ERROR]
> ---- exception report ----------------------------------------------------------
> Problem with order change; see error logs
> Exception: org.ofbiz.base.util.GeneralException
> Message: Problem with order change; see error logs
> ---- stack trace ---------------------------------------------------------------
> org.ofbiz.base.util.GeneralException: Problem with order change; see error logs
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:1049)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:814)
> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:625)
> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> java.lang.reflect.Method.invoke(Unknown Source)
> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.java:105)
> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> java.lang.Thread.run(Unknown Source)
> --------------------------------------------------------------------------------
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (OFBIZ-828) problem in the pos module related to
item discount and sales discount
Posted by "Jacques Le Roux (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OFBIZ-828?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12483043 ]
Jacques Le Roux commented on OFBIZ-828:
---------------------------------------
A comment from Opentaps sourceforege forum
By: Scott Gray (lektran) - 2007-03-21 09:21
Hi All,
When cash is overpaid, pos creates another OrderPaymentPreference here: CheckOutHelper.adjustFaceToFacePayment().
Anyway the end result is this payment:
<Payment
paymentId="10003"
paymentTypeId="CUSTOMER_PAYMENT"
paymentMethodTypeId="CASH"
paymentPreferenceId="10033"
partyIdFrom="_NA_"
partyIdTo="Company"
statusId="PMNT_RECEIVED"
effectiveDate="2007-03-21 21:07:58.296"
paymentRefNum="2007-03-21 21:07:58.234"
amount="-4.01"
currencyUomId="USD"
lastUpdatedStamp="2007-03-21 21:07:58.296"
lastUpdatedTxStamp="2007-03-21 21:07:58.234"
createdStamp="2007-03-21 21:07:58.296"
createdTxStamp="2007-03-21 21:07:58.234"/>
Hope that helps
Scott
> problem in the pos module related to item discount and sales discount
> ---------------------------------------------------------------------
>
> Key: OFBIZ-828
> URL: https://issues.apache.org/jira/browse/OFBIZ-828
> Project: OFBiz (The Open for Business Project)
> Issue Type: Bug
> Components: pos
> Affects Versions: SVN trunk
> Environment: Postgresql 8.1, ubuntu Linux, java 1.5
> Reporter: Vikrant Rathore
> Assigned To: Jacques Le Roux
>
> Hi Everyone,
> There is a problem in financial module which in turns create a problem for POS. I have been trying POS with the demo data and found this error.
> 1. I create an order on POS and then try to choose cash to pay. When I key in the cash amount little higher then the receipt amount. Instead of showing me a return the system return with the error. "Problem with the order change see logs for details". I was looking at the logs and found that the GL account for credit payment is not set. But its not required.
> 2. If I remove the Financial module the POS works fine. Then the sale discount and item discount do not work.
> THanks
> with best regards,
> Vikrant
> Following is the log:
> ---- exception report ----------------------------------------------------------
> Rollback Only was set when trying to commit transaction here; throwing rollbackOnly cause exception
> Exception: javax.transaction.RollbackException
> Message: null
> ---- stack trace ---------------------------------------------------------------
> javax.transaction.RollbackException
> org.apache.geronimo.transaction.context.GeronimoTransactionManager.commit(GeronimoTransactionManager.java:82)
> org.ofbiz.entity.transaction.TransactionUtil.commit(TransactionUtil.java:179)
> org.ofbiz.entity.transaction.TransactionUtil.commit(TransactionUtil.java:165)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:426)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:211)
> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:136)
> org.ofbiz.order.order.OrderChangeHelper.createReceivedPayments(OrderChangeHelper.java:265)
> org.ofbiz.order.order.OrderChangeHelper.completeOrder(OrderChangeHelper.java:119)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:1046)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:814)
> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:625)
> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> java.lang.reflect.Method.invoke(Unknown Source)
> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.java:105)
> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> java.lang.Thread.run(Unknown Source)
> --------------------------------------------------------------------------------
> 2007-03-20 12:08:19,125 (Thread-27) [ ServiceDispatcher.java:429:ERROR]
> ---- exception report ----------------------------------------------------------
> Could not commit transaction for service [createPaymentFromPreference] call
> Exception: org.ofbiz.entity.transaction.GenericTransactionException
> Message: Roll back error, could not commit transaction, was rolled back instead because of: Service Error [postPaymentToGl]: No credit GL accounts found for payment posting
> ---- stack trace ---------------------------------------------------------------
> org.ofbiz.entity.transaction.GenericTransactionException: Roll back error, could not commit transaction, was rolled back instead because of: Service Error [postPaymentToGl]: No credit GL accounts found for payment posting
> org.ofbiz.entity.transaction.TransactionUtil.commit(TransactionUtil.java:201)
> org.ofbiz.entity.transaction.TransactionUtil.commit(TransactionUtil.java:165)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:426)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:211)
> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:136)
> org.ofbiz.order.order.OrderChangeHelper.createReceivedPayments(OrderChangeHelper.java:265)
> org.ofbiz.order.order.OrderChangeHelper.completeOrder(OrderChangeHelper.java:119)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:1046)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:814)
> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:625)
> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> java.lang.reflect.Method.invoke(Unknown Source)
> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.java:105)
> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> java.lang.Thread.run(Unknown Source)
> --------------------------------------------------------------------------------
> 2007-03-20 12:08:19,125 (Thread-27) [ OrderChangeHelper.java:126:ERROR]
> ---- exception report ----------------------------------------------------------
> Exception: org.ofbiz.service.GenericServiceException
> Message: Could not commit transaction for service [createPaymentFromPreference] call: Roll back error, could not commit transaction, was rolled back instead because of: Service Error [postPaymentToGl]: No credit GL accounts found for payment posting
> ---- stack trace ---------------------------------------------------------------
> org.ofbiz.service.GenericServiceException: Could not commit transaction for service [createPaymentFromPreference] call: Roll back error, could not commit transaction, was rolled back instead because of: Service Error [postPaymentToGl]: No credit GL accounts found for payment posting
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:433)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:211)
> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:136)
> org.ofbiz.order.order.OrderChangeHelper.createReceivedPayments(OrderChangeHelper.java:265)
> org.ofbiz.order.order.OrderChangeHelper.completeOrder(OrderChangeHelper.java:119)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:1046)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:814)
> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:625)
> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> java.lang.reflect.Method.invoke(Unknown Source)
> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.java:105)
> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> java.lang.Thread.run(Unknown Source)
> --------------------------------------------------------------------------------
> 2007-03-20 12:08:19,125 (Thread-27) [ CheckOutHelper.java:1047:INFO ] Complete Order Result - false
> 2007-03-20 12:08:19,125 (Thread-27) [ PosTransaction.java:627:ERROR]
> ---- exception report ----------------------------------------------------------
> Exception: org.ofbiz.base.util.GeneralException
> Message: Problem with order change; see error logs
> ---- stack trace ---------------------------------------------------------------
> org.ofbiz.base.util.GeneralException: Problem with order change; see error logs
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:1049)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:814)
> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:625)
> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> java.lang.reflect.Method.invoke(Unknown Source)
> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.java:105)
> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> java.lang.Thread.run(Unknown Source)
> --------------------------------------------------------------------------------
> 2007-03-20 12:08:19,125 (Thread-27) [ PaymentEvents.java:307:ERROR]
> ---- exception report ----------------------------------------------------------
> Problem with order change; see error logs
> Exception: org.ofbiz.base.util.GeneralException
> Message: Problem with order change; see error logs
> ---- stack trace ---------------------------------------------------------------
> org.ofbiz.base.util.GeneralException: Problem with order change; see error logs
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:1049)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:814)
> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:625)
> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> java.lang.reflect.Method.invoke(Unknown Source)
> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.java:105)
> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> java.lang.Thread.run(Unknown Source)
> --------------------------------------------------------------------------------
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (OFBIZ-828) problem in the pos module related to
item discount and sales discount
Posted by "Jacques Le Roux (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OFBIZ-828?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12490239 ]
Jacques Le Roux commented on OFBIZ-828:
---------------------------------------
BTW I will revert the change suggested by Si in OrderServices.java (https://issues.apache.org/jira/browse/OFBIZ-828#action_12483045) since it was not the origin of the problem. Then we will still have negative payments in case of change but at least we will clearly see the amount. I guess this is not a big deal anyway. So I will keelp commented this part if it appears to be relevant later.
> problem in the pos module related to item discount and sales discount
> ---------------------------------------------------------------------
>
> Key: OFBIZ-828
> URL: https://issues.apache.org/jira/browse/OFBIZ-828
> Project: OFBiz (The Open for Business Project)
> Issue Type: Bug
> Components: pos
> Affects Versions: SVN trunk
> Environment: Postgresql 8.1, ubuntu Linux, java 1.5
> Reporter: Vikrant Rathore
> Assigned To: Jacques Le Roux
> Fix For: SVN trunk
>
>
> Hi Everyone,
> There is a problem in financial module which in turns create a problem for POS. I have been trying POS with the demo data and found this error.
> 1. I create an order on POS and then try to choose cash to pay. When I key in the cash amount little higher then the receipt amount. Instead of showing me a return the system return with the error. "Problem with the order change see logs for details". I was looking at the logs and found that the GL account for credit payment is not set. But its not required.
> 2. If I remove the Financial module the POS works fine. Then the sale discount and item discount do not work.
> THanks
> with best regards,
> Vikrant
> Following is the log:
> ---- exception report ----------------------------------------------------------
> Rollback Only was set when trying to commit transaction here; throwing rollbackOnly cause exception
> Exception: javax.transaction.RollbackException
> Message: null
> ---- stack trace ---------------------------------------------------------------
> javax.transaction.RollbackException
> org.apache.geronimo.transaction.context.GeronimoTransactionManager.commit(GeronimoTransactionManager.java:82)
> org.ofbiz.entity.transaction.TransactionUtil.commit(TransactionUtil.java:179)
> org.ofbiz.entity.transaction.TransactionUtil.commit(TransactionUtil.java:165)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:426)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:211)
> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:136)
> org.ofbiz.order.order.OrderChangeHelper.createReceivedPayments(OrderChangeHelper.java:265)
> org.ofbiz.order.order.OrderChangeHelper.completeOrder(OrderChangeHelper.java:119)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:1046)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:814)
> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:625)
> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> java.lang.reflect.Method.invoke(Unknown Source)
> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.java:105)
> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> java.lang.Thread.run(Unknown Source)
> --------------------------------------------------------------------------------
> 2007-03-20 12:08:19,125 (Thread-27) [ ServiceDispatcher.java:429:ERROR]
> ---- exception report ----------------------------------------------------------
> Could not commit transaction for service [createPaymentFromPreference] call
> Exception: org.ofbiz.entity.transaction.GenericTransactionException
> Message: Roll back error, could not commit transaction, was rolled back instead because of: Service Error [postPaymentToGl]: No credit GL accounts found for payment posting
> ---- stack trace ---------------------------------------------------------------
> org.ofbiz.entity.transaction.GenericTransactionException: Roll back error, could not commit transaction, was rolled back instead because of: Service Error [postPaymentToGl]: No credit GL accounts found for payment posting
> org.ofbiz.entity.transaction.TransactionUtil.commit(TransactionUtil.java:201)
> org.ofbiz.entity.transaction.TransactionUtil.commit(TransactionUtil.java:165)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:426)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:211)
> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:136)
> org.ofbiz.order.order.OrderChangeHelper.createReceivedPayments(OrderChangeHelper.java:265)
> org.ofbiz.order.order.OrderChangeHelper.completeOrder(OrderChangeHelper.java:119)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:1046)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:814)
> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:625)
> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> java.lang.reflect.Method.invoke(Unknown Source)
> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.java:105)
> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> java.lang.Thread.run(Unknown Source)
> --------------------------------------------------------------------------------
> 2007-03-20 12:08:19,125 (Thread-27) [ OrderChangeHelper.java:126:ERROR]
> ---- exception report ----------------------------------------------------------
> Exception: org.ofbiz.service.GenericServiceException
> Message: Could not commit transaction for service [createPaymentFromPreference] call: Roll back error, could not commit transaction, was rolled back instead because of: Service Error [postPaymentToGl]: No credit GL accounts found for payment posting
> ---- stack trace ---------------------------------------------------------------
> org.ofbiz.service.GenericServiceException: Could not commit transaction for service [createPaymentFromPreference] call: Roll back error, could not commit transaction, was rolled back instead because of: Service Error [postPaymentToGl]: No credit GL accounts found for payment posting
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:433)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:211)
> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:136)
> org.ofbiz.order.order.OrderChangeHelper.createReceivedPayments(OrderChangeHelper.java:265)
> org.ofbiz.order.order.OrderChangeHelper.completeOrder(OrderChangeHelper.java:119)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:1046)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:814)
> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:625)
> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> java.lang.reflect.Method.invoke(Unknown Source)
> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.java:105)
> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> java.lang.Thread.run(Unknown Source)
> --------------------------------------------------------------------------------
> 2007-03-20 12:08:19,125 (Thread-27) [ CheckOutHelper.java:1047:INFO ] Complete Order Result - false
> 2007-03-20 12:08:19,125 (Thread-27) [ PosTransaction.java:627:ERROR]
> ---- exception report ----------------------------------------------------------
> Exception: org.ofbiz.base.util.GeneralException
> Message: Problem with order change; see error logs
> ---- stack trace ---------------------------------------------------------------
> org.ofbiz.base.util.GeneralException: Problem with order change; see error logs
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:1049)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:814)
> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:625)
> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> java.lang.reflect.Method.invoke(Unknown Source)
> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.java:105)
> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> java.lang.Thread.run(Unknown Source)
> --------------------------------------------------------------------------------
> 2007-03-20 12:08:19,125 (Thread-27) [ PaymentEvents.java:307:ERROR]
> ---- exception report ----------------------------------------------------------
> Problem with order change; see error logs
> Exception: org.ofbiz.base.util.GeneralException
> Message: Problem with order change; see error logs
> ---- stack trace ---------------------------------------------------------------
> org.ofbiz.base.util.GeneralException: Problem with order change; see error logs
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:1049)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:814)
> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:625)
> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> java.lang.reflect.Method.invoke(Unknown Source)
> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.java:105)
> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> java.lang.Thread.run(Unknown Source)
> --------------------------------------------------------------------------------
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Reopened: (OFBIZ-828) problem in the pos module related to
item discount and sales discount
Posted by "Jacques Le Roux (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OFBIZ-828?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jacques Le Roux reopened OFBIZ-828:
-----------------------------------
As suggested by Si, find another solution for the negative payment in case of refund (this is specific to POS)
> problem in the pos module related to item discount and sales discount
> ---------------------------------------------------------------------
>
> Key: OFBIZ-828
> URL: https://issues.apache.org/jira/browse/OFBIZ-828
> Project: OFBiz
> Issue Type: Bug
> Components: specialpurpose/pos
> Affects Versions: SVN trunk
> Environment: Postgresql 8.1, ubuntu Linux, java 1.5
> Reporter: Vikrant Rathore
> Assignee: Jacques Le Roux
> Fix For: SVN trunk
>
>
> Hi Everyone,
> There is a problem in financial module which in turns create a problem for POS. I have been trying POS with the demo data and found this error.
> 1. I create an order on POS and then try to choose cash to pay. When I key in the cash amount little higher then the receipt amount. Instead of showing me a return the system return with the error. "Problem with the order change see logs for details". I was looking at the logs and found that the GL account for credit payment is not set. But its not required.
> 2. If I remove the Financial module the POS works fine. Then the sale discount and item discount do not work.
> THanks
> with best regards,
> Vikrant
> Following is the log:
> ---- exception report ----------------------------------------------------------
> Rollback Only was set when trying to commit transaction here; throwing rollbackOnly cause exception
> Exception: javax.transaction.RollbackException
> Message: null
> ---- stack trace ---------------------------------------------------------------
> javax.transaction.RollbackException
> org.apache.geronimo.transaction.context.GeronimoTransactionManager.commit(GeronimoTransactionManager.java:82)
> org.ofbiz.entity.transaction.TransactionUtil.commit(TransactionUtil.java:179)
> org.ofbiz.entity.transaction.TransactionUtil.commit(TransactionUtil.java:165)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:426)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:211)
> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:136)
> org.ofbiz.order.order.OrderChangeHelper.createReceivedPayments(OrderChangeHelper.java:265)
> org.ofbiz.order.order.OrderChangeHelper.completeOrder(OrderChangeHelper.java:119)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:1046)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:814)
> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:625)
> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> java.lang.reflect.Method.invoke(Unknown Source)
> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.java:105)
> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> java.lang.Thread.run(Unknown Source)
> --------------------------------------------------------------------------------
> 2007-03-20 12:08:19,125 (Thread-27) [ ServiceDispatcher.java:429:ERROR]
> ---- exception report ----------------------------------------------------------
> Could not commit transaction for service [createPaymentFromPreference] call
> Exception: org.ofbiz.entity.transaction.GenericTransactionException
> Message: Roll back error, could not commit transaction, was rolled back instead because of: Service Error [postPaymentToGl]: No credit GL accounts found for payment posting
> ---- stack trace ---------------------------------------------------------------
> org.ofbiz.entity.transaction.GenericTransactionException: Roll back error, could not commit transaction, was rolled back instead because of: Service Error [postPaymentToGl]: No credit GL accounts found for payment posting
> org.ofbiz.entity.transaction.TransactionUtil.commit(TransactionUtil.java:201)
> org.ofbiz.entity.transaction.TransactionUtil.commit(TransactionUtil.java:165)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:426)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:211)
> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:136)
> org.ofbiz.order.order.OrderChangeHelper.createReceivedPayments(OrderChangeHelper.java:265)
> org.ofbiz.order.order.OrderChangeHelper.completeOrder(OrderChangeHelper.java:119)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:1046)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:814)
> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:625)
> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> java.lang.reflect.Method.invoke(Unknown Source)
> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.java:105)
> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> java.lang.Thread.run(Unknown Source)
> --------------------------------------------------------------------------------
> 2007-03-20 12:08:19,125 (Thread-27) [ OrderChangeHelper.java:126:ERROR]
> ---- exception report ----------------------------------------------------------
> Exception: org.ofbiz.service.GenericServiceException
> Message: Could not commit transaction for service [createPaymentFromPreference] call: Roll back error, could not commit transaction, was rolled back instead because of: Service Error [postPaymentToGl]: No credit GL accounts found for payment posting
> ---- stack trace ---------------------------------------------------------------
> org.ofbiz.service.GenericServiceException: Could not commit transaction for service [createPaymentFromPreference] call: Roll back error, could not commit transaction, was rolled back instead because of: Service Error [postPaymentToGl]: No credit GL accounts found for payment posting
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:433)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:211)
> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:136)
> org.ofbiz.order.order.OrderChangeHelper.createReceivedPayments(OrderChangeHelper.java:265)
> org.ofbiz.order.order.OrderChangeHelper.completeOrder(OrderChangeHelper.java:119)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:1046)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:814)
> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:625)
> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> java.lang.reflect.Method.invoke(Unknown Source)
> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.java:105)
> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> java.lang.Thread.run(Unknown Source)
> --------------------------------------------------------------------------------
> 2007-03-20 12:08:19,125 (Thread-27) [ CheckOutHelper.java:1047:INFO ] Complete Order Result - false
> 2007-03-20 12:08:19,125 (Thread-27) [ PosTransaction.java:627:ERROR]
> ---- exception report ----------------------------------------------------------
> Exception: org.ofbiz.base.util.GeneralException
> Message: Problem with order change; see error logs
> ---- stack trace ---------------------------------------------------------------
> org.ofbiz.base.util.GeneralException: Problem with order change; see error logs
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:1049)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:814)
> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:625)
> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> java.lang.reflect.Method.invoke(Unknown Source)
> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.java:105)
> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> java.lang.Thread.run(Unknown Source)
> --------------------------------------------------------------------------------
> 2007-03-20 12:08:19,125 (Thread-27) [ PaymentEvents.java:307:ERROR]
> ---- exception report ----------------------------------------------------------
> Problem with order change; see error logs
> Exception: org.ofbiz.base.util.GeneralException
> Message: Problem with order change; see error logs
> ---- stack trace ---------------------------------------------------------------
> org.ofbiz.base.util.GeneralException: Problem with order change; see error logs
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:1049)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:814)
> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:625)
> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> java.lang.reflect.Method.invoke(Unknown Source)
> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.java:105)
> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> java.lang.Thread.run(Unknown Source)
> --------------------------------------------------------------------------------
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (OFBIZ-828) problem in the pos module related to
item discount and sales discount
Posted by "Jacques Le Roux (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OFBIZ-828?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jacques Le Roux closed OFBIZ-828.
---------------------------------
Resolution: Fixed
Fix Version/s: SVN trunk
This is hopefully fixed in rev. 529701.
> problem in the pos module related to item discount and sales discount
> ---------------------------------------------------------------------
>
> Key: OFBIZ-828
> URL: https://issues.apache.org/jira/browse/OFBIZ-828
> Project: OFBiz (The Open for Business Project)
> Issue Type: Bug
> Components: pos
> Affects Versions: SVN trunk
> Environment: Postgresql 8.1, ubuntu Linux, java 1.5
> Reporter: Vikrant Rathore
> Assigned To: Jacques Le Roux
> Fix For: SVN trunk
>
>
> Hi Everyone,
> There is a problem in financial module which in turns create a problem for POS. I have been trying POS with the demo data and found this error.
> 1. I create an order on POS and then try to choose cash to pay. When I key in the cash amount little higher then the receipt amount. Instead of showing me a return the system return with the error. "Problem with the order change see logs for details". I was looking at the logs and found that the GL account for credit payment is not set. But its not required.
> 2. If I remove the Financial module the POS works fine. Then the sale discount and item discount do not work.
> THanks
> with best regards,
> Vikrant
> Following is the log:
> ---- exception report ----------------------------------------------------------
> Rollback Only was set when trying to commit transaction here; throwing rollbackOnly cause exception
> Exception: javax.transaction.RollbackException
> Message: null
> ---- stack trace ---------------------------------------------------------------
> javax.transaction.RollbackException
> org.apache.geronimo.transaction.context.GeronimoTransactionManager.commit(GeronimoTransactionManager.java:82)
> org.ofbiz.entity.transaction.TransactionUtil.commit(TransactionUtil.java:179)
> org.ofbiz.entity.transaction.TransactionUtil.commit(TransactionUtil.java:165)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:426)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:211)
> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:136)
> org.ofbiz.order.order.OrderChangeHelper.createReceivedPayments(OrderChangeHelper.java:265)
> org.ofbiz.order.order.OrderChangeHelper.completeOrder(OrderChangeHelper.java:119)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:1046)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:814)
> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:625)
> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> java.lang.reflect.Method.invoke(Unknown Source)
> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.java:105)
> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> java.lang.Thread.run(Unknown Source)
> --------------------------------------------------------------------------------
> 2007-03-20 12:08:19,125 (Thread-27) [ ServiceDispatcher.java:429:ERROR]
> ---- exception report ----------------------------------------------------------
> Could not commit transaction for service [createPaymentFromPreference] call
> Exception: org.ofbiz.entity.transaction.GenericTransactionException
> Message: Roll back error, could not commit transaction, was rolled back instead because of: Service Error [postPaymentToGl]: No credit GL accounts found for payment posting
> ---- stack trace ---------------------------------------------------------------
> org.ofbiz.entity.transaction.GenericTransactionException: Roll back error, could not commit transaction, was rolled back instead because of: Service Error [postPaymentToGl]: No credit GL accounts found for payment posting
> org.ofbiz.entity.transaction.TransactionUtil.commit(TransactionUtil.java:201)
> org.ofbiz.entity.transaction.TransactionUtil.commit(TransactionUtil.java:165)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:426)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:211)
> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:136)
> org.ofbiz.order.order.OrderChangeHelper.createReceivedPayments(OrderChangeHelper.java:265)
> org.ofbiz.order.order.OrderChangeHelper.completeOrder(OrderChangeHelper.java:119)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:1046)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:814)
> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:625)
> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> java.lang.reflect.Method.invoke(Unknown Source)
> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.java:105)
> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> java.lang.Thread.run(Unknown Source)
> --------------------------------------------------------------------------------
> 2007-03-20 12:08:19,125 (Thread-27) [ OrderChangeHelper.java:126:ERROR]
> ---- exception report ----------------------------------------------------------
> Exception: org.ofbiz.service.GenericServiceException
> Message: Could not commit transaction for service [createPaymentFromPreference] call: Roll back error, could not commit transaction, was rolled back instead because of: Service Error [postPaymentToGl]: No credit GL accounts found for payment posting
> ---- stack trace ---------------------------------------------------------------
> org.ofbiz.service.GenericServiceException: Could not commit transaction for service [createPaymentFromPreference] call: Roll back error, could not commit transaction, was rolled back instead because of: Service Error [postPaymentToGl]: No credit GL accounts found for payment posting
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:433)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:211)
> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:136)
> org.ofbiz.order.order.OrderChangeHelper.createReceivedPayments(OrderChangeHelper.java:265)
> org.ofbiz.order.order.OrderChangeHelper.completeOrder(OrderChangeHelper.java:119)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:1046)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:814)
> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:625)
> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> java.lang.reflect.Method.invoke(Unknown Source)
> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.java:105)
> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> java.lang.Thread.run(Unknown Source)
> --------------------------------------------------------------------------------
> 2007-03-20 12:08:19,125 (Thread-27) [ CheckOutHelper.java:1047:INFO ] Complete Order Result - false
> 2007-03-20 12:08:19,125 (Thread-27) [ PosTransaction.java:627:ERROR]
> ---- exception report ----------------------------------------------------------
> Exception: org.ofbiz.base.util.GeneralException
> Message: Problem with order change; see error logs
> ---- stack trace ---------------------------------------------------------------
> org.ofbiz.base.util.GeneralException: Problem with order change; see error logs
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:1049)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:814)
> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:625)
> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> java.lang.reflect.Method.invoke(Unknown Source)
> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.java:105)
> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> java.lang.Thread.run(Unknown Source)
> --------------------------------------------------------------------------------
> 2007-03-20 12:08:19,125 (Thread-27) [ PaymentEvents.java:307:ERROR]
> ---- exception report ----------------------------------------------------------
> Problem with order change; see error logs
> Exception: org.ofbiz.base.util.GeneralException
> Message: Problem with order change; see error logs
> ---- stack trace ---------------------------------------------------------------
> org.ofbiz.base.util.GeneralException: Problem with order change; see error logs
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:1049)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:814)
> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:625)
> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> java.lang.reflect.Method.invoke(Unknown Source)
> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.java:105)
> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> java.lang.Thread.run(Unknown Source)
> --------------------------------------------------------------------------------
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (OFBIZ-828) problem in the pos module related to
item discount and sales discount
Posted by "Jacques Le Roux (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OFBIZ-828?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12483045 ]
Jacques Le Roux commented on OFBIZ-828:
---------------------------------------
A comment from Opentaps Sourceforege forum
By: Si Chen (sichen) - 2007-03-21 23:58
Can you try changing it to a CUSTOMER_REFUND of a positive amount of 4.01 with partyIdFrom=Company (ProductStore.payTopartyId) and partyIdTo=_NA_?
A payment of a negative amount is highly suspicious
> problem in the pos module related to item discount and sales discount
> ---------------------------------------------------------------------
>
> Key: OFBIZ-828
> URL: https://issues.apache.org/jira/browse/OFBIZ-828
> Project: OFBiz (The Open for Business Project)
> Issue Type: Bug
> Components: pos
> Affects Versions: SVN trunk
> Environment: Postgresql 8.1, ubuntu Linux, java 1.5
> Reporter: Vikrant Rathore
> Assigned To: Jacques Le Roux
>
> Hi Everyone,
> There is a problem in financial module which in turns create a problem for POS. I have been trying POS with the demo data and found this error.
> 1. I create an order on POS and then try to choose cash to pay. When I key in the cash amount little higher then the receipt amount. Instead of showing me a return the system return with the error. "Problem with the order change see logs for details". I was looking at the logs and found that the GL account for credit payment is not set. But its not required.
> 2. If I remove the Financial module the POS works fine. Then the sale discount and item discount do not work.
> THanks
> with best regards,
> Vikrant
> Following is the log:
> ---- exception report ----------------------------------------------------------
> Rollback Only was set when trying to commit transaction here; throwing rollbackOnly cause exception
> Exception: javax.transaction.RollbackException
> Message: null
> ---- stack trace ---------------------------------------------------------------
> javax.transaction.RollbackException
> org.apache.geronimo.transaction.context.GeronimoTransactionManager.commit(GeronimoTransactionManager.java:82)
> org.ofbiz.entity.transaction.TransactionUtil.commit(TransactionUtil.java:179)
> org.ofbiz.entity.transaction.TransactionUtil.commit(TransactionUtil.java:165)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:426)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:211)
> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:136)
> org.ofbiz.order.order.OrderChangeHelper.createReceivedPayments(OrderChangeHelper.java:265)
> org.ofbiz.order.order.OrderChangeHelper.completeOrder(OrderChangeHelper.java:119)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:1046)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:814)
> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:625)
> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> java.lang.reflect.Method.invoke(Unknown Source)
> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.java:105)
> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> java.lang.Thread.run(Unknown Source)
> --------------------------------------------------------------------------------
> 2007-03-20 12:08:19,125 (Thread-27) [ ServiceDispatcher.java:429:ERROR]
> ---- exception report ----------------------------------------------------------
> Could not commit transaction for service [createPaymentFromPreference] call
> Exception: org.ofbiz.entity.transaction.GenericTransactionException
> Message: Roll back error, could not commit transaction, was rolled back instead because of: Service Error [postPaymentToGl]: No credit GL accounts found for payment posting
> ---- stack trace ---------------------------------------------------------------
> org.ofbiz.entity.transaction.GenericTransactionException: Roll back error, could not commit transaction, was rolled back instead because of: Service Error [postPaymentToGl]: No credit GL accounts found for payment posting
> org.ofbiz.entity.transaction.TransactionUtil.commit(TransactionUtil.java:201)
> org.ofbiz.entity.transaction.TransactionUtil.commit(TransactionUtil.java:165)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:426)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:211)
> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:136)
> org.ofbiz.order.order.OrderChangeHelper.createReceivedPayments(OrderChangeHelper.java:265)
> org.ofbiz.order.order.OrderChangeHelper.completeOrder(OrderChangeHelper.java:119)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:1046)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:814)
> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:625)
> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> java.lang.reflect.Method.invoke(Unknown Source)
> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.java:105)
> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> java.lang.Thread.run(Unknown Source)
> --------------------------------------------------------------------------------
> 2007-03-20 12:08:19,125 (Thread-27) [ OrderChangeHelper.java:126:ERROR]
> ---- exception report ----------------------------------------------------------
> Exception: org.ofbiz.service.GenericServiceException
> Message: Could not commit transaction for service [createPaymentFromPreference] call: Roll back error, could not commit transaction, was rolled back instead because of: Service Error [postPaymentToGl]: No credit GL accounts found for payment posting
> ---- stack trace ---------------------------------------------------------------
> org.ofbiz.service.GenericServiceException: Could not commit transaction for service [createPaymentFromPreference] call: Roll back error, could not commit transaction, was rolled back instead because of: Service Error [postPaymentToGl]: No credit GL accounts found for payment posting
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:433)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:211)
> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:136)
> org.ofbiz.order.order.OrderChangeHelper.createReceivedPayments(OrderChangeHelper.java:265)
> org.ofbiz.order.order.OrderChangeHelper.completeOrder(OrderChangeHelper.java:119)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:1046)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:814)
> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:625)
> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> java.lang.reflect.Method.invoke(Unknown Source)
> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.java:105)
> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> java.lang.Thread.run(Unknown Source)
> --------------------------------------------------------------------------------
> 2007-03-20 12:08:19,125 (Thread-27) [ CheckOutHelper.java:1047:INFO ] Complete Order Result - false
> 2007-03-20 12:08:19,125 (Thread-27) [ PosTransaction.java:627:ERROR]
> ---- exception report ----------------------------------------------------------
> Exception: org.ofbiz.base.util.GeneralException
> Message: Problem with order change; see error logs
> ---- stack trace ---------------------------------------------------------------
> org.ofbiz.base.util.GeneralException: Problem with order change; see error logs
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:1049)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:814)
> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:625)
> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> java.lang.reflect.Method.invoke(Unknown Source)
> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.java:105)
> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> java.lang.Thread.run(Unknown Source)
> --------------------------------------------------------------------------------
> 2007-03-20 12:08:19,125 (Thread-27) [ PaymentEvents.java:307:ERROR]
> ---- exception report ----------------------------------------------------------
> Problem with order change; see error logs
> Exception: org.ofbiz.base.util.GeneralException
> Message: Problem with order change; see error logs
> ---- stack trace ---------------------------------------------------------------
> org.ofbiz.base.util.GeneralException: Problem with order change; see error logs
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:1049)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:814)
> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:625)
> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> java.lang.reflect.Method.invoke(Unknown Source)
> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.java:105)
> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> java.lang.Thread.run(Unknown Source)
> --------------------------------------------------------------------------------
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (OFBIZ-828) problem in the pos module related to
item discount and sales discount
Posted by "Jacques Le Roux (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OFBIZ-828?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jacques Le Roux reassigned OFBIZ-828:
-------------------------------------
Assignee: Jacques Le Roux
> problem in the pos module related to item discount and sales discount
> ---------------------------------------------------------------------
>
> Key: OFBIZ-828
> URL: https://issues.apache.org/jira/browse/OFBIZ-828
> Project: OFBiz (The Open for Business Project)
> Issue Type: Bug
> Components: pos
> Affects Versions: SVN trunk
> Environment: Postgresql 8.1, ubuntu Linux, java 1.5
> Reporter: Vikrant Rathore
> Assigned To: Jacques Le Roux
>
> Hi Everyone,
> There is a problem in financial module which in turns create a problem for POS. I have been trying POS with the demo data and found this error.
> 1. I create an order on POS and then try to choose cash to pay. When I key in the cash amount little higher then the receipt amount. Instead of showing me a return the system return with the error. "Problem with the order change see logs for details". I was looking at the logs and found that the GL account for credit payment is not set. But its not required.
> 2. If I remove the Financial module the POS works fine. Then the sale discount and item discount do not work.
> THanks
> with best regards,
> Vikrant
> Following is the log:
> ---- exception report ----------------------------------------------------------
> Rollback Only was set when trying to commit transaction here; throwing rollbackOnly cause exception
> Exception: javax.transaction.RollbackException
> Message: null
> ---- stack trace ---------------------------------------------------------------
> javax.transaction.RollbackException
> org.apache.geronimo.transaction.context.GeronimoTransactionManager.commit(GeronimoTransactionManager.java:82)
> org.ofbiz.entity.transaction.TransactionUtil.commit(TransactionUtil.java:179)
> org.ofbiz.entity.transaction.TransactionUtil.commit(TransactionUtil.java:165)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:426)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:211)
> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:136)
> org.ofbiz.order.order.OrderChangeHelper.createReceivedPayments(OrderChangeHelper.java:265)
> org.ofbiz.order.order.OrderChangeHelper.completeOrder(OrderChangeHelper.java:119)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:1046)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:814)
> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:625)
> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> java.lang.reflect.Method.invoke(Unknown Source)
> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.java:105)
> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> java.lang.Thread.run(Unknown Source)
> --------------------------------------------------------------------------------
> 2007-03-20 12:08:19,125 (Thread-27) [ ServiceDispatcher.java:429:ERROR]
> ---- exception report ----------------------------------------------------------
> Could not commit transaction for service [createPaymentFromPreference] call
> Exception: org.ofbiz.entity.transaction.GenericTransactionException
> Message: Roll back error, could not commit transaction, was rolled back instead because of: Service Error [postPaymentToGl]: No credit GL accounts found for payment posting
> ---- stack trace ---------------------------------------------------------------
> org.ofbiz.entity.transaction.GenericTransactionException: Roll back error, could not commit transaction, was rolled back instead because of: Service Error [postPaymentToGl]: No credit GL accounts found for payment posting
> org.ofbiz.entity.transaction.TransactionUtil.commit(TransactionUtil.java:201)
> org.ofbiz.entity.transaction.TransactionUtil.commit(TransactionUtil.java:165)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:426)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:211)
> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:136)
> org.ofbiz.order.order.OrderChangeHelper.createReceivedPayments(OrderChangeHelper.java:265)
> org.ofbiz.order.order.OrderChangeHelper.completeOrder(OrderChangeHelper.java:119)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:1046)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:814)
> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:625)
> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> java.lang.reflect.Method.invoke(Unknown Source)
> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.java:105)
> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> java.lang.Thread.run(Unknown Source)
> --------------------------------------------------------------------------------
> 2007-03-20 12:08:19,125 (Thread-27) [ OrderChangeHelper.java:126:ERROR]
> ---- exception report ----------------------------------------------------------
> Exception: org.ofbiz.service.GenericServiceException
> Message: Could not commit transaction for service [createPaymentFromPreference] call: Roll back error, could not commit transaction, was rolled back instead because of: Service Error [postPaymentToGl]: No credit GL accounts found for payment posting
> ---- stack trace ---------------------------------------------------------------
> org.ofbiz.service.GenericServiceException: Could not commit transaction for service [createPaymentFromPreference] call: Roll back error, could not commit transaction, was rolled back instead because of: Service Error [postPaymentToGl]: No credit GL accounts found for payment posting
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:433)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:211)
> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:136)
> org.ofbiz.order.order.OrderChangeHelper.createReceivedPayments(OrderChangeHelper.java:265)
> org.ofbiz.order.order.OrderChangeHelper.completeOrder(OrderChangeHelper.java:119)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:1046)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:814)
> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:625)
> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> java.lang.reflect.Method.invoke(Unknown Source)
> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.java:105)
> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> java.lang.Thread.run(Unknown Source)
> --------------------------------------------------------------------------------
> 2007-03-20 12:08:19,125 (Thread-27) [ CheckOutHelper.java:1047:INFO ] Complete Order Result - false
> 2007-03-20 12:08:19,125 (Thread-27) [ PosTransaction.java:627:ERROR]
> ---- exception report ----------------------------------------------------------
> Exception: org.ofbiz.base.util.GeneralException
> Message: Problem with order change; see error logs
> ---- stack trace ---------------------------------------------------------------
> org.ofbiz.base.util.GeneralException: Problem with order change; see error logs
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:1049)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:814)
> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:625)
> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> java.lang.reflect.Method.invoke(Unknown Source)
> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.java:105)
> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> java.lang.Thread.run(Unknown Source)
> --------------------------------------------------------------------------------
> 2007-03-20 12:08:19,125 (Thread-27) [ PaymentEvents.java:307:ERROR]
> ---- exception report ----------------------------------------------------------
> Problem with order change; see error logs
> Exception: org.ofbiz.base.util.GeneralException
> Message: Problem with order change; see error logs
> ---- stack trace ---------------------------------------------------------------
> org.ofbiz.base.util.GeneralException: Problem with order change; see error logs
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:1049)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:814)
> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:625)
> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> java.lang.reflect.Method.invoke(Unknown Source)
> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.java:105)
> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> java.lang.Thread.run(Unknown Source)
> --------------------------------------------------------------------------------
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.