} while (repeat);
if (mat.getMaterialProperties(material) == false)
{
mat.setBaseUom(JUtility.getDefaultValue(base_uom, mat.getBaseUom(), ""));
if (mat.create() == false)
{
result = false;
setErrorMessage("Material " + material + " create error. " + mat.getErrorMessage());
} else
{