Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define VATRate as percentage instead of enum #228

Merged
merged 1 commit into from
Oct 26, 2022

Conversation

ue71603
Copy link
Contributor

@ue71603 ue71603 commented Aug 11, 2022

fixes #225

@ue71603 ue71603 added enhancement New feature or request documentation labels Aug 11, 2022
@ue71603 ue71603 added this to the v2.0 milestone Aug 11, 2022
@@ -273,9 +261,9 @@
<xs:documentation>iso 4217 currency code, e.g. EUR for Euro or GBP for Pound Sterling </xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="VatRate" type="VatRateEnumeration" minOccurs="0">
<xs:element name="VatRate" type="xs:decimal" minOccurs="0">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given this being a percentage. Something like 0-100 as limits?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@skinkie in Siri we have a percentage and it was also an xsd:decimal. I already had a class prepared. and there is one in DATEX II, but I thought best not to create new discrepancies. What do you think?
siri_journey-v2.0.xsd

  	<xsd:element name="Percentage" type="xsd:decimal" minOccurs="0">
  		<xsd:annotation>
  			<xsd:documentation>Percentage along link that VEHICLE has travelled.</xsd:documentation>
  		</xsd:annotation>
  	</xsd:element>

DATEXIISchema_1_0_1_0.xsd:

<xs:simpleType name="Percentage">
xs:annotation
xs:documentationA measure of percentage.</xs:documentation>
</xs:annotation>
<xs:restriction base="D2LogicalModel:Float"/>
</xs:simpleType>

@ue71603
Copy link
Contributor Author

ue71603 commented Oct 18, 2022

percentage will be done

@ue71603 ue71603 requested a review from skinkie October 18, 2022 11:35
skinkie
skinkie previously approved these changes Oct 18, 2022
@sgrossberndt sgrossberndt changed the title Switched VATRate from enum to xs:decimal Define VATRate as percentage instead of enum Oct 19, 2022
@ue71603 ue71603 requested a review from skinkie October 25, 2022 18:02
@skinkie skinkie merged commit 1ec4a8e into changes_for_v1.1 Oct 26, 2022
@ue71603 ue71603 mentioned this pull request Oct 26, 2022
@sgrossberndt sgrossberndt deleted the VATRate_as_decimal branch November 21, 2022 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc updated enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants