Invoice not marked as paid when credit card payment captured

Description

When order has authorization, on completion of invoice will capture and create payments. In this case payment are auto allocated. But invoice is not marked as paid.

Environment

None

Attachments

1
  • 19 Apr 2017, 04:41 PM

Activity

Show:

Deepak Pansheriya April 20, 2017 at 11:56 AM

Carlos,
Please go with your patch.

Carlos Ruiz April 20, 2017 at 9:59 AM

Sorry , didn't understand.

Deepak Pansheriya April 20, 2017 at 5:18 AM

Carlos,
Above patch will work in both delayed capture and sales transaction case. Please commit same.

Carlos Ruiz April 19, 2017 at 8:39 PM

Hi , wouldn't be better to call testAllocation on the specific case of payment authorization?

something like:

diff -r c0309f33c2dd org.adempiere.base/src/org/compiere/model/MInvoice.java --- a/org.adempiere.base/src/org/compiere/model/MInvoice.java Tue Apr 18 14:11:52 2017 +0200 +++ b/org.adempiere.base/src/org/compiere/model/MInvoice.java Wed Apr 19 22:39:11 2017 +0200 @@ -2086,6 +2086,9 @@ } } } + if (testAllocation(true)) { + saveEx(); + } } }
Fixed

Assignee

Reporter

Components

Priority

Created April 19, 2017 at 4:38 PM
Updated June 2, 2017 at 5:29 AM
Resolved April 20, 2017 at 1:07 PM

Flag notifications