Definition Type: ComplexType
Name: PaymentTerms
Namespace: http://www.openapplications.org/oagis
Containing Schema: Components.xsd
Abstract
Documentation:
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.
Collapse XSD Schema Diagram:
Drilldown into UserArea in schema meta_xsd Drilldown into DiscountPercent in schema components_xsd Drilldown into DiscountAmount in schema components_xsd Drilldown into DayOfMonth in schema components_xsd Drilldown into ProximoNumberMonth in schema components_xsd Drilldown into NumberOfDays in schema components_xsd Drilldown into PaymentTermsDate in schema components_xsd Drilldown into DueDate in schema components_xsd Drilldown into LineNumber in schema components_xsd Drilldown into Description in schema components_xsd Drilldown into TermId in schema components_xsdXSD Diagram of PaymentTerms in schema components_xsd (Open Applications Group (OAGIS))
Collapse XSD Schema Code:
<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>
Collapse Child Elements:
Name Type Min Occurs Max Occurs
TermId oa:TermId 0 (1)
Description oa:Description 0 unbounded
LineNumber oa:LineNumber 0 (1)
DueDate oa:DueDate 0 (1)
PaymentTermsDate oa:PaymentTermsDate 0 (1)
NumberOfDays oa:NumberOfDays 0 (1)
ProximoNumberMonth oa:ProximoNumberMonth 0 (1)
DayOfMonth oa:DayOfMonth 0 (1)
DiscountAmount oa:DiscountAmount 0 (1)
DiscountPercent oa:DiscountPercent 0 (1)
UserArea oa:UserArea 0 (1)
Collapse Derivation Tree:
Collapse References:
oa:PaymentTerms