奥迪AUDI EDI INVOIC发票报文详解

奥迪AUDI与其供应商之间,传输VDA标准的报文,实际在与奥迪AUDI进行的项目中传输的是EDIFACT标准的报文。对供应商而言,需要给奥迪AUDI发送INVOIC发票。

在文章如何读懂EDIFACT报文?中,我们对EDIFACT已经做了详细的解读,大家可以以此为基础,开始深入了解 INVOIC发票。

奥迪AUDI EDI INVOIC发票报文详解_第1张图片

本文将对符合EDIFACT报文标准的INVOIC发票进行解读,并将其转换为奥迪AUDI要求的EDIFACT格式。

以下是奥迪AUDI INVOIC XML示例文件经知行之桥EDI系统转换前后的对比图:
(由于文档篇幅较长,图中只截取了部分代码以作展示)

奥迪AUDI EDI INVOIC发票报文详解_第2张图片

1.INVOIC发票示例解读

利用知行之桥EDI系统可以将XML文件转换为符合国际标准的EDIFACT发票文件,再通过EDI系统发送给奥迪AUDI即可,企业可以从自己的业务系统中生成如下给出的XML文件,或者将自己的业务数据填进如下的XML文件。填写的注意事项以及每个字段的业务含义都已做了明确的注释。

<?xml version="1.0" encoding="utf8"?>
<EDI_INVOIC>
  <Version>0.0.3</Version>
  <Mode RefDes="UNB11">T/P</Mode>
  <!--文件名称标识符-->
  <MessageNameCode RefDes="BGM0101">325/326/380/381/383/386/395</MessageNameCode>
  <!--文件名称-->
  <MessageName RefDes="BGM0104">Test MessageName</MessageName>
   <!--文件编号-->
  <MessageNumber RefDes="BGM0201">Test MessageNumber</MessageNumber>
  <MessageFunctionCode RefDes="BGM03">9/7</MessageFunctionCode>
  <DocumentMessageDateTimeInfo qualifier="DTM01/DTM0101:137">
    <!--文档日期-->
    <DateOrTimeOrPeriod RefDes="DTM0102">Test DateOrTimeOrPeriod</DateOrTimeOrPeriod>
  </DocumentMessageDateTimeInfo>
  <ServiceCompletionDateTimeActual qualifier="DTM01/DTM0101:1">
    <!--交货或服务实际完成日期-->
    <DateOrTimeOrPeriod RefDes="DTM0102">Test DateOrTimeOrPeriod</DateOrTimeOrPeriod>
  </ServiceCompletionDateTimeActual>
  <HorizonStartDateTimeInfo qualifier="DTM01/DTM0101:158">
    <!--起始日期-->
    <DateOrTimeOrPeriod RefDes="DTM0102">Test DateOrTimeOrPeriod</DateOrTimeOrPeriod>
  </HorizonStartDateTimeInfo>
  <HorizonEndDateTimeInfo qualifier="DTM01/DTM0101:159">
    <!--结束日期-->
    <DateOrTimeOrPeriod RefDes="DTM0102">Test DateOrTimeOrPeriod</DateOrTimeOrPeriod>
  </HorizonEndDateTimeInfo>
  <FreeTextDetail>
    <!--文本信息-->
    <TextSubjectQualifier RefDes="FTX01">REG/TXD/ABB/AAI</TextSubjectQualifier>
    <Text2 RefDes="FTX0402">Test Text2</Text2>
    <Text3 RefDes="FTX0403">Test Text3</Text3>
    <Text4 RefDes="FTX0404">Test Text4</Text4>
    <Text5 RefDes="FTX0405">Test Text5</Text5>
    <LanguageCode RefDes="FTX05">Test LanguageCode</LanguageCode>
  </FreeTextDetail>
  <ProcessingInformation>
    <!--材料信息-->
PM/LC/OM/S
    <ProcessingIndicator RefDes="GEI02">
    </ProcessingIndicator>
  </ProcessingInformation>
  <Reference>
    <!--付款信息-->
    <PaymentReferenceNumber RefDes="RFF0102" qualifier="RFF0101:PQ">Test PaymentReferenceNumber</PaymentReferenceNumber>
    <InvoiceNumber RefDes="RFF0102" qualifier="RFF0101:IV">Test InvoiceNumber</InvoiceNumber>
    <ApplicationReferenceNumber RefDes="RFF0102" qualifier="RFF0101:AGK">Test ApplicationReferenceNumber</ApplicationReferenceNumber>
  </Reference>
  <ShipToInfo qualifier="NAD01:ST">
    <!--收货方信息-->
    <!--收货方名称、街道、编号、邮箱-->
    <PartyId RefDes="NAD0201">Test PartyId</PartyId>
10/16/91/92
    <PartyName RefDes="NAD0401">Test PartyName</PartyName>
    <PartyName4 RefDes="NAD0404">Test PartyName4</PartyName4>
    <PartyName5 RefDes="NAD0405">Test PartyName5</PartyName5>
    <PartyNameFormatCode RefDes="NAD0406">Test PartyNameFormatCode</PartyNameFormatCode>
    <StreatAndNumberOrPostOfficeBox RefDes="NAD0501">Test StreatAndNumberOrPostOfficeBox</StreatAndNumberOrPostOfficeBox>
    <StreatAndNumberOrPostOfficeBox2 RefDes="NAD0502">Test StreatAndNumberOrPostOfficeBox2</StreatAndNumberOrPostOfficeBox2>
    <CityName RefDes="NAD06">Test CityName</CityName>
    <CountrySubEntityDetail RefDes="NAD07">
      <NameCode RefDes="NAD0701">Test NameCode</NameCode>
    </CountrySubEntityDetail>
    <PostCodeIdentification RefDes="NAD08">Test PostCodeIdentification</PostCodeIdentification>
    <CountryCode RefDes="NAD09">Test CountryCode</CountryCode>
    <Reference>
      <!--第三方分配的参考编号-->
      <ReferenceNumberAssignedByThirdParty RefDes="RFF0102" qualifier="RFF0101:ANK">Test ReferenceNumberAssignedByThirdParty</ReferenceNumberAssignedByThirdParty>
      <FiscalNumber RefDes="RFF0102" qualifier="RFF0101:FC">Test FiscalNumber</FiscalNumber>
      <VATRegistrationNumber RefDes="RFF0102" qualifier="RFF0101:VA">Test VATRegistrationNumber</VATRegistrationNumber>
    </Reference>
    <ContactInformation>
      <!--运输信息-->
      <!--运输联系人ID、姓名-->
      <DepartmentOrEmployee RefDes="CTA02">
        <Identification RefDes="CTA0201">Test Identification</Identification>
        <Name RefDes="CTA0202">Test Name</Name>
      </DepartmentOrEmployee>
      <CommunicationContact>
        <!--收货方联系信息-->
        <CommunicationAddressIdentifier RefDes="COM0101">Test CommunicationAddressIdentifier</CommunicationAddressIdentifier>
        <CommunicationMeansTypeCode RefDes="COM0102">EM/FX/IM/TE</CommunicationMeansTypeCode>
      </CommunicationContact>
    </ContactInformation>
  </ShipToInfo>
  <BuyerInfo qualifier="NAD01:BY">
    <!--卖方信息-->
    <!--卖方名称、街道、邮箱、城市名、国家代码 -->
    <PartyId RefDes="NAD0201">Test PartyId</PartyId>
    <PartyName RefDes="NAD0401">Test PartyName</PartyName>
    <PartyName4 RefDes="NAD0404">Test PartyName4</PartyName4>
    <PartyName5 RefDes="NAD0405">Test PartyName5</PartyName5>
    <PartyNameFormatCode RefDes="NAD0406">Test PartyNameFormatCode</PartyNameFormatCode>
    <StreatAndNumberOrPostOfficeBox RefDes="NAD0501">Test StreatAndNumberOrPostOfficeBox</StreatAndNumberOrPostOfficeBox>
    <StreatAndNumberOrPostOfficeBox2 RefDes="NAD0502">Test StreatAndNumberOrPostOfficeBox2</StreatAndNumberOrPostOfficeBox2>
    <CityName RefDes="NAD06">Test CityName</CityName>
    <CountrySubEntityDetail RefDes="NAD07">
      <NameCode RefDes="NAD0701">Test NameCode</NameCode>
    </CountrySubEntityDetail>
    <PostCodeIdentification RefDes="NAD08">Test PostCodeIdentification</PostCodeIdentification>
    <CountryCode RefDes="NAD09">Test CountryCode</CountryCode>
    <Reference>
      <!--卖方参考号-->
      <ReferenceNumberAssignedByThirdParty RefDes="RFF0102" qualifier="RFF0101:ANK">Test ReferenceNumberAssignedByThirdParty</ReferenceNumberAssignedByThirdParty>
      <FiscalNumber RefDes="RFF0102" qualifier="RFF0101:FC">Test FiscalNumber</FiscalNumber>
      <VATRegistrationNumber RefDes="RFF0102" qualifier="RFF0101:VA">Test VATRegistrationNumber</VATRegistrationNumber>
    </Reference>
    <ContactInformation>
      <!--卖方联系ID、姓名-->
      <DepartmentOrEmployee RefDes="CTA02">
        <Identification RefDes="CTA0201">Test Identification</Identification>
        <Name RefDes="CTA0202">Test Name</Name>
      </DepartmentOrEmployee>
      <CommunicationContact>
        <!--卖方联系人ID,邮箱-->
        <CommunicationAddressIdentifier RefDes="COM0101">Test CommunicationAddressIdentifier</CommunicationAddressIdentifier>
        <CommunicationMeansTypeCode RefDes="COM0102">EM</CommunicationMeansTypeCode>
      </CommunicationContact>
    </ContactInformation>
  </BuyerInfo>
  <PaymentTerms>
    <!--折扣信息-->
    <!--折扣时间、折扣数量-->
    <PaymentTermsTypeCodeQualifier RefDes="PYT01">22</PaymentTermsTypeCodeQualifier>
    <EventTimeReferenceCode RefDes="PYT03">Test EventTimeReferenceCode</EventTimeReferenceCode>
    <TermsTimeRelationCode RefDes="PYT04">5</TermsTimeRelationCode>
    <PeriodTypeCode RefDes="PYT05">D</PeriodTypeCode>
    <PeriodCountQuantity RefDes="PYT06">123456</PeriodCountQuantity>
    <PaymentDueDateInfo qualifier="DTM01/DTM0101:140">
      <!--付款到期时间-->
      <DateOrTimeOrPeriod RefDes="DTM0102">Test DateOrTimeOrPeriod</DateOrTimeOrPeriod>
    </PaymentDueDateInfo>
    <ReferenceDateTimeInfo qualifier="DTM01/DTM0101:171">
      <!--付款时间-->
      <DateOrTimeOrPeriod RefDes="DTM0102">Test DateOrTimeOrPeriod</DateOrTimeOrPeriod>
    </ReferenceDateTimeInfo>
    <PercentageOfInvoice qualifier="PCD01/PCD0101:7">
      <!--发票比例-->
      <Percentage RefDes="PCD0102">123456</Percentage>
    </PercentageOfInvoice>
    <DiscountPercentage qualifier="PCD01/PCD0101:12">
      <!--折扣比例-->
      <Percentage RefDes="PCD0102">123456</Percentage>
    </DiscountPercentage>
    <PercentageOfTotalPayment qualifier="PCD01/PCD0101:122">
      <!--总支付额的百分比-->
      <Percentage RefDes="PCD0102">123456</Percentage>
    </PercentageOfTotalPayment>
    <DiscountAmount qualifier="MOA01/MOA0101:52">
      <!--折扣数额-->
      <MonetaryAmount RefDes="MOA0102">123456</MonetaryAmount>
      <CurrencyCode RefDes="MOA0103">Test CurrencyCode</CurrencyCode>
    </DiscountAmount>
    <InstalmentAmount qualifier="MOA01/MOA0101:262">
      <!--货币金额-->
      <MonetaryAmount RefDes="MOA0102">123456</MonetaryAmount>
      <CurrencyCode RefDes="MOA0103">Test CurrencyCode</CurrencyCode>
    </InstalmentAmount>
    <FinancialInstitutionInformation>
      <!--开户人信息-->
      <AccountHolderIdentification RefDes="FII02">
        <Identifier RefDes="FII0201">Test Identifier</Identifier>
        <Name RefDes="FII0202">Test Name</Name>
        <Name2 RefDes="FII0203">Test Name2</Name2>
      </AccountHolderIdentification>
      <InstitutionIdentification RefDes="FII03">
        <NameCode RefDes="FII0301">Test NameCode</NameCode>
        <!--分支机构信息-->
        <BranchIdentifier RefDes="FII0304">Test BranchIdentifier</BranchIdentifier>
        <BranchCodeListQualifier RefDes="FII0305">Test BranchCodeListQualifier</BranchCodeListQualifier>
        <BranchCodeListResponsibleAgencyCode RefDes="FII0306">Test BranchCodeListResponsibleAgencyCode</BranchCodeListResponsibleAgencyCode>
        <Name RefDes="FII0307">Test Name</Name>
      </InstitutionIdentification>
    </FinancialInstitutionInformation>
  </PaymentTerms>
  <TransportDetail>
    <!--运输信息-->
    <!--运输方式-->
    <MeansOfTransportJourneyIdentifier RefDes="TDT02">Test MeansOfTransportJourneyIdentifier</MeansOfTransportJourneyIdentifier>
    <TransportModeCode RefDes="TDT0301">10/12/20/23/30/40/50/60/70/80/90/C/CE/D/E/H/U</TransportModeCode>
  </TransportDetail>
  <Item>
    <!--物料信息-->
    <!--物料行号-->
    <LineItemNumber RefDes="LIN01">Test LineItemNumber</LineItemNumber>
    <BuyerItemNumber RefDes="LIN0301" qualifier="LIN0302:IN">Test BuyerItemNumber</BuyerItemNumber>
    <AdditionalProductIdentification>
      <!--供应商货号-->
      <ItemNumberIdentification RefDes="PIA02">
        <SupplierArticleNumber RefDes="PIA0201" qualifier="PIA0202:SA">Test SupplierArticleNumber</SupplierArticleNumber>
      </ItemNumberIdentification>
      <ItemNumberIdentification2 RefDes="PIA03">
        <HarmonisedSystem RefDes="PIA0301" qualifier="PIA0302:HS">Test HarmonisedSystem</HarmonisedSystem>
      </ItemNumberIdentification2>
    </AdditionalProductIdentification>
    <ItemDescription>
      <!--物料描述、语言代码-->
      <ItemDescription RefDes="IMD03">
        <Description RefDes="IMD0304">Test Description</Description>
        <Description2 RefDes="IMD0305">Test Description2</Description2>
        <LanguageCode RefDes="IMD0306">Test LanguageCode</LanguageCode>
      </ItemDescription>
    </ItemDescription>
    <QuantityDetail>
      <!--已开发票数量-->
      <InvoicedQuantity RefDes="QTY0102" qualifier="QTY0101:47">Test InvoicedQuantity</InvoicedQuantity>
      <MeasureUnitQualifier RefDes="QTY0103">Test MeasureUnitQualifier</MeasureUnitQualifier>
    </QuantityDetail>
    <QuantityDetail>
      <!--实际单位累计到日期-->
      <ActualUnitsCumulativeToDate RefDes="QTY0102" qualifier="QTY0101:372">Test ActualUnitsCumulativeToDate</ActualUnitsCumulativeToDate>
      <MeasureUnitQualifier RefDes="QTY0103">KMT/SMI</MeasureUnitQualifier>
    </QuantityDetail>
    <AdditionalInformation>
      <!--原产国-->
      <CountryOfOriginIdentifier RefDes="ALI01">Test CountryOfOriginIdentifier</CountryOfOriginIdentifier>
      <DutyRegimeTypeCode RefDes="ALI02">1/2/3</DutyRegimeTypeCode>
    </AdditionalInformation>
    <ServiceCompletionDateTimeActual qualifier="DTM01/DTM0101:1">
      <!--服务完成日期-->
      <DateOrTimeOrPeriod RefDes="DTM0102">Test DateOrTimeOrPeriod</DateOrTimeOrPeriod>
    </ServiceCompletionDateTimeActual>
    <DateOfFirstRegistration qualifier="DTM01/DTM0101:375">
      <!--首次注册日期-->
      <DateOrTimeOrPeriod RefDes="DTM0102">Test DateOrTimeOrPeriod</DateOrTimeOrPeriod>
    </DateOfFirstRegistration>
    <VehicleRegistrationNumber qualifier="GIN01:BL">
      <!--车辆注册编号-->
      <IdentityNumber RefDes="GIN0201">Test IdentityNumber</IdentityNumber>
    </VehicleRegistrationNumber>
    <SerialNumber qualifier="GIN01:BN">
      <!--序列号-->
      <IdentityNumber RefDes="GIN0201">Test IdentityNumber</IdentityNumber>
    </SerialNumber>
    <VehicleIdentityNumber qualifier="GIN01:VV">
      <!--车辆ID号-->
      <IdentityNumber RefDes="GIN0201">Test IdentityNumber</IdentityNumber>
    </VehicleIdentityNumber>
    <FreeTextDetail>
      <!--税务信息-->
      <!--文本信息,语言代码-->
      <Text RefDes="FTX0401">Test Text</Text>
      <Text2 RefDes="FTX0402">Test Text2</Text2>
      <Text3 RefDes="FTX0403">Test Text3</Text3>
      <Text4 RefDes="FTX0404">Test Text4</Text4>
      <Text5 RefDes="FTX0405">Test Text5</Text5>
      <LanguageCode RefDes="FTX05">Test LanguageCode</LanguageCode>
    </FreeTextDetail>
    <FreeTextDetail>
      <!--纳税申报信息-->
      <Text RefDes="FTX0401">Test Text</Text>
      <Text2 RefDes="FTX0402">Test Text2</Text2>
      <Text3 RefDes="FTX0403">Test Text3</Text3>
      <Text4 RefDes="FTX0404">Test Text4</Text4>
      <Text5 RefDes="FTX0405">Test Text5</Text5>
      <LanguageCode RefDes="FTX05">Test LanguageCode</LanguageCode>
    </FreeTextDetail>
    <FreeTextDetail>
      <!--基本信息-->
    </FreeTextDetail>
    <LineItemAmount qualifier="MOA01/MOA0101:203">
      <!--货币金额-->
      <MonetaryAmount RefDes="MOA0102">123456</MonetaryAmount>
      <CurrencyCode RefDes="MOA0103">Test CurrencyCode</CurrencyCode>
      <InvoiceItemAmount qualifier="MOA01/MOA0101:38">
        <MonetaryAmount RefDes="MOA0102">123456</MonetaryAmount>
        <CurrencyCode RefDes="MOA0103">Test CurrencyCode</CurrencyCode>
      </InvoiceItemAmount>
    </LineItemAmount>
    <PriceDetail>
      <!--价格信息-->
      <CalculationNetPrice RefDes="PRI0102" qualifier="PRI0101:AAA">123456</CalculationNetPrice>
      <UnitPriceBasis RefDes="PRI0105">123456</UnitPriceBasis>
      <MeasureUnitQualifier RefDes="PRI0106">Test MeasureUnitQualifier</MeasureUnitQualifier>
      <PriceDetail>
        <CalculationNetPrice RefDes="PRI0102" qualifier="PRI0101:AAA">123456</CalculationNetPrice>
        <UnitPriceBasis RefDes="PRI0105">123456</UnitPriceBasis>
        <MeasureUnitQualifier RefDes="PRI0106">Test MeasureUnitQualifier</MeasureUnitQualifier>
      </PriceDetail>
    </PriceDetail>
    <Reference>
      <!--发货通知-->
      <DespatchNoteDocumentIdentifier RefDes="RFF0102" qualifier="RFF0101:AAU">Test DespatchNoteDocumentIdentifier</DespatchNoteDocumentIdentifier>
      <ReferenceDateTimeInfo qualifier="DTM01/DTM0101:171">
        <!--发货时间-->
        <DateOrTimeOrPeriod RefDes="DTM0102">Test DateOrTimeOrPeriod</DateOrTimeOrPeriod>
      </ReferenceDateTimeInfo>
      <Reference>
        <!--交付编号-->
        <DeliveryScheduleNumber RefDes="RFF0102" qualifier="RFF0101:AAN">Test DeliveryScheduleNumber</DeliveryScheduleNumber>
      </Reference>
      <ReferenceDateTimeInfo qualifier="DTM01/DTM0101:171">
        <!--交付时间-->
        <DateOrTimeOrPeriod RefDes="DTM0102">Test DateOrTimeOrPeriod</DateOrTimeOrPeriod>
      </ReferenceDateTimeInfo>
      <Reference>
        <!--账号-->
        <AccountNumber RefDes="RFF0102" qualifier="RFF0101:ADE">Test AccountNumber</AccountNumber>
      </Reference>
      <Reference>
        <!--事件参考号-->
        <EventReferenceNumber RefDes="RFF0102" qualifier="RFF0101:AIV">Test EventReferenceNumber</EventReferenceNumber>
      </Reference>
      <ReferenceDateTimeInfo qualifier="DTM01/DTM0101:171">
        <!--参考时间-->
        <DateOrTimeOrPeriod RefDes="DTM0102">Test DateOrTimeOrPeriod</DateOrTimeOrPeriod>
      </ReferenceDateTimeInfo>
      <Reference>
        <!--客户编号-->
        <CustomerReferenceNumber RefDes="RFF0102" qualifier="RFF0101:CR">Test CustomerReferenceNumber</CustomerReferenceNumber>
      </Reference>
      <ReferenceDateTimeInfo qualifier="DTM01/DTM0101:171">
        <!--日期或时间-->
        <DateOrTimeOrPeriod RefDes="DTM0102">Test DateOrTimeOrPeriod</DateOrTimeOrPeriod>
      </ReferenceDateTimeInfo>
      <Reference>
        <!--订单号-->
        <PurchaseOrderNumber RefDes="RFF0102" qualifier="RFF0101:ON">Test PurchaseOrderNumber</PurchaseOrderNumber>
      </Reference>
      <ReferenceDateTimeInfo qualifier="DTM01/DTM0101:171">
        <!--订单时间或日期-->
        <DateOrTimeOrPeriod RefDes="DTM0102">Test DateOrTimeOrPeriod</DateOrTimeOrPeriod>
      </ReferenceDateTimeInfo>
    </Reference>
    <TaxDetail qualifier="TAX01:7">
      <!--税务信息-->
      <!--关税-->
      <DutyTaxFeeTypeType RefDes="TAX02">
        <TypeCode RefDes="TAX0201">LOC/OTH/VAT/SUR</TypeCode>
      </DutyTaxFeeTypeType>
      <DutyTaxFeeDetail RefDes="TAX05">
        <RateOfDutyOrTaxOrFee RefDes="TAX0504">Test RateOfDutyOrTaxOrFee</RateOfDutyOrTaxOrFee>
      </DutyTaxFeeDetail>
      <CategoryCode RefDes="TAX06">AA/E/H/O/S/Z/AAA/AAB/AAC/AAD/AAE/AAF/AAG/AAH/AAI/AAJ/AAK/AAL/AAM/AAN/AAO/AAP</CategoryCode>
      <PlaceOrPortOfDischarge qualifier="LOC01:11">
        <!--卸货处ID以及地点-->
        <LocationIdentification RefDes="LOC02">
          <LocationID RefDes="LOC0201">Test LocationID</LocationID>
          <LocationName RefDes="LOC0204">Test LocationName</LocationName>
        </LocationIdentification>
      </PlaceOrPortOfDischarge>
      <PlaceOfDelivery qualifier="LOC01:7">
        <!--交货处ID以及地点-->
        <LocationIdentification RefDes="LOC02">
          <LocationID RefDes="LOC0201">Test LocationID</LocationID>
          <LocationName RefDes="LOC0204">Test LocationName</LocationName>
        </LocationIdentification>
      </PlaceOfDelivery>
      <Warehouse qualifier="LOC01:18">
        <!--仓库ID以及地点-->
        <LocationIdentification RefDes="LOC02">
          <LocationID RefDes="LOC0201">Test LocationID</LocationID>
          <LocationName RefDes="LOC0204">Test LocationName</LocationName>
        </LocationIdentification>
      </Warehouse>
    </TaxDetail>
    <ShipToInfo qualifier="NAD01:ST">
      <!--发货方信息-->
      <!--发货方ID、名称、街道、邮箱、城市名称、邮编、国家代码-->
      <PartyId RefDes="NAD0201">Test PartyId</PartyId>
