I would be happy to provide a “self-contained” test case. I would have to send to you a pg_dump of it which would be rather large to send via email. Some of the code includes confidential business specific calc rules that I cannot release to the general public.