﻿<!ELEMENT root (purchaseinvoicepostingdata)>
<!ELEMENT purchaseinvoicepostingdata (purchaseinvoicenetvisorkey, status?, eventdate?, isreadyforaccounting, comment?, purchaseinvoicepostingline*)>
<!ELEMENT purchaseinvoicepostingline (purchaseinvoicelinenetvisorkey?, productcode?, productname, orderedamount?, deliveredamount, unitname?, unitprice, discountpercentage?, vatpercent, linesum, description?, sort?, accountingsuggestion?, worksitecontractnetvisorkey?, worksitename?, worksitenumber?, dimension*)>
<!ELEMENT dimension (dimensionname, dimensionitem?, dimensionitemcode?, dimensionitemname?)>


<!ELEMENT purchaseinvoicenetvisorkey (#PCDATA)>
<!ELEMENT status (#PCDATA)>
<!ELEMENT eventdate (#PCDATA)>
<!ATTLIST eventdate format CDATA "ansi">
<!ELEMENT isreadyforaccounting (#PCDATA)>
<!ELEMENT comment (#PCDATA)>

<!ELEMENT purchaseinvoicelinenetvisorkey (#PCDATA)>
<!ELEMENT productcode (#PCDATA)>
<!ELEMENT productname (#PCDATA)>
<!ELEMENT orderedamount (#PCDATA)>
<!ELEMENT deliveredamount (#PCDATA)>
<!ELEMENT unitname (#PCDATA)>
<!ELEMENT unitprice (#PCDATA)>
<!ELEMENT discountpercentage (#PCDATA)>
<!ELEMENT linesum (#PCDATA)>
  <!ATTLIST linesum type (gross) #REQUIRED>
<!ELEMENT description (#PCDATA)>
<!ELEMENT sort (#PCDATA)>
<!ELEMENT accountingsuggestion (#PCDATA)>
<!ELEMENT vatpercent (#PCDATA)>
  <!ATTLIST vatpercent vatcode CDATA #IMPLIED>



<!ELEMENT dimensionname (#PCDATA)>
<!ELEMENT dimensionitem (#PCDATA)>
<!ELEMENT dimensionitemcode (#PCDATA)>
<!ELEMENT dimensionitemname (#PCDATA)>

<!ELEMENT worksitecontractnetvisorkey (#PCDATA)>
<!ELEMENT worksitename (#PCDATA)>
<!ELEMENT worksitenumber (#PCDATA)>