[
https://issues.apache.org/jira/browse/OFBIZ-4345?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13076089#comment-13076089
]
Martin Kreidenweis commented on OFBIZ-4345:
-------------------------------------------
Hi Bilgin, thanks for looking into this.
I don't see any issue with also filtering out cancelled
OrderPaymentPreferences. This would work for us.
Martin
> voided payments are auto-applied to new order invoices
> ------------------------------------------------------
>
> Key: OFBIZ-4345
> URL: https://issues.apache.org/jira/browse/OFBIZ-4345
> Project: OFBiz
> Issue Type: Bug
> Components: accounting
> Affects Versions: SVN trunk
> Reporter: Martin Kreidenweis
> Assignee: Bilgin Ibryam
> Attachments: OFBIZ-4345-voidedAutoApply.patch
>
>
> {{InvoiceServices.createInvoiceForOrder}} automatically creates
> {{PaymentApplication}} records when unapplied payments exist for the order.
> Unfortunately this doesn't consider the {{Payment.statusId}}.
> So when a user accidentally enters a wrong payment and voids it right away,
> it is still automatically applied to the invoice on invoice creation. The GUI
> then provides no way to un-apply the payment, because it assumes that for
> voided payments no payment applications can exist any more.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira