You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Mridul Pathak (Jira)" <ji...@apache.org> on 2026/10/22 11:03:00 UTC
[jira] [Created] (OFBIZ-13707) Regressions in CheckoutServices, RequirementServicesScript and OrderDeliveryServices (stale cart contact mechs, zero-quantity requirements, notification NPE)
Mridul Pathak created OFBIZ-13707:
-------------------------------------
Summary: Regressions in CheckoutServices, RequirementServicesScript and OrderDeliveryServices (stale cart contact mechs, zero-quantity requirements, notification NPE)
Key: OFBIZ-13707
URL: https://issues.apache.org/jira/browse/OFBIZ-13707
Project: OFBiz
Issue Type: Bug
Components: order
Affects Versions: Upcoming Branch, 24.09.08
Reporter: Mridul Pathak
Assignee: Mridul Pathak
# {{CheckoutServices.groovy}} (trunk only): OFBIZ-13199 renamed {{shoppingCart.addContactMech}} to {{addContactMechId}}. The old method replaced the id for a purpose; {{addContactMechId}} adds to a set per purpose and nothing removes the previous one. If a customer re-submits the shipping or billing step with a changed address (keepAddressBook creates a new PostalAddress), the cart holds both ids for SHIPPING_LOCATION/BILLING_LOCATION/PHONE_*/ORDER_EMAIL and an OrderContactMech row is written for each. The invoice then picks up the stale billing address, and the payment gateway uses {{getFirst(getShippingLocations())}}, typically the older one. Call {{removeContactMechId(purpose)}} before each {{addContactMechId}} (decide separately whether ORDER_EMAIL stays multi-valued).
# {{RequirementServicesScript.autoAssignRequirementToSupplier}} guards with {{&& requirement.quantity}}, which is false for a BigDecimal 0; the mini-lang used {{<if-not-empty field="requirement.quantity">}}, which treats 0 as a value. Use {{requirement.quantity != null}}.
# {{OrderDeliveryServices.sendOrderDeliveryScheduleNotification}}: {{curUserPartyAndContactMech.infoString}} and {{orderDeliverySchedule.orderId}} throw NullPointerException when the current user has no EMAIL_ADDRESS contact mech or the schedule row is missing. The mini-lang skipped the null and logged "Insufficient data to send notice email", returning success; the async persisted job started by the SECA on createOrderDeliverySchedule/updateOrderDeliverySchedule now fails. Use null-safe access and keep the logged skip.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)