Previous     Contents     Index     Next     
iPlanet BuyerXpert 4.5 Administrator's Guide



Appendix D       Example Invoice Matching Files


This appendix contains the following sections:



Example Invoice Document

This is an example of an invoice document in the XML format of BuyerXpert:

<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE BXXMLInvoice SYSTEM '    file:/space/src/xdoc/new/BXXMLInvoice.dtd'>

<BXXMLInvoice version="1.0" xml:language="1.0" revision="1">

<Envelope>

<Sender>

<NamingAuthority>only text</NamingAuthority>

<PartnerName>only text</PartnerName>

<Password>only text</Password>

</Sender>

<Receiver>

<NamingAuthority>only text</NamingAuthority>

<PartnerName>only text</PartnerName>

</Receiver>

<TransmissionDateTime>only text</TransmissionDateTime>

<EnvelopeID>only text</EnvelopeID>

</Envelope>

<Invoice>

<InvoiceHeader>

<InvoiceNumber> 123 </InvoiceNumber>

<InvoiceDate>Oct 12, 2000 11:00 AM</InvoiceDate>

<InvoiceDescription>Some Description</InvoiceDescription>

<BuyingParty>

<Organization>

<Name>BuyerCompany</Name>

<Address>

<AddressLine1></AddressLine1>

<City></City>

<StateOrProvince></StateOrProvince>

<PostalCode></PostalCode>

<CountryCode></CountryCode>

</Address>

</Organization>

<ContactInfo>

<Contact>

<FirstName>nancy</FirstName>

<EMail>nancy</EMail>

</Contact>

</ContactInfo>

</BuyingParty>

<SellingParty>

<Organization>

<Name>tech</Name>

<Address>

<AddressLine1></AddressLine1>

<City></City>

<StateOrProvince></StateOrProvince>

<PostalCode></PostalCode>

<CountryCode></CountryCode>

</Address>

</Organization>

<ContactInfo>

<Contact>

<FirstName></FirstName>

<EMail></EMail>

</Contact>

</ContactInfo>

</SellingParty>

<CurrencyCode> USD </CurrencyCode>

<OrderTotal>800.10</OrderTotal>

<Tax>

<TaxJurisdictionCode>group_tax</TaxJurisdictionCode>

<TaxAmount>-1.36</TaxAmount>

</Tax>

<ShippingCost>21.02</ShippingCost>

<AllowanceOrCharge>

<Allowance>

<AllowanceType>group_dcap</AllowanceType>

<Amount>-6.84</Amount>

<Description></Description>

</Allowance>

</AllowanceOrCharge>

</InvoiceHeader>

<InvoiceDetail>

<LineItemInvoice>

<LineItemNumber> 1 </LineItemNumber>

<QuantityOrdered>

<Quantity>1</Quantity>

<UnitOfMeasure CodeValue="code">EA</UnitOfMeasure>

</QuantityOrdered>

<Part>

<PartNumber>

<SellerPartNumber>470582</SellerPartNumber>

</PartNumber>

<ItemDescription>

<Description>pencil</Description>

</ItemDescription>

<URL></URL>

</Part>

<InvoiceLineItemNumber> 1 </InvoiceLineItemNumber>

<NetQuantity>

<Quantity>1</Quantity>

<UnitOfMeasure CodeValue="code">EA</UnitOfMeasure>

</NetQuantity>

<PurchaseOrderRef>

<OrderNumber>xyz0000000002abc</OrderNumber>

<OrderDate> 02/19/2000 </OrderDate>

</PurchaseOrderRef>

<Cost>

<ItemPrice>582.10</ItemPrice>

<ExtendedPrice>582.10</ExtendedPrice>

<ShippingCost>123.18</ShippingCost>

<Tax>

<TaxJurisdictionCode>total_line_tax</TaxJurisdictionCode>

<TaxAmount>113.20</TaxAmount>

</Tax>

<AllowanceOrCharge>

<Allowance>

<AllowanceType>line_dcap</AllowanceType>

<Amount>-30.20</Amount>

<Description></Description>

</Allowance>

</AllowanceOrCharge>

</Cost>

<ContractNumber> Contract123 </ContractNumber>

</LineItemInvoice>

</InvoiceDetail>

<InvoiceSummary>

<TotalLineItems>0</TotalLineItems>

<TotalAmount>0</TotalAmount>

</InvoiceSummary>

</Invoice>

</BXXMLInvoice>



Example Invoice File Format



This is the DTD format of the BuyerXpert invoice XML format:

<!ENTITY % OBIXMLLibrary SYSTEM "OBIXMLLibrary.dtd">

<!ENTITY % LineItemInvoiceRef "InvoiceLineItemNumber , NetQuantity ,

PurchaseOrderRef , Cost ,

ContractNumber? ,

OtherAmount1? , OtherAmount2? , OtherAmount3? ,

OtherAmount4? , OtherAmount5? , OtherAmount6? ,

OtherDate1? , OtherDate2? ,

Other1? , Other2? , Other3? ">

<!ELEMENT PurchaseOrderLineRef (PurchaseOrderRef , LineItemNumber )>

%OBIXMLLibrary;

<!ELEMENT BXXMLInvoice (Envelope , Invoice , SenderDigitalSignature?)>

<!ATTLIST BXXMLInvoice version CDATA #IMPLIED

xml:language CDATA #IMPLIED

revision CDATA #IMPLIED >

<!ELEMENT Invoice (InvoiceHeader , InvoiceDetail , InvoiceSummary)>

<!ELEMENT InvoiceHeader (InvoiceNumber , InvoiceDate , InvoiceDescription ,

BuyingParty , SellingParty ,

CurrencyCode , OrderTotal ,

Tax? , ShippingCost? , AllowanceOrCharge? ,

InvoiceURL? ,

OtherDate1? , OtherDate2? ,

Other1? , Other2? , Other3? , Other4? , Other5? ,

OtherAmount1? , OtherAmount2? , OtherAmount3?)>

<!ELEMENT InvoiceDetail (LineItemInvoice)+>

<!ELEMENT InvoiceSummary %OrderSummaryRef;>

<!--Date of Invoice for this order-->

<!ELEMENT InvoiceDate (#PCDATA)>

<!--Contains supplier URL for order status information-->

<!ELEMENT InvoiceURL (#PCDATA)>

<!ELEMENT LineItemInvoice (%LineItemRef; , %LineItemInvoiceRef;)>

<!ELEMENT InvoiceNumber (#PCDATA)>

<!ELEMENT InvoiceDescription (#PCDATA)>

<!ELEMENT OtherDate1 (#PCDATA)>

<!ELEMENT OtherDate2 (#PCDATA)>

<!ELEMENT Other1 (#PCDATA)>

<!ELEMENT Other2 (#PCDATA)>

<!ELEMENT Other3 (#PCDATA)>

<!ELEMENT Other4 (#PCDATA)>

<!ELEMENT Other5 (#PCDATA)>

<!ELEMENT OtherAmount1 (#PCDATA)>

<!ELEMENT OtherAmount2 (#PCDATA)>

<!ELEMENT OtherAmount3 (#PCDATA)>

<!ELEMENT OtherAmount4 (#PCDATA)>

<!ELEMENT OtherAmount5 (#PCDATA)>

<!ELEMENT OtherAmount6 (#PCDATA)>

<!ELEMENT OrderTotal (#PCDATA)>

<!ELEMENT NetQuantity %QuantityRef;>

<!ELEMENT InvoiceLineItemNumber (#PCDATA )>


Previous     Contents     Index     Next     
Copyright © 2002 Sun Microsystems, Inc. All rights reserved.

Last Updated June 10, 2002