def process_get_geography_report(db, request_frame, user_id): countries = get_countries_for_user(db, user_id) geography_report = get_geography_report(db) return knowledgereport.GetGeographyReportSuccess( countries, geography_report )
def process_get_industry(db): results = get_industries(db) domain_list = get_domains_for_user(db, 0) country_list = get_countries_for_user(db, 0) return knowledgemaster.GetIndustriesSuccess(industries=results, countries=country_list, domains=domain_list)
def process_get_approve_mapping_filters(db, user_id): industry = get_industries(db) natures = get_statutory_nature(db) country = get_countries_for_user(db, user_id) domains = get_domains_for_user(db, user_id) users = get_child_users(db, user_id) return knowledgetransaction.GetApproveStatutoryMappingFilterSuccess( country, domains, natures, industry, users )
def process_get_assigned_statutory_report_filters(db, user_id): countries = get_countries_for_user(db, user_id) domains = get_domains_for_user(db, user_id) group_companies = get_group_companies_for_statutorysetting_report(db, user_id) business_groups = get_business_groups_for_statutorysetting_report(db, user_id) unit_list = get_units_for_statutorysetting_report(db, user_id) compliance_statutories = get_compliance_statutoy_for_statutorysetting_report(db, user_id) return technoreports.GetAssignedStatutoryReportFiltersSuccess( countries, domains, group_companies, business_groups, unit_list, compliance_statutories )
def process_get_compliance_task_filter(db, request, session_user): countries = get_countries_for_user(db, session_user) domains = get_domains_for_user(db, session_user) industries = get_industries(db) statutory_nature = get_statutory_nature(db) geographies = get_geographies(db) level_1_statutories = get_country_wise_level_1_statutoy(db) compliance_frequency = get_compliance_frequency(db) return knowledgereport.GetStatutoryMappingReportFiltersSuccess( countries, domains, industries, statutory_nature, geographies, level_1_statutories, compliance_frequency )
def process_get_client_details_report_filters(db, request_frame, session_user): countries = get_countries_for_user(db, session_user) domains_organization_list = get_domains_for_unit(db, session_user) group_companies = get_group_companies_for_statutorysetting_report(db, session_user) business_groups = get_business_groups_for_statutorysetting_report(db, session_user) units_report = get_units_for_clientdetails_report(db, session_user) industries = get_active_industries(db) return technoreports.GetClientDetailsReportFiltersSuccess( countries=countries, domains_organization_list=domains_organization_list, statutory_groups=group_companies, statutory_business_groups=business_groups, units_report=units_report, industry_name_id=industries )
def process_get_geographies(db, user_id): countries = get_countries_for_user(db, user_id) geography_levels = get_geography_levels(db) geographies = get_geographies(db, user_id) return knowledgemaster.GetGeographiesSuccess(countries, geography_levels, geographies)
def process_get_statutory_level(db, user_id): countries = get_countries_for_user(db, user_id) domains = get_domains_for_user(db, user_id) statutory_levels = get_statutory_levels(db) return knowledgemaster.GetStatutoryLevelsSuccess(countries, domains, statutory_levels)
def process_get_statutory_nature(db): results = get_statutory_nature(db) country_list = get_countries_for_user(db, 0) success = knowledgemaster.GetStatutoryNaturesSuccess( statutory_natures=results, countries=country_list) return success