[ 
https://issues.apache.org/jira/browse/OFBIZ-2025?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12644761#action_12644761
 ] 

William Perng commented on OFBIZ-2025:
--------------------------------------

The createInvoiceForOrder calls capturePaymentsByInvoice by eca rule which is 
defined in /applications/accounting/servicedef/secas.xml ( 1st entry ).  If we 
can modify the createInvoiceForOrder service to return invoice type and check 
this invoice type in the secas.xml (only trigger the capturePaymentsByInvoice 
when the invoice type is SALES_INVOICE) , this should solve the problem.    If 
this is correct, I can create a patch for this.

> Exception on receiving purchase order
> -------------------------------------
>
>                 Key: OFBIZ-2025
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-2025
>             Project: OFBiz
>          Issue Type: Bug
>          Components: order
>    Affects Versions: SVN trunk
>         Environment: test on version 703450.
>            Reporter: William Perng
>
> Exception happens when receiving a purchase order.  This problem only happens 
> when "ship if capture failed" option is set to N.  
> The exception is "Error trying to begin transaction, could not process 
> method: The current transaction is marked for rollback, not beginning a new 
> transaction and aborting current operation; the rollbackOnly was caused by: 
> Error in Service [captureOrderPayments]: Cannot ship order because credit 
> card captures were unsuccessful calling service balanceInventoryItems in 
> receiveInventoryProduct".
> Steps to reproduce this issue : 1. Create a purchase order  2. Try to quick 
> receive it.  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to