[
https://issues.apache.org/jira/browse/OFBIZ-2025?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12644432#action_12644432
]
William Perng commented on OFBIZ-2025:
--------------------------------------
Your 2nd paragraph is exactly what I am looking for. We have a quick fix to
skip the check of shipIfCaptureFail setting. If this is a purchase order, we
always set it to true. From your update, I think the fix has passed the point
where I should look at. But it can be a work around before this issue is
solved. I post here for someone who may need it.
In line 1253 of PaymentGatewayServices.java (ver 686591) , we change it to
if(!shipIfCaptureFails && orh.getOrderTypeId().equals("SALES_ORDER")){
Let's work on the real problem. Here is the call stack :
1. updatePurchaseShipmentFromReceipt service calls updateShipment service
2. updateShipment service calls createInvoiceFromShipment service by eca rule
in secas_shipment.xml
3. createInvoiceFromShipment service calls createInvoiceFromShipments
4. createInvoiceFromShipments service calls createInvoiceForOrder
5. The createInvoiceForOrder will try to call captureOrderPayments.
My question is should the purchase order have invoice ? If the purchase order
doesn't have invoice, the problem should be in the eca rule (item 2) above.
> 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.