You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "mridulpathak (via GitHub)" <gi...@apache.org> on 2026/09/15 07:56:53 UTC
[PR] Fixed: Six regressions in the minilang-to-Groovy conversion of PaymentServices.groovy (OFBIZ-13596) [ofbiz-framework]
mridulpathak opened a new pull request, #1998:
URL: https://github.com/apache/ofbiz-framework/pull/1998
- createPayment set parameters.paymentId instead of parameters.paymentMethodId when defaulting from an OrderPaymentPreference, silently dropping the payment method
- createPaymentAndApplicationForParty used return inside .each{} closures, which only exits that iteration rather than the method, letting non-ready invoices be silently skipped instead of aborting the whole operation
- checkAndCreateBatchForValidPayments dropped the original's filterByDate() on the already-batched check, so an expired batch membership permanently blocked re-batching
- createPaymentAndPaymentGroupForInvoices dereferenced finAccount.statusId without a null guard, raising an NPE when the payment method's finAccountId doesn't resolve to a FinAccount
- setPaymentStatus returned failure() instead of error() for its validation guards, so ServiceUtil.isError() missed them and callers relying on default break-on-error behavior didn't catch the FAIL response
- createMatchingPaymentApplication had an inverted existence check that created a duplicate application only when one already existed, skipping creation in the normal auto-match case; as a SECA on setPaymentStatus and setInvoiceStatus, this fired on essentially every payment receipt/send and invoice approval
Each fix was verified against the original minilang and covered by a temporary RED/GREEN test before removal, and the accounting component's payment, invoice, and payment-application test suites pass unchanged.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@ofbiz.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Fixed: Six regressions in the minilang-to-Groovy conversion of PaymentServices.groovy (OFBIZ-13596) [ofbiz-framework]
Posted by "mridulpathak (via GitHub)" <gi...@apache.org>.
mridulpathak merged PR #1998:
URL: https://github.com/apache/ofbiz-framework/pull/1998
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@ofbiz.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org