This commit is contained in:
SiboVG 2023-03-22 11:45:20 +01:00
parent acc20ee772
commit 16ee787f66

View File

@ -44,6 +44,7 @@ public class MaterialDTO {
density = theDensity; density = theDensity;
type = theType; type = theType;
uom = theUom; uom = theUom;
type.getORMaterialType().getUnitGroup().setDefaultUnit(getUom());
} }
public String getName() { public String getName() {
@ -68,6 +69,7 @@ public class MaterialDTO {
public void setType(final MaterialTypeDTO theType) { public void setType(final MaterialTypeDTO theType) {
type = theType; type = theType;
type.getORMaterialType().getUnitGroup().setDefaultUnit(getUom());
} }
public String getUom() { public String getUom() {
@ -76,6 +78,7 @@ public class MaterialDTO {
public void setUom(final String theUom) { public void setUom(final String theUom) {
uom = theUom; uom = theUom;
type.getORMaterialType().getUnitGroup().setDefaultUnit(theUom);
} }
Material asMaterial() { Material asMaterial() {