<xs:complexType name="PaymentTerms">
<xs:annotation>
<xs:documentation source="http://www.openapplications.org/oagis">Identifies the payment terms for an Order or Invoice. Supports the abiility to specify an absolute due date, a number of days from a start daye, a percent discount or an absolute discount. A common term like "Net30Days" is explicitly code as either a calculated DueDateTime or a PaymentTermsDateTime and NumberOfDays.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="TermId" type="Id" minOccurs="0">
<xs:annotation>
<xs:documentation source="http://www.openapplications.org/oagis">The type of payment term, actually I think this ought to be a type following the design pattern: generic element name, semantic type attribute. (e.g. Net30Days, 10Percent30Days)</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Description" type="Description" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation source="http://www.openapplications.org/oagis">A user friendly description of the Term (e.g. 10 Percent discount if payed in 30 days)</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="LineNumber" type="LineNumber" minOccurs="0">
<xs:annotation>
<xs:documentation source="http://www.openapplications.org/oagis">Identifies the number of the term for reference purposes if necessary when there are multiple Terms</xs:documentation>
</xs:annotation>
</xs:element>
<xs:choice>
<xs:sequence>
<xs:element name="DueDate" type="DateTimeAny" minOccurs="0">
<xs:annotation>
<xs:documentation source="http://www.openapplications.org/oagis">The absolute due date and time.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:sequence>
<xs:element name="PaymentTermsDate" type="DateTimeAny" minOccurs="0">
<xs:annotation>
<xs:documentation source="http://www.openapplications.org/oagis">The date and time when the payment terms go into effect. Used in conjunction with NumberOfDays</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="NumberOfDays" type="xs:positiveInteger" minOccurs="0">
<xs:annotation>
<xs:documentation source="http://www.openapplications.org/oagis">The number of days from the PaymentTermDateTime by which payment is expected.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:sequence>
<xs:element name="ProximoNumberMonth" minOccurs="0">
<xs:annotation>
<xs:documentation source="http://www.openapplications.org/oagis">The number of months occurring from the next month after the present. It must have values between "1" and "12". It is used injunction with DayOfMonth.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:positiveInteger">
<xs:minInclusive value="1" />
<xs:maxInclusive value="12" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="DayOfMonth" type="xs:positiveInteger" minOccurs="0">
<xs:annotation>
<xs:documentation source="http://www.openapplications.org/oagis">Indicates the Day of the month.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:choice>
<xs:choice>
<xs:element name="DiscountAmount" type="Amount" minOccurs="0">
<xs:annotation>
<xs:documentation source="http://www.openapplications.org/oagis">The absolute discount amount due if payed by DueDateTime</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="DiscountPercent" type="Quantity" minOccurs="0">
<xs:annotation>
<xs:documentation source="http://www.openapplications.org/oagis">The percent discount if payed by DueDateTime</xs:documentation>
</xs:annotation>
</xs:element>
</xs:choice>
<xs:element ref="UserArea" minOccurs="0" />
</xs:sequence>
</xs:complexType>
|