--- a/admin/import.php +++ b/admin/import.php @@ -60,6 +60,7 @@ if (($datamapping0711[$headers[$c]]) == "parentCN" || ($datamapping0711[$headers[$c]]) == "CNID") { $data[$c] = substr($data[$c], 2); // take off the "CN" prefix $data[$c] = str_replace("-A","00",$data[$c]); // make amendments really big numbers + if (!is_numeric($data[$c])) die ($data[$c]." is not numeric"); if ($data[$c] > 0) { $contractNoticeInsert[] = $data[$c]; } else { @@ -166,5 +167,13 @@ echo "
$success records successfully created"; flush(); } + // run post import data processing + // cn + include("linkAmendments.php"); + include("updateUNSPSC.php"); +// agency + include("setAgencyStatus.php"); + include("setAgencyURLABN.php"); + ?>