if (count($item_info) > 0) {
                $id = false;
                // check whether order already exists
                $idR = $dbc->execute($find, array($vendorID, $storeID, $header_info['vendorInvoiceID']));
                $new = false;