Test CodeListQualifier
      <Line RefDes="NAD0301">Test Line</Line>
      <PartyName RefDes="NAD0401">Test PartyName</PartyName>
      <PartyName2 RefDes="NAD0402">Test PartyName2</PartyName2>
      <PartyName3 RefDes="NAD0403">Test PartyName3</PartyName3>
      <PartyName4 RefDes="NAD0404">Test PartyName4</PartyName4>
      <PartyName5 RefDes="NAD0405">Test PartyName5</PartyName5>
      <StreatAndNumberOrPostOfficeBox RefDes="NAD0501">Test StreatAndNumberOrPostOfficeBox</StreatAndNumberOrPostOfficeBox>
      <StreatAndNumberOrPostOfficeBox2 RefDes="NAD0502">Test StreatAndNumberOrPostOfficeBox2</StreatAndNumberOrPostOfficeBox2>
      <CityName RefDes="NAD06">Test CityName</CityName>
      <CountrySubEntityDetail RefDes="NAD07">
        <NameCode RefDes="NAD0701">Test NameCode</NameCode>
      </CountrySubEntityDetail>
      <PostCodeIdentification RefDes="NAD08">Test PostCodeIdentification</PostCodeIdentification>
      <CountryCode RefDes="NAD09">Test CountryCode</CountryCode>
      <Reference>
        <!--工厂编号-->
        <PlantNumber RefDes="RFF0102" qualifier="RFF0101:PE">Test PlantNumber</PlantNumber>
      </Reference>
    </ShipToInfo>
    <AllowanceOrCharge>
      <!--津贴信息-->
      <!--津贴代码-->
      <AllowanceOrCharge RefDes="ALC01">A/C</AllowanceOrCharge>
      <SpecialServiceCode RefDes="ALC0501">Test SpecialServiceCode</SpecialServiceCode>
