Skip to content

Commit

Permalink
Se agrega soporte para permitir agregar socios de negocio extranjeros
Browse files Browse the repository at this point in the history
sin documentos
  • Loading branch information
yamelsenih committed Apr 15, 2024
1 parent dfab9e5 commit c2f6d9a
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 14 deletions.
11 changes: 0 additions & 11 deletions .settings/org.eclipse.buildship.core.prefs
Original file line number Diff line number Diff line change
@@ -1,13 +1,2 @@
arguments=
auto.sync=false
build.scans.enabled=false
connection.gradle.distribution=GRADLE_DISTRIBUTION(WRAPPER)
connection.project.dir=
eclipse.preferences.version=1
gradle.user.home=
java.home=
jvm.arguments=
offline.mode=false
override.workspace.settings=false
show.console.view=false
show.executions.view=false
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ java {
}

def entityType = 'LVE'
version = System.getenv("ADEMPIERE_LIBRARY_VERSION")
version = System.getenv("ADEMPIERE_LIBRARY_VERSION") ?: "local-1.0.0"

jar {
manifest {
Expand Down
4 changes: 2 additions & 2 deletions core/src/main/java/base/org/erpya/lve/util/LVEUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public static String processBusinessPartnerValue(Properties context, int clientI
if(value.length() < 6 || value.length() > 11) {
throw new AdempiereException("@LVEInvalidBPValue@");
}
Matcher matcher = Pattern.compile("[^0-9JVEGjveg]", Pattern.CASE_INSENSITIVE | Pattern.DOTALL).matcher(value);
Matcher matcher = Pattern.compile("[^0-9JVEGXjvegx]", Pattern.CASE_INSENSITIVE | Pattern.DOTALL).matcher(value);
if(matcher.find()) {
// Error
throw new AdempiereException("@LVEInvalidBPValue@");
Expand All @@ -158,7 +158,7 @@ public static String processBusinessPartnerValue(Properties context, int clientI
}
// Default
return Optional.ofNullable(value).orElse("")
.replaceAll("[^0-9JVEGjveg]", "")
.replaceAll("[^0-9JVEGXjvegx]", "")
.toUpperCase();
}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<Migrations>
<Migration EntityType="LVE" Name="LVE Se actualiza mensaje de error para cedula" ReleaseNo="3.9.5" SeqNo="81001090">
<Step SeqNo="10" StepType="AD">
<PO AD_Table_ID="109" Action="U" Record_ID="53709" Table="AD_Message">
<Data AD_Column_ID="198" Column="MsgText" oldValue="Invalid Business Partner Value Format&#10;You should use the format [V, J, G, E][00000000]&#10;Example: V20000000 / J400000000">Invalid Business Partner Value Format
You should use the format [V, J, G, E, X (External unkow)][00000000]
Example: V20000000 / J400000000</Data>
</PO>
</Step>
<Step SeqNo="20" StepType="AD">
<PO AD_Table_ID="119" Action="U" Record_ID="0" Table="AD_Message_Trl">
<Data AD_Column_ID="342" Column="MsgText" oldValue="Formato de C.I./R.I.F No Válido&#10;Debería usarl el formato [V, J, G, E][00000000]&#10;Ejemplo: V20000000 / J400000000">Formato de C.I./R.I.F No Válido
Debería usarl el formato [V, J, G, E, X (Para Extranjeros sin Documento)][00000000]
Ejemplo: V20000000 / J400000000</Data>
<Data AD_Column_ID="6767" Column="AD_Message_ID" oldValue="53709">53709</Data>
<Data AD_Column_ID="341" Column="AD_Language" oldValue="es_MX">es_MX</Data>
</PO>
</Step>
</Migration>
</Migrations>

0 comments on commit c2f6d9a

Please sign in to comment.