Coinvoic edi.xml

Материал из Фабиус wiki
Перейти к: навигация, поиск

<?xml version="1.0" encoding="utf-8"?>

<eDIMessage id="messageId" creationDateTime="creationDateTime"> <! --идентификатор сообщения, время сообщения-->
 <interchangeHeader> <! -- начало заголовка сообщения -->
  <sender>SenderGLN</sender>      <! --GLN отправителя сообщения-->
  <recipient>RecipientGLN</recipient>    <! --GLN получателя сообщения-->
  <documentType>COINVOIC</documentType>   <! --тип документа-->
  <creationDateTime>creationDateTimeT00:00:00.000Z</creationDateTime> <! --дата и время создания сообщения-->
  <creationDateTimeBySender>creationDateTimeBySenderT00:00:00.000Z</creationDateTimeBySender> <! --дата и время создания сообщения клиентом-->
  <isTest>1</isTest>   <! --тестовый флаг-->
 </interchangeHeader>
   <correctiveInvoice number="CoinvoicNumber" date="CoinvoicDate" type="CoinvoicType" revisionNumber="CoinvoicRevisionNumber" revisionDate="CoinvoicRevisionDate" ucdFunction="INVDOP">  
     <contractIdentificator number="contractNumber" date="contractDate" />   

<factoringEncription>FactoringEncription</factoringEncription>

     <originInvoic number="InvoicNumber" date="InvoicDate" revisionNumber="InvoicRevisionNumber" revisionDate="InvoicRevisionDate" diadocInvoicId="DiadocMessadgeId:DiadocInvoicId" ediInvoicId="EdiInvoicId" />
     <originOrder number="ordersNumber" date="ordersDate" />    

<specificationIdentificator date="SpecificationDate" number="SpecificationNumber" />

     <orderResponse number="OrderResponseNumber" date="OrderResponseDate" />    
     <despatchIdentificator number="DespatchAdviceNumber" date="DespatchDate0000" />     
     <receivingIdentificator number="ReceivingAdviceNumber" date="ReceivingDate0000" />      
     <announcementForReturns number="RetannNumber" date="RetannDate" /> 

<receivingAdviceIdentificatorInBuyerSystem number="ReceivingAdviceNumberInBuyerSystem"/>

     <blanketOrderIdentificator number="987654321" />	  

<termsOfPayment>

       <interval>Interval</interval>   
       <intervalLength>IntervalLength</intervalLength>  
     </termsOfPayment>
     <seller>
       <gln>SupplierGln</gln>      
       <organization>
         <name>SupplierName</name>       
         <inn>SupplierInn(10)</inn>       
         <kpp>SupplierKpp</kpp>      
       </organization>
       <russianAddress>       
         <regionISOCode>RegionCode</regionISOCode>
         <district>District</district>
         <city>City</city>
         <settlement>Village</settlement>
         <street>Street</street>
         <house>House</house>
         <flat>Flat</flat>
         <postalCode>PostalCode</postalCode>
       </russianAddress>
       <additionalIdentificator>SupplierCodeInBuyerSystem</additionalIdentificator>       
       <taxSystem>Simplified</taxSystem> 
       <additionalInfo>
         <phone>TelephoneNumber</phone>     
         <fax>FaxNumber</fax>     
         <bankAccountNumber>BankAccountNumber</bankAccountNumber>       
         <correspondentAccountNumber>correspondentAccountNumber</correspondentAccountNumber>       
         <bankName>BankName</bankName>       
         <BIK>BankId</BIK>       
         <nameOfCEO>ChiefName</nameOfCEO>      
       </additionalInfo>
     </seller>
     <buyer>
       <gln>BuyerGln</gln>     
       <organization>
         <name>Buyer</name>      
         <inn>BuyerInn(10)</inn>     
         <kpp>BuyerKpp</kpp>      
       </organization>
       <russianAddress>       
         <regionISOCode>RegionCode</regionISOCode>
         <district>district</district>
         <city>City</city>
         <settlement>Village</settlement>
         <street>Street</street>
         <house>House</house>
         <flat>Flat</flat>
         <postalCode>PostalCode</postalCode>
       </russianAddress>