6/272
      <FreeTextDetail>
        <!--津贴详情-->
        <Text RefDes="FTX0401">Test Text</Text>
        <Text2 RefDes="FTX0402">Test Text2</Text2>
        <Text3 RefDes="FTX0403">Test Text3</Text3>
        <Text4 RefDes="FTX0404">Test Text4</Text4>
        <Text5 RefDes="FTX0405">Test Text5</Text5>
        <LanguageCode RefDes="FTX05">Test LanguageCode</LanguageCode>
      </FreeTextDetail>
      <AllowanceOrChargePercentage qualifier="PCD01/PCD0101:3">
        <!--货币金额调整百分比-->
        <Percentage RefDes="PCD0102">123456</Percentage>
      </AllowanceOrChargePercentage>
      <AllowanceOrChargeAmount qualifier="MOA01/MOA0101:8">
        <!--津贴数额-->
        <MonetaryAmount RefDes="MOA0102">123456</MonetaryAmount>
        <CurrencyCode RefDes="MOA0103">Test CurrencyCode</CurrencyCode>
      </AllowanceOrChargeAmount>
    </AllowanceOrCharge>
    <TermsOfDeliveryOrTransport>
      <!--装运港船上交货-->
      <DeliveryOrTransportCode RefDes="TOD0301">FOB</DeliveryOrTransportCode>
      <PlaceOfTermsOfDelivery qualifier="LOC01:1">
        <!--交货条款地点-->
        <LocationIdentification RefDes="LOC02">
          <LocationID RefDes="LOC0201">Test LocationID</LocationID>
          <LocationName RefDes="LOC0204">Test LocationName</LocationName>
        </LocationIdentification>
      </PlaceOfTermsOfDelivery>
    </TermsOfDeliveryOrTransport>
  </Item>
