Search in sources :

Example 1 with I_C_Postal

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());
}
Also used : I_C_Postal(de.metas.adempiere.model.I_C_Postal) IntegerLookupValue(de.metas.ui.web.window.datatypes.LookupValue.IntegerLookupValue) LookupValue(de.metas.ui.web.window.datatypes.LookupValue)

Aggregations

I_C_Postal (de.metas.adempiere.model.I_C_Postal)1 LookupValue (de.metas.ui.web.window.datatypes.LookupValue)1 IntegerLookupValue (de.metas.ui.web.window.datatypes.LookupValue.IntegerLookupValue)1