<additionalIdentificator>12345</additionalIdentificator>

       <contactInfo>
         <CEO>
           <name>Name</name> 
           <phone>TelephoneNumber</phone> 
           <fax>FaxNumber</fax> 
           <email>Email</email> 
         </CEO>
         <accountant>
           <name>Name</name> 
           <phone>TelephoneNumber</phone> 
           <fax>FaxNumber</fax> 
           <email>Email</email> 
         </accountant>
         <salesManager>
           <name>Name</name> 
           <phone>TelephoneNumber</phone> 
           <fax>FaxNumber</fax> 
           <email>Email</email> 
         </salesManager>
         <orderContact>
           <name>Name</name> 
           <phone>TelephoneNumber</phone> 
           <fax>FaxNumber</fax> 
           <email>Email</email> 
         </orderContact>
       </contactInfo>
     </buyer>
     <invoicee>
       <gln>InvoiceeGln</gln>     
       <selfEmployed>
         <fullName>      
           <lastName>Фамилия</lastName>
           <firstName>Имя</firstName>
           <middleName>Отчество</middleName>
         </fullName>
         <inn>InvoiceeInn(12)</inn>     
       </selfEmployed>
       <russianAddress>      
         <regionISOCode>RegionCode</regionISOCode>
         <district>district</district>
         <city>City</city>
         <settlement>Village</settlement>
         <street>Street</street>
         <house>House</house>
         <flat>Flat</flat>
         <postalCode>PostalCode</postalCode>
       </russianAddress>
       <additionalInfo>
         <phone>TelephoneNumber</phone>    
         <fax>FaxNumber</fax>     
         <bankAccountNumber>BankAccountNumber</bankAccountNumber>
         <correspondentAccountNumber>correspondentAccountNumber</correspondentAccountNumber>     		  
         <bankName>BankName</bankName>
         <BIK>BankId</BIK>
         <nameOfAccountant>BookkeeperName</nameOfAccountant>       
       </additionalInfo>
     </invoicee>
     <deliveryInfo>

<railWaybill number="RailWaybillNumber" date="RailWaybillDate"/>

       <shipFrom>
         <gln>ShipperGln</gln>        
         <organization>
           <name>ShipperName</name>         
           <inn>ShipperInn(10)</inn>
           <kpp>ShipperKpp</kpp>
         </organization>
         <russianAddress>        
           <regionISOCode>RegionCode</regionISOCode>
           <district>district</district>
           <city>City</city>
           <settlement>Village</settlement>
           <street>Street</street>
           <house>House</house>
           <flat>Flat</flat>
           <postalCode>PostalCode</postalCode>
         </russianAddress>
         <additionalInfo>
           <phone>TelephoneNumber</phone>        
           <fax>FaxNumber</fax>         
           <bankAccountNumber>BankAccountNumber</bankAccountNumber>
           <bankName>BankName</bankName>
           <BIK>BankId</BIK>
           <nameOfAccountant>BookkeeperName</nameOfAccountant>      
         </additionalInfo>
       </shipFrom>
       <shipTo>
         <gln>DeliveryGln</gln>       

<localizationType>LocalizationType</localizationType>

         <organization>
           <name>DeliveryName</name>         
           <inn>DeliveryInn(10)</inn>       
           <kpp>DeliveryKpp</kpp>         
         </organization>
         <russianAddress>         
           <regionISOCode>RegionCode</regionISOCode>
           <district>district</district>
           <city>City</city>
           <settlement>Village</settlement>
           <street>Street</street>
           <house>House</house>
           <flat>Flat</flat>
           <postalCode>PostalCode</postalCode>
         </russianAddress>

<geoCoordinates>

           <latitude>Latitude</latitude>           
           <longitude>Longitude</longitude>        
         </geoCoordinates>

