[ https://issues.apache.org/jira/browse/OFBIZ-6776?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15103168#comment-15103168 ]
Nameet commented on OFBIZ-6776: ------------------------------- I researched more on this. Found that need to do some more improvement to fix this issue. In the current patch refunded payment (Payment of $5) is skiped to be associated the the sales invoice. But the payment which was refunded (Payment of $15.00) is applied which is causing issue in calculation if unapplied payment. Need to review scenario and code again. > Amount to capture for order is in-correct after manual refund electronic > transaction > ------------------------------------------------------------------------------------ > > Key: OFBIZ-6776 > URL: https://issues.apache.org/jira/browse/OFBIZ-6776 > Project: OFBiz > Issue Type: Bug > Components: accounting, order > Affects Versions: Release Branch 13.07, Release Branch 14.12, Trunk > Reporter: Nameet > Assignee: Pranay Pandey > Fix For: Upcoming Branch > > Attachments: OFBIZ-6776.patch > > > Steps to regenerate- > 1) Place a sales order of Rainbow Gizmo. Order Total was of $29.91. Order > will be in approved status and in *Payment Information* section you will see > $29.91 as authorized and available to capture. > 2) Capture $15.00 by using the capture button available in *Payment > Information* block. System should successfully captured $15.00 and also new > authorized payment of $14.91 should be seen in Payment Information section. > 3) Refund $5.00, for that use manual electronic transfer UI in accounting. > System successfully does the refund. > 4) Click quick ship entire order from order screen. As per payment > requirement, now system should proceed to complete the capture process for > amount $19.91($29.91 - $15(Captured) + $5(Refunded)) but it captures only > $9.91 and not showing any remaining amount to capture on order. Also the > order invoice due shows $0.00. > Possible reason of the issue is that manual refund payment amount is being > considered by the system as received payment and hence amount to capture on > order is calculated wrong. -- This message was sent by Atlassian JIRA (v6.3.4#6332)