Commit 073424c9 authored by thomas's avatar thomas
Browse files

[23088] fix and improve minimum payment limit filter in Rechnungslauf

parent 1d43bc59
Pipeline #22390 passed with stages
in 4 minutes and 25 seconds
......@@ -365,15 +365,14 @@ public class Rechnungslauf implements IRunnableWithProgress {
ICoverage encounterCoverage = encounter.getCoverage();
List<Konsultation> matchingKons = new ArrayList<>();
for (Konsultation k2 : kons) {
IEncounter encounter2 =
NoPoUtil.loadAsIdentifiable((Konsultation) k2, IEncounter.class).get();
ICoverage encounter2Coverage = encounter.getCoverage();
if (encounterCoverage != null && encounter2Coverage != null
&& encounterCoverage.equals(encounter2Coverage)) {
matchingKons.add(k2);
for (IBilled vr : encounter2.getBilled()) {
List<IEncounter> encounters = encounterCoverage.getEncounters();
for (IEncounter sameCoverageEncounter : encounters) {
Konsultation sameCoverageKonsultation =
Konsultation.load(sameCoverageEncounter.getId());
int index = kons.indexOf(sameCoverageKonsultation);
if (index > -1) {
matchingKons.add(kons.get(index));
for (IBilled vr : sameCoverageEncounter.getBilled()) {
sum.addMoney(vr.getTotal());
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment