@@ -247,6 +247,18 @@ public override InvoiceDescriptor Load(Stream stream)
247247 }
248248
249249 retval . Invoicer = _nodeAsParty ( doc . DocumentElement , "//ram:ApplicableHeaderTradeSettlement/ram:InvoicerTradeParty" , nsmgr ) ;
250+ if ( doc . SelectSingleNode ( "//ram:InvoicerTradeParty/ram:DefinedTradeContact" , nsmgr ) != null )
251+ {
252+ retval . InvoicerContact = new Contact ( )
253+ {
254+ Name = XmlUtils . NodeAsString ( doc . DocumentElement , "//ram:InvoicerTradeParty/ram:DefinedTradeContact/ram:PersonName" , nsmgr ) ,
255+ OrgUnit = XmlUtils . NodeAsString ( doc . DocumentElement , "//ram:InvoicerTradeParty/ram:DefinedTradeContact/ram:DepartmentName" , nsmgr ) ,
256+ PhoneNo = XmlUtils . NodeAsString ( doc . DocumentElement , "//ram:InvoicerTradeParty/ram:DefinedTradeContact/ram:TelephoneUniversalCommunication/ram:CompleteNumber" , nsmgr ) ,
257+ FaxNo = XmlUtils . NodeAsString ( doc . DocumentElement , "//ram:InvoicerTradeParty/ram:DefinedTradeContact/ram:FaxUniversalCommunication/ram:CompleteNumber" , nsmgr ) ,
258+ EmailAddress = XmlUtils . NodeAsString ( doc . DocumentElement , "//ram:InvoicerTradeParty/ram:DefinedTradeContact/ram:EmailURIUniversalCommunication/ram:URIID" , nsmgr )
259+ } ;
260+ }
261+
250262 retval . Payee = _nodeAsParty ( doc . DocumentElement , "//ram:ApplicableHeaderTradeSettlement/ram:PayeeTradeParty" , nsmgr ) ;
251263
252264 retval . PaymentReference = XmlUtils . NodeAsString ( doc . DocumentElement , "//ram:ApplicableHeaderTradeSettlement/ram:PaymentReference" , nsmgr ) ;
@@ -299,7 +311,7 @@ public override InvoiceDescriptor Load(Stream stream)
299311 bankleitzahl : i < creditorFinancialInstitutions . Count ? XmlUtils . NodeAsString ( creditorFinancialInstitutions [ i ] , ".//ram:GermanBankleitzahlID" , nsmgr ) : string . Empty ,
300312 bankName : i < creditorFinancialInstitutions . Count ? XmlUtils . NodeAsString ( creditorFinancialInstitutions [ i ] , ".//ram:Name" , nsmgr ) : string . Empty ,
301313 name : i < creditorFinancialAccountNodes . Count ? XmlUtils . NodeAsString ( creditorFinancialAccountNodes [ i ] , ".//ram:AccountName" , nsmgr ) : string . Empty ) ;
302- } // !for(i)
314+ } // !for(i)
303315
304316
305317 var specifiedTradeSettlementPaymentMeansNodes = doc . SelectNodes ( "//ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementPaymentMeans" , nsmgr ) ;
0 commit comments