Skip to content

Fixed: updatePartyRate does not persist expiry of the previous rate (OFBIZ-13590) - #2012

Merged
mridulpathak merged 1 commit into
apache:trunkfrom
mridulpathak:OFBIZ-13590
Sep 15, 2026
Merged

mridulpathak merged 1 commit into
apache:trunkfrom
mridulpathak:OFBIZ-13590

Conversation

@mridulpathak

Copy link
Copy Markdown
Contributor
  • The method set partyRate.thruDate = UtilDateTime.nowTimestamp() to expire the previously active PartyRate but never called .store(), so the mutation only existed in memory and was discarded; multiple "active" PartyRate rows accumulated for the same party/rateType since none of the earlier ones actually got expired
  • The lookup for that previous PartyRate was also missing filterByDate() (present in the original minilang), so getFirst() could pick an already-expired row instead of the currently active one to expire

Both fixes were verified against the original minilang and covered by a temporary RED/GREEN test before removal, and the accounting component's rate test suite passes unchanged.

…OFBIZ-13590)

- The method set partyRate.thruDate = UtilDateTime.nowTimestamp() to expire the previously active PartyRate but never called .store(), so the mutation only existed in memory and was discarded; multiple "active" PartyRate rows accumulated for the same party/rateType since none of the earlier ones actually got expired
- The lookup for that previous PartyRate was also missing filterByDate() (present in the original minilang), so getFirst() could pick an already-expired row instead of the currently active one to expire

Both fixes were verified against the original minilang and covered by a temporary RED/GREEN test before removal, and the accounting component's rate test suite passes unchanged.
@mridulpathak
mridulpathak merged commit e4fb4b7 into apache:trunk Sep 15, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant