<?php

session_start();

require_once "../../../controllers/routing/default_values.php";
require_once(SERVER_CORE.'core/init.php');

$str = $_POST['data'];
$data=explode('##',$str);

$value = $data[0];
$id = $data[1];
$type = $data[2];
$rfq = $data[3];

$required = find_a_field('documents_information','count(tr_from)','tr_from like "sourcing_terms_condition" and master_id='.$rfq);
$required += find_a_field('documents_url_information','count(tr_from)','tr_from like "sourcing_terms_condition" and master_id='.$rfq);


echo $required;
?>


