Skip to content

Commit

Permalink
#32
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptolopes committed Oct 29, 2019
1 parent 86a3e7f commit f90a176
Showing 1 changed file with 22 additions and 9 deletions.
31 changes: 22 additions & 9 deletions XSD/SAFTAO1.01_01.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -982,8 +982,21 @@
<xs:element name="TaxPointDate" type="SAFdateType" />
<xs:element name="TaxVerificationDate" type="SAFdateType" />
<xs:element name="Telephone" type="SAFAOtextTypeMandatoryMax20Car" />
<xs:element name="TotalCredit" type="SAFmonetaryType" />
<xs:element name="TotalDebit" type="SAFmonetaryType" />
<xs:element name="TotalCredit" type="SAFmonetaryType">
<xs:annotation>
<xs:documentation>
Deve conter a soma dos elementos CreditAmount dos documentos cujo os elementos InvoiceStatus, WorkStatus ou PaymentStatus seja igual a N.
Em GeneralLedgerEntries deve conter a soma de todos os elementos CreditAmount.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="TotalDebit" type="SAFmonetaryType">
<xs:annotation>
<xs:documentation>
Deve conter a soma dos elementos DebitAmount dos documentos cujo os elementos InvoiceStatus, WorkStatus ou PaymentStatus seja igual a N.
Em GeneralLedgerEntries deve conter a soma de todos os elementos DebitAmount.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="TotalQuantityIssued" type="SAFdecimalType" />
<xs:element name="TransactionDate" type="SAFdateType" />
<xs:element name="TransactionID" type="SAFAOTransactionID" />
Expand Down Expand Up @@ -1577,6 +1590,13 @@
<xs:minInclusive value="0.00" />
</xs:restriction>
</xs:simpleType>
<!-- Elementos com Duas Casas Decimais -->
<xs:simpleType name="SAFMonetaryType2DecimalPlaces">
<xs:restriction base="xs:decimal">
<xs:pattern value="\d+(\.\d{2})" />
<xs:minInclusive value="0.00" />
</xs:restriction>
</xs:simpleType>
<!-- TIPOS DE DADOS BASE SAFT Angola -->
<!-- Codigo Postal de Portugal -->
<xs:simpleType name="PostalCodePT">
Expand All @@ -1592,13 +1612,6 @@
<xs:maxLength value="10" />
</xs:restriction>
</xs:simpleType>
<!-- Campos Monetários com Duas Casas Decimais -->
<xs:simpleType name="SAFMonetaryType2DecimalPlaces">
<xs:restriction base="xs:decimal">
<xs:pattern value="\d+(\.\d{2})" />
<xs:minInclusive value="0.00" />
</xs:restriction>
</xs:simpleType>
<!-- Periodo do movimento contabilistico -->
<xs:simpleType name="SAFAOAccountingPeriod">
<xs:restriction base="xs:integer">
Expand Down

0 comments on commit f90a176

Please sign in to comment.