ItEr50S04ValidacionEProbasFuncionaisItEr49S04: [Bug #351] Fixing problem editing order line without code set yet.
This commit is contained in:
parent
a8a0ab2186
commit
872ecde9d7
2 changed files with 4 additions and 2 deletions
|
|
@ -157,7 +157,8 @@ public class HoursGroup extends BaseEntity implements Cloneable,
|
|||
|
||||
private HoursGroup(OrderLine parentOrderLine) {
|
||||
this.parentOrderLine = parentOrderLine;
|
||||
this.code = parentOrderLine.getCode();
|
||||
String code = parentOrderLine.getCode();
|
||||
this.code = code != null ? code : "";
|
||||
this.setOrderLineTemplate(null);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -339,7 +339,8 @@ public class OrderLine extends OrderElement {
|
|||
Order order = getOrder();
|
||||
if ((order != null) && (!order.isCodeAutogenerated())) {
|
||||
for (HoursGroup hoursGroup : getHoursGroups()) {
|
||||
if (hoursGroup.getCode() == null) {
|
||||
if ((hoursGroup.getCode() == null)
|
||||
|| (hoursGroup.getCode().isEmpty())) {
|
||||
hoursGroup.setCode(code);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue