use of de.metas.adempiere.model.I_C_Postal in project metasfresh-webui-api by metasfresh.
the class AddressPostalLookupDescriptor method getLookupValueFromLocation.
public IntegerLookupValue getLookupValueFromLocation(final I_C_Location locationRecord) {
final I_C_Postal postalRecord = locationRecord.getC_Postal();
if (postalRecord == null || postalRecord.getC_Postal_ID() <= 0) {
return null;
}
final LookupValue countryLookupValue = countryLookup.getLookupValueById(postalRecord.getC_Country_ID());
return buildPostalLookupValue(postalRecord.getC_Postal_ID(), postalRecord.getPostal(), postalRecord.getCity(), countryLookupValue.getDisplayNameTrl());
}
Aggregations