</EDI_INVOIC>

2.奥迪AUDI 发票EDIFACT示例详解

通过知行之桥EDI系统,将上述示例XML文件进行格式转换后,得到的EDIFACT文件示例如下:

UNA:+.?*'
UNB+UNOB:3+ + +220630:1532+000000006'
UNH+1+INVOIC:D:07A:UN:EAN008'

BGM+325/326/380/381/383/386/395::272:Test MessageName+Test 
MessageNumber+9/7'
- 325 = 形式发票
- 326 = 部分发票
- 380 = 商业发票
- 381 = 贷项凭单
- 383 = 借记通知单
- 386 = 预付发票
- 395 = 寄售发票
每一个报文中以上7种标识符71- 272 = 联合汽车工业署
- Test MessageName+Test MessageNumber文件名以及文件编号
- 9 = 原件
- 7 = 复制

DTM+137:Test DateOrTimeOrPeriod:102'
- 137 = 文档日期标识符
- Test DateOrTimeOrPeriod = 文档日期
- 102 = 日期格式编码:CCYYMMDD

DTM+1:Test DateOrTimeOrPeriod:102'
- 1 = 交货或服务实际完成日期标识符
- Test DateOrTimeOrPeriod = 交货或服务实际完成日期
- 102 = 日期格式编码:CCYYMMDD

