[
https://issues.apache.org/jira/browse/OFBIZ-2025?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
William Perng updated OFBIZ-2025:
---------------------------------
Attachment: patch.txt
I attached a possible patch to this issue. A new "out" parameter
(invoiceTypeId) is added for service "createInvoiceForOrder" in
services_invoice.xml. The createInvoiceForOrder method in
InvoiceServices.java is changed to return "invoiceTypeId". The
/accounting/servicedef/secas.xml is modified to check the inoviceTypeId when
the capturePaymentByInvoice is triggered by the retun event of
createInvoiceForOrder.
By this patch, the capturePaymentsByInvoice will be called for sales order
only.
> 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
> Attachments: patch.txt
>
>
> 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.