<businessEntityMercuryId>ShipperBusinessEntityMercuryId</businessEntityMercuryId>

         <areaEntityMercuryId>AreaEntityMercuryId</areaEntityMercuryId>   			  
         <additionalIdentificator>SupplierCodeInBuyerSystem</additionalIdentificator>
         <additionalInfo>
           <phone>TelephoneNumber</phone>       
           <fax>FaxNumber</fax>        
           <bankAccountNumber>BankAccountNumber</bankAccountNumber>
           <bankName>BankName</bankName>
           <BIK>BankId</BIK>
           <nameOfCEO>ChiefName</nameOfCEO>      
         </additionalInfo>
       </shipTo>

<ultimateCustomer>

       <gln>UltimateCustomerGln</gln>  
       <organization>
         <name>UltimateCustomerName</name>  
         <inn>UltimateCustomerInn(10)</inn>  
         <kpp>UltimateCustomerKpp</kpp>  
       </organization>
       <russianAddress>  
         <regionISOCode>RegionCode</regionISOCode>
         <district>district</district>
         <city>City</city>
         <settlement>Village</settlement>
         <street>Street</street>
         <house>House</house>
         <flat>Flat</flat>
         <postalCode>PostalCode</postalCode>
       </russianAddress>
       <additionalInfo>
         <phone>TelephoneNumber</phone> 
         <fax>FaxNumber</fax>   
         <bankAccountNumber>BankAccountNumber</bankAccountNumber>
         <bankName>BankName</bankName>
         <BIK>BankId</BIK>
         <nameOfCEO>ChiefName</nameOfCEO>   
       </additionalInfo>
     </ultimateCustomer>

<warehouseKeeper>

       <gln>WarehouseKeeperGln</gln>  
       <organization>
         <name>WarehouseKeeperName</name>  
         <inn>WarehouseKeeperInn(10)</inn>  
         <kpp>WarehouseKeeperKpp</kpp>  
       </organization>
       <russianAddress>  
         <regionISOCode>RegionCode</regionISOCode>
         <district>district</district>
         <city>City</city>
         <settlement>Village</settlement>
         <street>Street</street>
         <house>House</house>
         <flat>Flat</flat>
         <postalCode>PostalCode</postalCode>
       </russianAddress>
       <additionalInfo>
         <phone>TelephoneNumber</phone> 
         <fax>FaxNumber</fax>   
         <bankAccountNumber>BankAccountNumber</bankAccountNumber>
         <bankName>BankName</bankName>
         <BIK>BankId</BIK>
         <nameOfCEO>ChiefName</nameOfCEO>   
       </additionalInfo>
     </warehouseKeeper>

<actualDeliveryDateTime>ActualDeliveryDateTime</actualDeliveryDateTime>

     </deliveryInfo>
   <lineItems>
     <currencyISOCode>CurrencyCode</currencyISOCode>
     <lineItem>
       <gtin>GTIN</gtin>	
       <internalBuyerCode>BuyerProductId</internalBuyerCode>	
       <internalSupplierCode>SupplierProductId</internalSupplierCode>	
       <typeOfUnit>IsReturnableContainer</typeOfUnit>
       <typeOfUnit>TypeOfUnit</typeOfUnit>   
       <description>Name</description> 

<descriptionColor>Color</descriptionColor> <descriptionSize>Size</descriptionSize>

       <comment>Comment</comment> 
       <quantityBefore unitOfMeasure="MeasurementUnitCode">InvoicedQuantity.Before.Value</quantityBefore>
       <quantityAfter unitOfMeasure="MeasurementUnitCode">InvoicedQuantity.After.Value</quantityAfter>
       <quantityIncrease unitOfMeasure="MeasurementUnitCode">InvoicedQuantity.Increase</quantityIncrease>
       <quantityDecrease unitOfMeasure="MeasurementUnitCode">InvoicedQuantity.Decrease</quantityDecrease>
       <onePlaceQuantity unitOfMeasure="MeasurementUnitCode">OnePlaceQuantity</onePlaceQuantity> 