DTM+158:Test DateOrTimeOrPeriod:102'
- 158= 起始日期标识符
- Test DateOrTimeOrPeriod = 起始日期
- 102 = 日期格式编码:CCYYMMDD

DTM+159:Test DateOrTimeOrPeriod:102'    
- 159 = 结束日期标识符
- Test DateOrTimeOrPeriod = 结束日期
- 102 = 日期格式编码:CCYYMMDD

FTX+REG/TXD/ABB/AAI+++:Test Text2:Test Text3:Test Text4:Test Text5+Test LanguageCode'
- REG = 法规信息标识符
- TXD = 纳税申报标识符
- ABB = 付款条件标识符
- AAI = 基本信息标识符
每一个报文中以上4种标识符41- Test Text2:Test Text3:Test Text4:Test Text5 = 文本信息
- Test LanguageCode = 语言代码

GEI+PM/LC/OM/S+::272'
- PM = 生产材料
- LC = 物流成本
- OM = 其他材料
- S = 服务
每一个报文中以上4种标识符41- 272 = 联合汽车工业署

RFF+PQ/IV/AGK:Test PaymentReferenceNumber'
- PQ = 付款凭证标识符
- IV = 发票凭证标识符
- AGK= 申请参考编号标识符
- Test PaymentReferenceNumber = 参考编号

NAD+ST+Test PartyId::91++Test PartyName:::Test PartyName4:Test PartyName5:Test PartyNameFormatCode+Test StreetAndNumberOrPostOfficeBox:Test StreetAndNumberOrPostOfficeBox2+Test CityName+Test NameCode+Test PostCodeIdentification+Test CountryCode'
- ST = 收货方标识符
- Test PartyId = 收货方组织号
- 91= 卖方指定的标识符
- Test PartyName = 收货方名称
- Test PartyName4 = 收货方名称
- Test PartyName5 = 收货方名称
- Test PartyNameFormatCode+Test StreetAndNumberOrPostOfficeBox=收货方名称代码街道以及编号或者邮箱号
- Test StreetAndNumberOrPostOfficeBox2 = 收货方名称代码街道以及编号或者邮箱号
- Test CityName+Test NameCode+Test PostCodeIdentification+Test CountryCode = 收货方名称代码街道以及编号或者邮箱号

RFF+ANK:Test ReferenceNumberAssignedByThirdParty'
- ANK = 付款凭证标识符
- Test PaymentReferenceNumber = 第三方分配的参考编号

CTA+DL+Test Identification:Test Name'
- DL = 运输联系人标识符
- Test Identification = 运输联系人ID
- Test Name = 运输联系人姓名

COM+Test CommunicationAddressIdentifier:EM'
- Test CommunicationAddressIdentifier = 收货方联系邮箱
- EM = 邮箱标识符

NAD+SE+Test PartyId++Test PartyName:::Test PartyName4:Test PartyName5:Test PartyNameFormatCode+Test StreetAndNumberOrPostOfficeBox:Test StreetAndNumberOrPostOfficeBox2+Test CityName+Test NameCode+Test PostCodeIdentification+Test CountryCode'
- SE = 卖方标识符
- Test PartyId = 卖方组织号
- Test PartyName = 卖方名称
- Test PartyName4 = 卖方名称
- Test PartyName5 = 卖方名称
- Test PartyNameFormatCode+Test StreetAndNumberOrPostOfficeBox = 卖方名称代码街道以及编号或者邮箱号
- Test CityName = 卖方城市名称
- Test NameCode = 卖方名称
- Test PostCodeIdentification = 邮编
- Test CountryCode = 国家代码

RFF+VA:Seller's VAT number'
- VA = 增值税登记号标识符
- Seller's VAT number = 卖方增值税号

RFF+FC:Seller's tax number'
- FC = 税号标识符
- Seller's tax number = 卖方税号

RFF+ANK:Seller's reference number'
- ANK = 第三方标识符
- Seller's reference number = 卖方参考号


CTA+IC+Test Identification:Test Name'
- IC = 卖方联系信息标识符
- Test Identification = 卖方联系ID
- Test Name = 卖方联系名

COM+Test CommunicationAddressIdentifier:EM'
- Test CommunicationAddressIdentifier = 卖方联系人邮箱
- EM = 邮箱标识符

PYT+22++Test EventTimeReferenceCode+5+D+123456'
- 22 = 折扣标识符
- Test EventTimeReferenceCode = 时间标识符
- 5 = 包含2周时间的结束 参考日期
- D = 4个月期间
- 123456 = 折扣数量

DTM+140:Test DateOrTimeOrPeriod:102'
- 140 = 付款到期日标识符
- Test DateOrTimeOrPeriod= 付款到期日
- 102 = 日期或时间代码

DTM+171:Test DateOrTimeOrPeriod:102'
- 171 = 付款时间指示标识符
- Test DateOrTimeOrPeriod= 付款时间
- 102 = 日期或时间代码

PCD+7:123456'
- 7 = 发票比例标识符
- 123456= 发票比例

PCD+12:123456'
- 12= 折扣标识符
- 123456= 折扣

PCD+122:123456'
- 122 = 总支付额的百分比标识符
- 123456= 总支付额的百分比

