getSalesPDReportforCETApp : ps

This commit is contained in:
VE10-Sanjeev 2022-05-05 15:30:29 +05:30
parent a7891834c5
commit 38f744b9ae
5 changed files with 29 additions and 6 deletions

View File

@ -417,13 +417,10 @@ $config['cookie_httponly'] = FALSE;
| Determines whether to standardize newline characters in input data,
| meaning to replace \r\n, \r, \n occurrences with the PHP_EOL value.
|
<<<<<<< HEAD
| This is particularly useful for portability between UNIX-based OSes,
| (usually \n) and Windows (\r\n).
=======
| WARNING: This feature is DEPRECATED and currently available only
| for backwards compatibility purposes!
>>>>>>> e76217041ddcae80f11b50b44a7d409b6722ad40
|
*/
$config['standardize_newlines'] = FALSE;

View File

@ -95,6 +95,7 @@ defined('ROUTE_LOGIN_W') OR define('ROUTE_LOGIN_W', 'saveSalesPDImage');
defined('ROUTE_LOGIN_V') OR define('ROUTE_LOGIN_V', 'generateSatelliteImg'); // no errors
defined('ROUTE_LOGIN_U') OR define('ROUTE_LOGIN_U', 'generateOTP');
defined('ROUTE_LOGIN_T') OR define('ROUTE_LOGIN_T', 'verifyOTP');
defined('ROUTE_LOGIN_B') OR define('ROUTE_LOGIN_B', 'getSalesPDReportforCETApp');
defined('ROUTE_LOGIN_A') OR define('ROUTE_LOGIN_A', 'getAuditedImages'); // no errors
defined('TURN_SERVER_API') OR define('TURN_SERVER_API', 'getServerInfo'); // no errors
defined('VIDEO_CHAT_ACCESS_KEY_API') OR define('VIDEO_CHAT_ACCESS_KEY_API', 'getVideoChatAccessKey'); // no errors
@ -211,6 +212,12 @@ defined('FIA_REJECTED') OR define('FIA_REJECTED','FIA_REJECTED');
/*******************Define Constants for Table Names and Primarykeys**************************/
defined('PDTEAM_CTY_PRODUCT_CS_COMBINATIONS') OR define('PDTEAM_CTY_PRODUCT_CS_COMBINATIONS','PDTEAM_CTY_PRODUCT_CS_COMBINATIONS');
/*******************Define Constants for Google Events For VC**************************/
define('GOOGLE_CLIENT_ID', '286363508265-0d7308vsvbosi26qnoj0ka2odj0e2h7j.apps.googleusercontent.com');
define('GOOGLE_CLIENT_SECRET', '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');
define('GOOGLE_OAUTH_SCOPE', 'https://www.googleapis.com/auth/calendar');
define('REDIRECT_URI', 'https://demo.pdgenie.com/pd/#/home');
$googleOauthURL = 'https://accounts.google.com/o/oauth2/auth?scope=' . urlencode(GOOGLE_OAUTH_SCOPE) . '&redirect_uri=' . REDIRECT_URI . '&response_type=code&client_id=' . GOOGLE_CLIENT_ID . '&access_type=online';
/*******************Define Constants for Table Names and Primarykeys**************************/
defined('INDUSTRYCLASSIFICATION') OR define('INDUSTRYCLASSIFICATION','m_industry_classification');// #### NOT USED

View File

@ -361,4 +361,8 @@ $route['getListPDOfficersForNotification'] = 'PD_Controller/getListPDOfficersFor
$route['sendNotificationToOfficers'] = 'PD_Controller/sendNotificationToOfficers';
$route['getMasterForDataDump'] = 'Request_DataDump_Controller/getMasterForDataDump';
$route['getRequestForDataDump'] = 'Request_DataDump_Controller/getRequestForDataDump';
$route['getRequestForDataDump'] = 'Request_DataDump_Controller/getRequestForDataDump';
$route['GC_addEvent'] = 'GC_Event_Controller/addEvent';
$route['GC_eventList'] = 'GC_Event_Controller/eventList';
$route['getSalesPDReportforCETApp'] = 'Sales_PD_Controller/getSalesPDReportforCETApp';

View File

@ -1338,7 +1338,22 @@ public function filterSalesPDList_post() {
}
}
public function getSalesPDReportforCETApp_get(){
log_message('ERROR','## SalesPDReportforCETApp Fns Entered');
$get = $this->get('sales_pd_id');
if(!empty($get)){
$data['report'] = $this->prepareSalesPDReport($get);
log_message('ERROR',"Report Generated for CET App");
$statusMsg = 'Report Generated';
}else{
log_message('ERROR','Report Not Available for CET App');
$statusMsg = 'Report Not Available.';
}
$data['dataStatus'] = true;
$data['status'] = REST_Controller::HTTP_OK;
$data['msg'] = $statusMsg;
$this->response($data,REST_Controller::HTTP_OK);
}
//test purpose
public function testSaleSection_get(){

View File

@ -72,7 +72,7 @@ class AUTHORIZATION
}
if( $routingName == ROUTE_LOGIN_X || $routingName == ROUTE_LOGIN_Y || $routingName == ROUTE_LOGIN_Z || $routingName == ROUTE_LOGIN_W || $routingName == ROUTE_LOGIN_V || $routingName == ROUTE_LOGIN_A || $routingName == TURN_SERVER_API || $routingName == VIDEO_CHAT_ACCESS_KEY_API || $routingName ==SAVEROOMINFO_API || $routingName ==SAVESMCCREDITPDIMAGE_API || $routingName ==GETSMCPDIMGSECTIONDATA_API || $routingName == ROUTE_LOGIN_T || $routingName == ROUTE_LOGIN_U)
if( $routingName == ROUTE_LOGIN_X || $routingName == ROUTE_LOGIN_Y || $routingName == ROUTE_LOGIN_Z || $routingName == ROUTE_LOGIN_W || $routingName == ROUTE_LOGIN_V || $routingName == ROUTE_LOGIN_A || $routingName == TURN_SERVER_API || $routingName == VIDEO_CHAT_ACCESS_KEY_API || $routingName ==SAVEROOMINFO_API || $routingName ==SAVESMCCREDITPDIMAGE_API || $routingName ==GETSMCPDIMGSECTIONDATA_API || $routingName == ROUTE_LOGIN_T || $routingName == ROUTE_LOGIN_U || $routingName == ROUTE_LOGIN_B)
{
return true;
}