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

Rishi Solanki commented on OFBIZ-6559:
--------------------------------------

Follows the steps shared in the ticket description and able to replicate the 
issue. Fix will involve setting the voided payment amount applied to zero as 
well outstanding amount. As mentioned other area to cover in the fix will 
involve, voided status payment should not be shown in the payment lookup for 
apply and if somehow user enter the voided payment to apply to any invoice, 
system should send error and should not apply.
Before doing any changes we would prefer to discuss it with more details and 
then go for fixes. Please feel free to take this one if anyone from community 
wants to, otherwise I'll pick this ticket as soon as I get chance.

Thanks to Ankit Joshi for verifying the issue and discussion.

> Voided Payments Can Still be Applied to Invoices
> ------------------------------------------------
>
>                 Key: OFBIZ-6559
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-6559
>             Project: OFBiz
>          Issue Type: Bug
>            Reporter: Sharan Foga
>            Priority: Minor
>
> When a payment is voided the Amount Outstanding (i.e. Open Amount that can 
> applied) is not set to zero. This means that voided payments still show up in 
> the list of payments that can be selected to be applied to an invoice. 
> The same error that is reported in 
> https://issues.apache.org/jira/browse/OFBIZ-6558 for Cancelled Payments also 
> occurs for Voided Payments but where a cancelled payment cannot be applied to 
> an invoice, a voided payment can be applied and this is wrong.
> This bug applies to both incoming and outgoing payments.
> How to re-create using an Incoming Payment
> 1. Go to Accounting / Payments
> 2. Create a new Incoming Payment to DemoCustomer for $15
> 3. Go back and view the list the newly created payment in the list of 
> payments (Note that both the Amount and the Outstanding Amount show as $15. 
> The Outstanding Amount is the amount that can be applied to an invoice)
> 4. Select the newly created payment
> 5. Change the Status to Void
> 6. Go back and view the payment in the payments list and both the amount and 
> the Amount Outstanding are still showing as $15. (The amount Outstanding here 
> should be zero)
> 7. If you then select the payment and view the details. In the payment 
> Applied area it shows that $0.00 has been applied, which is fine but then it 
> shows that $15 is still open to be applied, which is wrong. (If you void a 
> payment none of it should be available to be applied).
> The voided  payment also appears in the payment lookup for selecting payments 
> to apply because the amount outstanding is not zero. This means you can 
> select it to apply it to an invoice which is wrong because you should not be 
> allowed to apply a voided payment.
> As with https://issues.apache.org/jira/browse/OFBIZ-6558 I think that setting 
> the outstanding amount to zero when a payment is voided will resolve the 
> first part of this issue.  As an extra safeguard I think that an error 
> message (similar to what is in place for stopping cancelled payments being 
> applied) needs to be added to stop voided payments being applied to invoices.
> Impact is that the list of payments will show incorrect information about 
> voided payments and that voided payments can be applied to invoices.
> Thanks
> Sharan



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to