MOA+52:123456:Test CurrencyCode'
- 52 = 折扣数额标识符
- 123456= 折扣数额
- Test CurrencyCode = 货币代码

MOA+262:123456:Test CurrencyCode'
- 262 = 分期付款金额标识符
- Test DateOrTimeOrPeriod= 分期付款时间
- Test CurrencyCode = 货币代码

TDT+12+Test MeansOfTransportJourneyIdentifier+20'
- 12 = 货物发出标识符
- Test MeansOfTransportJourneyIdentifier= 运输途径
- 20 = 火车运输

LIN+Test LineItemNumber++Test BuyerItemNumber:IN'
- Test LineItemNumber = 物料行号
- Test BuyerItemNumber= 买方物料号
- IN = 买方物料号标识符

PIA+1+Test SupplierArticleNumber:SA'
- 1 = 增加ID
- Test SupplierArticleNumber = 供应商编号
- SA = 供应商编号标识符

IMD+++:::Test Description:Test Description2:Test LanguageCode'
- Test Description = 描述
- Test Description2 = 描述2
- Test LanguageCode = 语言代码

QTY+47:Test InvoicedQuantity:Test MeasureUnitQualifier'
- 47 = 描述
- Test Description2 = 描述2
- Test LanguageCode = 语言代码


QTY+372:Test ActualUnitsCumulativeToDate:KMT/SMI'
- 372 = 描述
- Test ActualUnitsCumulativeToDate = 描述2
- KMT/SMI = 测量单位:千米/英里

ALI+Test CountryOfOriginIdentifier+3'
- Test CountryOfOriginIdentifier = 原产国ID
- 3 = 无偏好来源

DTM+1:Test DateOrTimeOrPeriod:102'
- 1 = 实际服务完成日期/时间标识符
- Test DateOrTimeOrPeriod = 实际服务完成日期/时间
- 102 = 日期标识符
DTM+375:Test DateOrTimeOrPeriod:102'
- 375 = 首次注册日期标识符
- Test DateOrTimeOrPeriod = 首次注册日期
- 102 = 日期标识符

GIN+BL+Test IdentityNumber'
- BL = 车辆注册号标识符
- Test IdentityNumber = 车辆注册号

GIN+BN+Test IdentityNumber'
- BL = 序号标识符
- Test IdentityNumber = 序号

GIN+VV+Test IdentityNumber'
- BL = 车辆ID号标识符
- Test IdentityNumber = 车辆ID号

FTX+AAR+++Test Text:Test Text2:Test Text3:Test Text4:Test Text5+Test LanguageCode'
- AAR = 付款条款标识符
- Test Text = 付款条款
- Test Text2 = 付款条款2
- Test Text3 = 付款条款3
- Test Text4 = 付款条款4
- Test Text5 = 付款条款5
- Test LanguageCode = 语言代码

MOA+203:123456:Test CurrencyCode'
- 203 = 物料行数标识符
- 123456 = 货币金额
- Test CurrencyCode = 货币代码

MOA+38:123456:Test CurrencyCode'
- 38 = 发票物料数标识符
- 123456 = 货币金额
- Test CurrencyCode = 货币代码

PRI+AAA:123456::CON:123456:Test MeasureUnitQualifier'
- AAA = 计算净值标识符
- 123456 = 价格数目
- CON = 合同价标识符
- 123456 = 单价
- Test MeasureUnitQualifier = 测量单位编码

PRI+AAB:123456::AAL:123456:Test MeasureUnitQualifier'
- AAA = 计算净值标识符
- 123456 = 价格数目
- AAL = 原始价格
- 123456 = 单价
- Test MeasureUnitQualifier = 测量单位编码

RFF+AAU:Test DespatchNoteDocumentIdentifier'
- AAU = 发货通知文件标识符
- Test DespatchNoteDocumentIdentifier = 发货通知文件ID

DTM+171:Test DateOrTimeOrPeriod:102'
- 171 = 参考日期标识符
- Test DateOrTimeOrPeriod = 参考日期
- 102 = 日期格式编码

RFF+AAN:Test DeliveryScheduleNumber'
- AAN = 发货通知文件标识符
- Test DeliveryScheduleNumber = 发货通知文件ID

DTM+171:Test DateOrTimeOrPeriod:102'
- 171 = 参考日期标识符
- Test DateOrTimeOrPeriod = 参考日期
- 102 = 日期格式编码

RFF+ADE:Test AccountNumber'
- ADE = 账号标识符
- Test AccountNumber = 账号

DTM+171:Test DateOrTimeOrPeriod:102'
- 171 = 参考日期标识符
- Test DateOrTimeOrPeriod = 参考日期
- 102 = 日期格式编码

RFF+AIV:Test EventReferenceNumber'
- AIV = 事件参考标识符
- Test EventReferenceNumber = 事件参考号

DTM+171:Test DateOrTimeOrPeriod:102'
- 171 = 参考日期标识符
- Test DateOrTimeOrPeriod = 参考日期
- 102 = 日期格式编码

RFF+CR:Test CustomerReferenceNumber'
- CR = 客户参考号标识符
- Test EventReferenceNumber = 客户参考号

RFF+ON:Test PurchaseOrderNumber'
- ON = 客户参考号订单文件标识符,买方分配
- Test EventReferenceNumber = 事件参考号

DTM+171:Test DateOrTimeOrPeriod:102'
- 171 = 参考日期标识符
- Test DateOrTimeOrPeriod = 参考日期
- 102 = 日期格式编码

TAX+7+VAT+++:::Test RateOfDutyOrTaxOrFee+S'
- 7 = 税标识符
- VAT = 增值税标识符
- Test RateOfDutyOrTaxOrFee = 税率
- S = 标准税率

LOC+11+Test LocationID:::Test LocationName'
- 11 = 卸货处标识符
- Test LocationID = 卸货处ID
- Test LocationName = 卸货处

