WIP
This commit is contained in:
parent
acc20ee772
commit
16ee787f66
@ -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() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user