<controlIdentificationMarksBefore type="ControlIdentificationMark.Type">ControlIdentificationMark.Mark</controlIdentificationMarksBefore>

       <controlIdentificationMarksAfter type="ControlIdentificationMark.Type">ControlIdentificationMark.Mark</controlIdentificationMarksAfter> 
       <netPriceWithVAT>PriceWithVAT</netPriceWithVAT> 
       <netPriceBefore>Price.Before</netPriceBefore> 
       <netPriceAfter>Price.After</netPriceAfter> 
       <netPriceIncrease>Price.Increase</netPriceIncrease>  
       <netPriceDecrease>Price.Decrease</netPriceDecrease>	
       <netAmountBefore>PriceSummary.Before</netAmountBefore>	
       <netAmountAfter>PriceSummary.After</netAmountAfter>	
       <netAmountIncrease>PriceSummary.Increase</netAmountIncrease>	
       <netAmountDecrease>PriceSummary.Decrease</netAmountDecrease>	
       <exciseDutyBefore>ExciseTax.Before</exciseDutyBefore>	
       <exciseDutyAfter>ExciseTax.After</exciseDutyAfter>	
       <exciseDutyIncrease>ExciseTax.Increase</exciseDutyIncrease>	
       <exciseDutyDecrease>ExciseTax.Decrease</exciseDutyDecrease>	
       <vatAmountBefore>VATSummary.Before</vatAmountBefore>	
       <vatAmountAfter>VATSummary.After</vatAmountAfter>	
       <vatAmountIncrease>VATSummary.Increase</vatAmountIncrease>	
       <vatAmountDecrease>VATSummary.Decrease</vatAmountDecrease>	
       <amountBefore>PriceSummaryWithVAT.Before</amountBefore>	
       <amountAfter>PriceSummaryWithVAT.After</amountAfter>	
       <amountIncrease>PriceSummaryWithVAT.Increase</amountIncrease>	
       <amountDecrease>PriceSummaryWithVAT.Decrease</amountDecrease>	
       <vatRateBefore>VATRate.Before</vatRateBefore>	
       <vatRateAfter>VATRate.After</vatRateAfter>	
       <customsDeclarationNumber>CustomDeclarationNumbers</customsDeclarationNumber> 
       <countryOfOriginISOCode>CountriesOfOriginCode</countryOfOriginISOCode> 
     </lineItem>         
     <totalSumExcludingTaxesDecrease>InvoicTaxableTotal.Decrease</totalSumExcludingTaxesDecrease> 
     <totalSumExcludingTaxesIncrease>InvoicTaxableTotal.Increase</totalSumExcludingTaxesIncrease> 
     <totalVATAmountDecrease>InvoicTotalVAT.Decrease</totalVATAmountDecrease>	
     <totalVATAmountIncrease>InvoicTotalVAT.Increase</totalVATAmountIncrease>	
     <totalAmountDecrease>InvoicTotalWithVAT.Decrease</totalAmountDecrease>	
     <totalAmountIncrease>InvoicTotalWithVAT.Increase</totalAmountIncrease>	
     <totalSumExcludingTaxesForIVDecrease documentNumber="CoinvoicNumber">InvoicTaxableTotalForIV.Decrease</totalSumExcludingTaxesForIVDecrease>	
     <totalSumExcludingTaxesForIVIncrease documentNumber="CoinvoicNumber">InvoicTaxableTotalForIV.Increase</totalSumExcludingTaxesForIVIncrease>	
     <totalVATAmountForIVDecrease documentNumber="CoinvoicNumber">InvoicTotalVATForIV.Decrease</totalVATAmountForIVDecrease>	
     <totalVATAmountForIVIncrease documentNumber="CoinvoicNumber">InvoicTotalVATForIV.Increase</totalVATAmountForIVIncrease>	
     <totalAmountForIVDecrease documentNumber="CoinvoicNumber">InvoicTotalWithVATForIV.Decrease</totalAmountForIVDecrease>	
     <totalAmountForIVIncrease documentNumber="CoinvoicNumber">InvoicTotalWithVATForIV.Increase</totalAmountForIVIncrease>	
   </lineItems>
 </correctiveInvoice>

</eDIMessage>