Skip to content

Commit

Permalink
Added profile name zu Factur-X aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
phax committed Dec 5, 2024
1 parent 68f715b commit bea1dfd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,8 @@ I hope that with the introduction of PINT, the versioning problem will be solved

# News and noteworthy

* v3.2.3 - work in progress
* Fixed Factur-X VES display name to include the profile name as well
* v3.2.2 - 2024-12-05
* Updated to XRechnung 3.0.2 Schematron Rules 2.2.0
* Added Peppol November 2024 release (Billing 3.0.18 and Upgrade 3.0.14)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,16 @@ public static DVRCoordinate getMappedFacturXVESID (@Nonnull final DVRCoordinate
}

private static void _registerFacturXAlias (@Nonnull final IValidationExecutorSetRegistry <IValidationSourceXML> aRegistry,
@Nonnull final EZugferdProfile eProfile,
@Nonnull final ValidationExecutorSet <IValidationSourceXML> aVES)
{
final DVRCoordinate aFacturXVESID = getMappedFacturXVESID (aVES.getID ());
aRegistry.registerValidationExecutorSet (new ValidationExecutorSetAlias <> (aFacturXVESID,
"Factur-X " +
aFacturXVESID.getVersionString (),
aFacturXVESID.getVersionString () +
" (" +
eProfile.getDisplayName () +
")",
aVES));
}

Expand Down Expand Up @@ -181,7 +185,7 @@ public static void initZugferd (@Nonnull final IValidationExecutorSetRegistry <I
aRegistry.registerValidationExecutorSet (aVES);

// Also register alias as Factur-X
_registerFacturXAlias (aRegistry, aVES);
_registerFacturXAlias (aRegistry, eProfile, aVES);
}

// Zugferd 2.3.2 / Factur-X 1.0.7-2
Expand Down Expand Up @@ -213,7 +217,7 @@ public static void initZugferd (@Nonnull final IValidationExecutorSetRegistry <I
aRegistry.registerValidationExecutorSet (aVES);

// Also register alias as Factur-X
_registerFacturXAlias (aRegistry, aVES);
_registerFacturXAlias (aRegistry, eProfile, aVES);
}
}
}

0 comments on commit bea1dfd

Please sign in to comment.