[ 
https://issues.apache.org/jira/browse/OFBIZ-2785?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Anil K Patel closed OFBIZ-2785.
-------------------------------

    Resolution: Fixed

Patch applied by Ashish. Thanks.

> Invoice can be canceled when associated payment is in Confirmed status.
> -----------------------------------------------------------------------
>
>                 Key: OFBIZ-2785
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-2785
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: accounting
>    Affects Versions: SVN trunk
>            Reporter: Sumit Pandit
>            Assignee: Anil K Patel
>            Priority: Minor
>             Fix For: SVN trunk
>
>         Attachments: OFBIZ-2785.patch, OFBIZ-2785.patch
>
>
> What is the issue - 
> When user try to cancel a Paid invoice (associated payment is in CONFIRMED 
> status) it throws an on attempt to removePaymentApplication. 
> "removePaymentApplication" services enforces business rule that If Payment is 
> in Confirmed status, PaymentApplications cannot be removed.
> So to fix it I would suggest 
> 1) Remove above mentioned business rule from removePaymentApplication service.
> 2) Add status valid change for moving, Payment from CONFIRMED status to 
> sent/received.
> 2) Remove Invoice Payment applications.
> On completion of service Payment (Sent/Received status) will be available for 
> applying to any other Invoice. 
> All opinion and comments are much appreciated.

-- 
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