Commit e1f34478 authored by Thomas Huster's avatar Thomas Huster

[17484] only change selected reason on billing system change to uvg

parent c716e4c8
Pipeline #12534 passed with stages
in 5 minutes and 16 seconds
......@@ -269,8 +269,21 @@ public class FallDetailBlatt2 extends Composite implements IUnlockable {
}
}
// auto select accident if uvg is selected
if ("UVG".equals(abrechungsMethodeStr)) {
int idx = ArrayUtils.indexOf(Reasons, FallConstants.TYPE_ACCIDENT);
if (idx > -1) {
fall.setGrund(Reasons[idx]);
int ix = cReason.indexOf(Reasons[idx]);
if (ix == -1) {
ix = 0;
}
cReason.select(ix);
}
}
}
});
// focus listener needed because view may be created BEFORE a user is active
......@@ -607,15 +620,6 @@ public class FallDetailBlatt2 extends Composite implements IUnlockable {
return;
}
String billingSystem = f.getAbrechnungsSystem();
// auto select accident if uvg is selected
if ("UVG".equals(billingSystem)) {
int idx = ArrayUtils.indexOf(Reasons, FallConstants.TYPE_ACCIDENT);
if (idx > -1) {
f.setGrund(Reasons[idx]);
}
}
form.setText(f.getLabel());
// *** set Fallbezeichnung
......@@ -629,6 +633,7 @@ public class FallDetailBlatt2 extends Composite implements IUnlockable {
}
cReason.select(ix);
String billingSystem = f.getAbrechnungsSystem();
cAbrechnung.setText(billingSystem);
// *** set startDate/EndDate
......
Markdown is supported
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