function displayPrecedingOD()
 {
     $ODHistoryList = new SoapObject(NCCBIZ . "ODHistoryList.php", "urn:Object");
     if (!($xmlStr = $ODHistoryList->getPrecedingODList($this->formArray["odID"]))) {
         $this->tpl->set_var("precedingUpdateCode", "");
         $this->tpl->set_var("precedingARPNumber", "");
         $this->tpl->set_var("precedingAssessedValue", "");
         $this->tpl->set_var("fromFirstOwner", "");
         $this->tpl->set_var("fromAndOthers", "");
         $this->tpl->set_var("fromNone", "");
     } else {
         if (!($domDoc = domxml_open_mem($xmlStr))) {
             $this->tpl->set_var("precedingUpdateCode", "");
             $this->tpl->set_var("precedingARPNumber", "");
             $this->tpl->set_var("precedingAssessedValue", "");
             $this->tpl->set_var("fromFirstOwner", "");
             $this->tpl->set_var("fromAndOthers", "");
             $this->tpl->set_var("fromNone", "");
         } else {
             $odHistoryRecords = new ODHistoryRecords();
             $odHistoryRecords->parseDomDocument($domDoc);
             $arrayList = $odHistoryRecords->getArrayList();
             if (count($arrayList)) {
                 $value = $arrayList[0];
                 $ODDetails = new SoapObject(NCCBIZ . "ODDetails.php", "urn:Object");
                 if (!($xmlStr = $ODDetails->getOD($value->getPreviousODID()))) {
                     $this->tpl->set_var("precedingUpdateCode", "");
                     $this->tpl->set_var("precedingARPNumber", "");
                     $this->tpl->set_var("precedingAssessedValue", "");
                     $this->tpl->set_var("fromFirstOwner", "");
                     $this->tpl->set_var("fromAndOthers", "");
                     $this->tpl->set_var("fromNone", "");
                 } else {
                     if (!($domDoc = domxml_open_mem($xmlStr))) {
                         $this->tpl->set_var("precedingUpdateCode", "");
                         $this->tpl->set_var("precedingARPNumber", "");
                         $this->tpl->set_var("precedingAssessedValue", "");
                         $this->tpl->set_var("fromFirstOwner", "");
                         $this->tpl->set_var("fromAndOthers", "");
                         $this->tpl->set_var("fromNone", "");
                     } else {
                         $precedingOD = new OD();
                         $precedingOD->parseDomDocument($domDoc);
                         $precedingODID = $precedingOD->getOdID();
                         $precedingAFS = $this->getAFSDetails($precedingODID);
                         $this->tpl->set_var("precedingUpdateCode", $value->getTransactionCode());
                         $this->tpl->set_var("precedingARPNumber", $precedingAFS->getARPNumber());
                         $this->tpl->set_var("precedingAssessedValue", number_format($precedingAFS->getTotalAssessedValue(), 2, ".", ","));
                         $oValue = $precedingOD->getOwner();
                         if (count($oValue->personArray)) {
                             $firstOwner = $oValue->personArray[0]->getLastName();
                             $firstOwner .= ", ";
                             $firstOwner .= $oValue->personArray[0]->getFirstName();
                             $firstOwner .= " ";
                             $firstOwner .= substr($oValue->personArray[0]->getMiddleName(), 0, 1) . ".";
                             $pAddress = $oValue->personArray[0]->addressArray ? $oValue->personArray[0]->addressArray[0]->getFullAddress() : "no address";
                             $firstOwnerAddress = $pAddress;
                             $firstOwnerTelephone = $oValue->personArray[0]->getTelephone();
                             $this->tpl->set_var("fromFirstOwner", $firstOwner);
                             $this->tpl->set_var("fromFirstOwnerAddress", $firstOwnerAddress);
                             $this->tpl->set_var("fromFirstOwnerTelephone", $firstOwnerTelephone);
                             $this->tpl->set_var("fromNone", "");
                         }
                         if (count($oValue->companyArray)) {
                             if ($firstOwner == "") {
                                 $firstOwner = $oValue->companyArray[0]->getCompanyName();
                                 $cAddress = $oValue->companyArray[0]->addressArray ? $oValue->companyArray[0]->addressArray[0]->getFullAddress() : "no address";
                                 $firstOwnerAddress = $cAddress;
                                 $firstOwnerTelephone = $oValue->companyArray[0]->getTelephone();
                                 $this->tpl->set_var("fromFirstOwner", $firstOwner);
                                 $this->tpl->set_var("fromFirstOwnerAddress", $firstOwnerAddress);
                                 $this->tpl->set_var("fromFirstOwnerTelephone", $firstOwnerTelephone);
                                 $this->tpl->set_var("fromNone", "");
                             }
                         }
                         if ($firstOwner != "") {
                             $this->tpl->set_var("none", "");
                             if (count($oValue->personArray) + count($oValue->companyArray) > 1) {
                                 $this->tpl->set_var("fromAndOthers", "(and others)");
                             } else {
                                 $this->tpl->set_var("fromAndOthers", "");
                             }
                         } else {
                             $this->tpl->set_var("fromNone", "-");
                             $this->tpl->set_var("fromFirstOwner", "");
                             $this->tpl->set_var("fromAndOthers", "");
                             $this->tpl->set_var("fromFirstOwnerAddress", "");
                             $this->tpl->set_var("fromFirstOwnerTelephone", "");
                         }
                     }
                 }
             }
         }
     }
 }