OASIS Universal Business Language (UBL) TC

 View Only

Re: [ubl] Preliminary test build (PRD2)

  • 1.  Re: [ubl] Preliminary test build (PRD2)

    Posted 07-09-2006 22:36
     MHonArc v2.5.0b2 -->
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    

    ubl message

    [Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


    Subject: Re: [ubl] Preliminary test build (PRD2)


    At 2006-07-09 10:13 -0700, jon.bosak@sun.com wrote:
    >  - The validate directory needs revised sample instances (the
    >    current ones are from 1.0) and therefore does not work yet
    
    Here is an invoice instance I've cobbled together 
    for my training from a UBL 1.0 example that 
    validates with the January UBL 2 models ... but 
    I'm unsure if some of my arbitrary choices made 
    to make it valid are appropriate business choices 
    for the scenario for which it was originally 
    created.  Can someone working on the business 
    choices for UBL please review the following for appropriateness?
    
    Thanks!
    
    . . . . . . . . . . . . . Ken
    
    <?xml version="1.0" encoding="US-ASCII"?>
    <Invoice xmlns="urn:oasis:names:draft:ubl:schema:xsd:Invoice-2"
    xmlns:cac="urn:oasis:names:draft:ubl:schema:xsd:CommonAggregateComponents-2"
    xmlns:cbc="urn:oasis:names:draft:ubl:schema:xsd:CommonBasicComponents-2">
       <cbc:ID>9834562</cbc:ID>
       <cbc:CopyIndicator>false</cbc:CopyIndicator>
       <cbc:IssueDate>2003-03-14</cbc:IssueDate>
       <cbc:TaxPointDate>2003-03-14</cbc:TaxPointDate>
       <cbc:DocumentCurrencyCode>USD</cbc:DocumentCurrencyCode>
       <cac:OrderReference>
         <cbc:ID>20031234-1</cbc:ID>
         <cbc:IssueDate>2003-02-02</cbc:IssueDate>
         <cbc:CustomerReference>154135798</cbc:CustomerReference>
       </cac:OrderReference>
       <cac:CreditorSupplierParty>
         <cac:Party>
           <cac:PartyName>
             <cbc:Name>Joes Office Supply</cbc:Name>
           </cac:PartyName>
           <cac:Address>
             <cbc:StreetName>Lakeshore Dr</cbc:StreetName>
             <cbc:BuildingNumber>32 W.</cbc:BuildingNumber>
             <cbc:CityName>Chicago</cbc:CityName>
             <cbc:PostalZone>60022</cbc:PostalZone>
             <cbc:CountrySubentityCode>IL</cbc:CountrySubentityCode>
           </cac:Address>
         </cac:Party>
         <cac:AccountsContact>
           <cbc:Name>Melanie Farber</cbc:Name>
           <cbc:Telephone>(312) 865-2199</cbc:Telephone>
         </cac:AccountsContact>
       </cac:CreditorSupplierParty>
       <cac:DebtorCustomerParty>
         <cac:Party>
           <cac:PartyName>
             <cbc:Name>Bills Microdevices</cbc:Name>
           </cac:PartyName>
           <cac:Address>
             <cbc:StreetName>Spring St.</cbc:StreetName>
             <cbc:BuildingNumber>413</cbc:BuildingNumber>
             <cbc:CityName>Elgin</cbc:CityName>
             <cbc:PostalZone>60123</cbc:PostalZone>
             <cbc:CountrySubentityCode>IL</cbc:CountrySubentityCode>
           </cac:Address>
         </cac:Party>
       </cac:DebtorCustomerParty>
       <cac:Delivery>
         <cbc:RequestedDeliveryDateTime>2003-02-14T14:00:00</cbc:RequestedDeliveryDateTime>
         <cac:DeliveryAddress>
           <cbc:StreetName>Spring St</cbc:StreetName>
           <cbc:BuildingNumber>413 N</cbc:BuildingNumber>
           <cbc:CityName>Elgin</cbc:CityName>
           <cbc:PostalZone>60123</cbc:PostalZone>
           <cbc:CountrySubentityCode>IL</cbc:CountrySubentityCode>
         </cac:DeliveryAddress>
       </cac:Delivery>
       <cac:PaymentTerms>
         <cbc:Note>Terms:  All payments due within 30 
    days of Invoice Date.  </cbc:Note>
         <cbc:ReferenceEventCode>X</cbc:ReferenceEventCode>
       </cac:PaymentTerms>
       <cac:TaxTotal>
         <cbc:TaxAmount currencyID="USD">47.95</cbc:TaxAmount>
         <cbc:TaxEvidenceIndicator>false</cbc:TaxEvidenceIndicator>
         <cac:TaxSubTotal>
           <cbc:TaxableAmount currencyID="USD">479.50</cbc:TaxableAmount>
           <cbc:TaxAmount currencyID="USD">47.95</cbc:TaxAmount>
           <cac:TaxCategory>
             <cbc:ID>STD</cbc:ID>
             <cbc:Percent>10.0</cbc:Percent>
             <cac:TaxScheme>
               <cbc:TaxTypeCode>VAT</cbc:TaxTypeCode>
             </cac:TaxScheme>
           </cac:TaxCategory>
         </cac:TaxSubTotal>
       </cac:TaxTotal>
       <cac:LegalTotal>
         <cbc:LineExtensionAmount currencyID="USD">479.50</cbc:LineExtensionAmount>
         <cbc:TaxExclusiveAmount currencyID="USD">479.50</cbc:TaxExclusiveAmount>
         <cbc:TaxInclusiveAmount currencyID="USD">527.45</cbc:TaxInclusiveAmount>
         <cbc:ToBePaidAmount currencyID="USD">527.45</cbc:ToBePaidAmount>
       </cac:LegalTotal>
       <cac:InvoiceLine>
         <cbc:ID>1</cbc:ID>
         <cbc:InvoicedQuantity unitCode="PK">5</cbc:InvoicedQuantity>
         <cbc:LineExtensionAmount currencyID="USD">12.50</cbc:LineExtensionAmount>
         <cac:OrderLineReference>
           <cbc:LineID>1</cbc:LineID>
         </cac:OrderLineReference>
         <cac:Item>
           <cbc:Description>Pencils, box #2 red</cbc:Description>
           <cbc:HazardousRiskIndicator>false</cbc:HazardousRiskIndicator>
           <cac:BuyersItemIdentification>
             <cbc:ID>1</cbc:ID>
           </cac:BuyersItemIdentification>
           <cac:SellersItemIdentification>
             <cbc:ID>32145-12</cbc:ID>
           </cac:SellersItemIdentification>
         </cac:Item>
         <cac:BasePrice>
           <cbc:PriceAmount currencyID="USD">2.50</cbc:PriceAmount>
         </cac:BasePrice>
       </cac:InvoiceLine>
       <cac:InvoiceLine>
         <cbc:ID>2</cbc:ID>
         <cbc:InvoicedQuantity unitCode="PK">12</cbc:InvoicedQuantity>
         <cbc:LineExtensionAmount currencyID="USD">360.00</cbc:LineExtensionAmount>
         <cac:OrderLineReference>
           <cbc:LineID>2</cbc:LineID>
         </cac:OrderLineReference>
         <cac:Item>
           <cbc:Description>Photocopy Paper- case</cbc:Description>
           <cbc:HazardousRiskIndicator>false</cbc:HazardousRiskIndicator>
           <cac:BuyersItemIdentification>
             <cbc:ID>2</cbc:ID>
           </cac:BuyersItemIdentification>
           <cac:SellersItemIdentification>
             <cbc:ID>78-697-24</cbc:ID>
           </cac:SellersItemIdentification>
         </cac:Item>
         <cac:BasePrice>
           <cbc:PriceAmount currencyID="USD">30.00</cbc:PriceAmount>
         </cac:BasePrice>
       </cac:InvoiceLine>
       <cac:InvoiceLine>
         <cbc:ID>3</cbc:ID>
         <cbc:InvoicedQuantity unitCode="CT">10</cbc:InvoicedQuantity>
         <cbc:LineExtensionAmount currencyID="USD">50.00</cbc:LineExtensionAmount>
         <cac:OrderLineReference>
           <cbc:LineID>3</cbc:LineID>
         </cac:OrderLineReference>
         <cac:Item>
           <cbc:Description>Pens, box, blue finepoint</cbc:Description>
           <cbc:HazardousRiskIndicator>false</cbc:HazardousRiskIndicator>
           <cac:BuyersItemIdentification>
             <cbc:ID>3</cbc:ID>
           </cac:BuyersItemIdentification>
           <cac:SellersItemIdentification>
             <cbc:ID>091356-3</cbc:ID>
           </cac:SellersItemIdentification>
         </cac:Item>
         <cac:BasePrice>
           <cbc:PriceAmount currencyID="USD">5.00</cbc:PriceAmount>
         </cac:BasePrice>
       </cac:InvoiceLine>
       <cac:InvoiceLine>
         <cbc:ID>4</cbc:ID>
         <cbc:InvoicedQuantity unitCode="CT">3</cbc:InvoicedQuantity>
         <cbc:LineExtensionAmount currencyID="USD">37.50</cbc:LineExtensionAmount>
         <cac:OrderLineReference>
           <cbc:LineID>4</cbc:LineID>
         </cac:OrderLineReference>
         <cac:Item>
           <cbc:Description>Tape, 1in caset</cbc:Description>
           <cbc:HazardousRiskIndicator>false</cbc:HazardousRiskIndicator>
           <cac:BuyersItemIdentification>
             <cbc:ID>4</cbc:ID>
           </cac:BuyersItemIdentification>
           <cac:SellersItemIdentification>
             <cbc:ID>543-165-1</cbc:ID>
           </cac:SellersItemIdentification>
         </cac:Item>
         <cac:BasePrice>
           <cbc:PriceAmount currencyID="USD">12.50</cbc:PriceAmount>
         </cac:BasePrice>
       </cac:InvoiceLine>
       <cac:InvoiceLine>
         <cbc:ID>5</cbc:ID>
         <cbc:InvoicedQuantity unitCode="CT">10</cbc:InvoicedQuantity>
         <cbc:LineExtensionAmount currencyID="USD">10.00</cbc:LineExtensionAmount>
         <cac:OrderLineReference>
           <cbc:LineID>5</cbc:LineID>
         </cac:OrderLineReference>
         <cac:Item>
           <cbc:Description>Staples, wire, box</cbc:Description>
           <cbc:HazardousRiskIndicator>false</cbc:HazardousRiskIndicator>
           <cac:BuyersItemIdentification>
             <cbc:ID>5</cbc:ID>
           </cac:BuyersItemIdentification>
           <cac:SellersItemIdentification>
             <cbc:ID>984567-12</cbc:ID>
           </cac:SellersItemIdentification>
         </cac:Item>
         <cac:BasePrice>
           <cbc:PriceAmount currencyID="USD">1.00</cbc:PriceAmount>
         </cac:BasePrice>
       </cac:InvoiceLine>
       <cac:InvoiceLine>
         <cbc:ID>6</cbc:ID>
         <cbc:InvoicedQuantity unitCode="PK">5</cbc:InvoicedQuantity>
         <cbc:LineExtensionAmount currencyID="USD">4.50</cbc:LineExtensionAmount>
         <cac:OrderLineReference>
           <cbc:LineID>6</cbc:LineID>
         </cac:OrderLineReference>
         <cac:Item>
           <cbc:Description>Pens, box red felt tip </cbc:Description>
           <cbc:HazardousRiskIndicator>false</cbc:HazardousRiskIndicator>
           <cac:BuyersItemIdentification>
             <cbc:ID>6</cbc:ID>
           </cac:BuyersItemIdentification>
           <cac:SellersItemIdentification>
             <cbc:ID>091344-5</cbc:ID>
           </cac:SellersItemIdentification>
         </cac:Item>
         <cac:BasePrice>
           <cbc:PriceAmount currencyID="USD">22.50</cbc:PriceAmount>
         </cac:BasePrice>
       </cac:InvoiceLine>
       <cac:InvoiceLine>
         <cbc:ID>7</cbc:ID>
         <cbc:InvoicedQuantity unitCode="ZZ">10</cbc:InvoicedQuantity>
         <cbc:LineExtensionAmount currencyID="USD">5.00</cbc:LineExtensionAmount>
         <cac:OrderLineReference>
           <cbc:LineID>7</cbc:LineID>
         </cac:OrderLineReference>
         <cac:Item>
           <cbc:Description>Mousepad, blue</cbc:Description>
           <cbc:HazardousRiskIndicator>false</cbc:HazardousRiskIndicator>
           <cac:BuyersItemIdentification>
             <cbc:ID>7</cbc:ID>
           </cac:BuyersItemIdentification>
           <cac:SellersItemIdentification>
             <cbc:ID>21457-3</cbc:ID>
           </cac:SellersItemIdentification>
         </cac:Item>
         <cac:BasePrice>
           <cbc:PriceAmount currencyID="USD">.50</cbc:PriceAmount>
         </cac:BasePrice>
       </cac:InvoiceLine>
    </Invoice>
    
    
    --
    Registration open for UBL training:    Montr�al, Canada 2006-08-07
    Also for XSL-FO/XSLT training:    Minneapolis, MN 2006-07-31/08-04
    Also for UBL/XML/XSLT/XSL-FO training: Varo,Denmark 06-09-25/10-06
    World-wide corporate, govt. & user group UBL, XSL, & XML training.
    G. Ken Holman                 mailto:gkholman@CraneSoftwrights.com
    Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/o/
    Box 266, Kars, Ontario CANADA K0A-2E0    +1(613)489-0999 (F:-0995)
    Male Cancer Awareness Aug'05  http://www.CraneSoftwrights.com/o/bc
    Legal business disclaimers:  http://www.CraneSoftwrights.com/legal
    
    


    [Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]