Skip to content

Commit

Permalink
Update SAFTAO1.01_01.xsd
Browse files Browse the repository at this point in the history
- Added a new pattern to the element HashControl
- Changed the type of SoftwareValidationNumber element.
  • Loading branch information
cryptolopes committed Oct 1, 2019
1 parent 056ab41 commit a55f324
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions XSD/SAFTAO1.01_01.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -889,7 +889,7 @@
<xs:element name="GLPostingDate" type="SAFdateType" />
<xs:element name="GrossTotal" type="SAFMonetaryType2DecimalPlaces" />
<xs:element name="Hash" type="SAFAOtextTypeMandatoryMax172Car" />
<xs:element name="HashControl" type="SAFAOtextTypeMandatoryMax70Car" />
<xs:element name="HashControl" type="SAFAOHashControl" />
<xs:element name="HeaderComment" type="SAFAOtextTypeMandatoryMax255Car" />
<xs:element name="IECAmount" type="SAFmonetaryType" />
<xs:element name="InputTax" type="SAFMonetaryType2DecimalPlaces"/>
Expand Down Expand Up @@ -931,7 +931,7 @@
<xs:element name="ShipFromAddress" type="AddressStructure" />
<xs:element name="ShipTo" type="ShippingPointStructure" />
<xs:element name="ShipToAddress" type="AddressStructure" />
<xs:element name="SoftwareValidationNumber" type="xs:nonNegativeInteger" />
<xs:element name="SoftwareValidationNumber" type="xs:string" />
<xs:element name="SourceDocumentID" type="SAFAOtextTypeMandatoryMax30Car" />
<xs:element name="SourceID" type="SAFAOtextTypeMandatoryMax30Car" />
<xs:element name="StartDate" type="SAFAODateSpan" />
Expand Down Expand Up @@ -1742,6 +1742,13 @@
</xs:restriction>
</xs:simpleType>
<!-- Origem do documento -->
<xs:simpleType name="SAFAOHashControl">
<xs:restriction base="xs:string">
<xs:pattern value=".+-.+" />
<xs:minLength value="1" />
<xs:maxLength value="70" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="SAFTAOSourcePayment">
<xs:annotation>
<xs:documentation>P para documento produzido na aplicacao, I para documento integrado e produzido noutra aplicacao, M para documento proveniente de recuperacao ou de emissao manual </xs:documentation>
Expand Down

0 comments on commit a55f324

Please sign in to comment.