LOC+7+Test LocationID:::Test LocationName'
- 7 = 交货地点标识符
- Test LocationID = 交货地点ID
- Test LocationName = 交货地点

LOC+18+Test LocationID:::Test LocationName'
- 18 = 仓库标识符
- Test LocationID = 仓库ID
- Test LocationName = 仓库地点

NAD+SF+Test PartyId:Test CodeListQualifier:92+Test Line+Test PartyName:Test PartyName2:Test PartyName3:Test PartyName4:Test PartyName5+Test StreatAndNumberOrPostOfficeBox:Test StreatAndNumberOrPostOfficeBox2+Test CityName+Test NameCode+Test PostCodeIdentification+Test CountryCode'
- SF = 发货方标识符
- Test PartyId = 发货方组织号
- Test PartyName = 发货方名称
- Test PartyName4 = 发货方名称
- Test PartyName5 = 发货方名称
- Test PartyNameFormatCode+Test StreetAndNumberOrPostOfficeBox = 发货方名称代码街道以及编号或者邮箱号
- Test CityName = 发货方城市名称
- Test NameCode = 发货方名称
- Test PostCodeIdentification = 发货方邮编
- Test CountryCode = 发货方国家代码

RFF+VA:Ship-from's Number'
- VA = 增值税登记号标识符
- Ship-from's Number = 发货方增值税号

ALC+A++++Test SpecialServiceCode::6'
- A = 津贴代码
- Test SpecialServiceCode = 津贴信息
- 6 = UN/ECE联合国欧洲经理委员会

FTX+ALC+++Test Text:Test Text2:Test Text3:Test Text4:Test Text5+Test LanguageCode'
- ALC = 津贴代码
- Test Text = 津贴信息
- Test LanguageCode = 语言代码

PCD+3:123456'
- 3 = 货币金额调整百分比标识符
- 123456 = 百分比

MOA+8:123456:Test CurrencyCode'
- 8 = 津贴数额标识符
- 123456 = 津贴数额
- Test CurrencyCode = 货币代码

TOD+++FOB::4'
- FOB = 装运港船上交货
- 4 = ICC 国际商会

LOC+1+Test LocationID::3:Test LocationName'
- 1 = 交货条款地点标识符
- Test LocationID = 交货条款地点
- 3 = IATA 国际航空运输协会
- Test LocationName = 目的地名称

UNT+71+1'
UNZ+1+000000006'

工作流示例

通过上述的讲解想必大家已经了解了奥迪AUDI INVOIC发票在知行之桥EDI系统中的转换流程了,以下是上述工作流示例,您可以下载知行之桥EDI系统,导入【示例工作流】以及【INVOIC发票XML测试文件】,进行实战操作。

下载示例工作流 下载测试文件

在知行之桥EDI系统中导入上述工作流以及测试文件

1.下载示例工作流以及 INVOIC测试文件

解压后的示例工作流名为 AUDI_OUT.arcflow,测试文件名为:INVOIC_testfiles.xml。

2.在知行之桥EDI系统中上传上述工作流

创建工作区

首先在知行之桥EDI系统的 工作流 选项卡中,点击右上方的齿轮图标,点击 +创建工作区,您可以对工作区进行自定义的命名,示例中我们将其命名为: AUDI_OUT。

奥迪AUDI EDI INVOIC发票报文详解_第3张图片

导入工作流

接下来需要点击 导入工作区 选择 AUDI_OUT.arcflow ,导入。或者您可以直接将 AUDI_OUT.arcflow 工作流拖拽至中央空白区域即可。

导入工作流之后的结果如下图所示:

奥迪AUDI EDI INVOIC发票报文详解_第4张图片

上传测试文件:在 AUDI_INVOIC_OUT 端口的 输入 选项卡下,点击 更多 ,上传测试文件:INVOIC_testfiles.xml 。

下载转换后的测试文件:在 AUDI_EDIFACT_OUT 端口的 输出 选项卡下,点击 INVOIC_testfiles.edi ,即可下载文件,看到转换后的效果。

端口解读

以下端口是上述工作流的核心要素:

XML Map 端口:将数据从一种 XML 格式转换为另一种XML格式,提供便捷的后端兼容性。 EDIFACT端口:支持EDIFACT文件与XML文件的相互转换。 这些端口已配置自动化,会将文件从一个端口移动到下一个端口,直到转换为我们需要的EDIFACT格式。

XML MAP端口:即上文命名为AUDI_INVOIC_OUT的端口

XML Map 端口提供了一种可视化设计器驱动的方式来将 XML 数据从一种结构转换为另一种结构。

XML Map 端口为转换 XML 结构提供了灵活且直观的界面。首先,应将源模板文件(包含所有输入文档的 XML 结构的文件)和目标模板文件(包含端口应输出的 XML 结构的文件)上传到端口。上述示例中我们已经提前将源模板以及目标模板文件设置好。

上传源和目标模板文件后,映射设计器将填充源和目标 XML 结构。然后,可以将源中的元素拖放到目标中的元素上,以建立映射关系。

EDIFACT端口:即上文命名为AUDI_EDIFACT_OUT的端口

EDIFACT 端口可以将 XML 文档转换为 EDIFACT 文档,也可以将 EDIFACT 文档转换为 XML。本次示例中,需要将XML Map 处理后的目标XML文件转换为EDIFACT 格式。生成 EDIFACT 文档时,EDIFACT 端口将 XML 转换为 EDIFACT 格式的文档,并生成适当的 EDIFACT 头,也就是我们上述报文讲解中出现的UNB字段。这个字段包含发送方ID以及接收方ID信息,您可以在EDIFACT 端口的设置选项卡中,根据您与文件接收方的实际情况设置以上信息。

更多EDI信息,请参阅: EDI是什么?

阅读原文

你可能感兴趣的:(EDI电子数据交换,知行软件,系统对接方式,EDI,电子数据交换,奥迪)