Skip to content
Snippets Groups Projects
Commit a59b2130 authored by Benjamin Ulrich's avatar Benjamin Ulrich :speech_balloon:
Browse files

Merge branch 'cm_1085592_ValidationZIP' into '2021.1'

[Projekt: xRM-ContactManagement][TicketNr.: 1085592][Validierung der...

See merge request xrm/basic!1194
parents 9ba193b0 4139f898
No related branches found
No related tags found
No related merge requests found
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd">
<changeSet author="s.pongratz" id="cb065db3-bf61-4d6f-8887-d71540089a41">
<update tableName="AB_COUNTRYINFO">
<column name="ADDR_FORMAT" value="〒%Z%n%S%n%B %A%n%O%n%N"/>
<where>ISO2 = 'JP'</where>
</update>
</changeSet>
</databaseChangeLog>
\ No newline at end of file
......@@ -9,4 +9,5 @@
<include relativeToChangelogFile="true" file="Grouptask/changelog.xml"/>
<include relativeToChangelogFile="true" file="Campaign/changelog.xml"/>
<include relativeToChangelogFile="true" file="Visitplan/changelog.xml"/>
<include relativeToChangelogFile="true" file="UpdateAddrFormats.xml"/>
</databaseChangeLog>
\ No newline at end of file
import("WsValidation_lib");
import("system.translate");
import("system.result");
import("system.vars");
import("PostalAddress_lib");
import("Entity_lib");
if (!WsValidationUtils.isWsEnabled(WsValidationType.get().TYPE_ZIP_NOMINATIM))
{
result.string(AddressValidationUtils.validateZipField(vars.get("$field.COUNTRY"), vars.get("$local.value")));
}
result.string(AddressValidationUtils.validateZipField(vars.get("$field.COUNTRY"), vars.get("$local.value")));
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment