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/09/15 06:51:00 UTC
[jira] [Created] (OFBIZ-13590) updatePartyRate never expires the previous rate row
Mridul Pathak created OFBIZ-13590:
-------------------------------------
Summary: updatePartyRate never expires the previous rate row
Key: OFBIZ-13590
URL: https://issues.apache.org/jira/browse/OFBIZ-13590
Project: OFBiz
Issue Type: Bug
Components: accounting
Affects Versions: 24.09.07, Upcoming Branch
Reporter: Mridul Pathak
Assignee: Mridul Pathak
{{updatePartyRate}} fetches the existing {{PartyRate}}, sets {{partyRate.thruDate = UtilDateTime.nowTimestamp()}}, but never calls {{.store()}} before creating the new entity — the in-memory mutation is discarded. The original minilang called {{<store-value>}} immediately after setting {{thruDate}}. Every rate update now leaves the previous {{PartyRate}} row permanently un-expired, so multiple "active" rows accumulate for the same party/rateType.
Needs fixing: add {{partyRate.store()}} after setting {{thruDate}}.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)