Move AQMM controls to assurance engagement workflow
This commit is contained in:
+9
-17
@@ -17,7 +17,7 @@ from app.modules.core.tenancy.models import Branch, FinancialYear, Tenant
|
||||
from app.modules.core.tenancy.settings_models import BranchSettings
|
||||
from app.modules.employees.models import Employee, EmployeeAttendance, EmployeeRegistrationRequest, EmployeeLeaveType, EmployeeLeaveBalance, EmployeeLeaveRequest, EmployeeDocumentType, EmployeeDocument, EmployeeOnboardingChecklistItem, EmployeeOnboardingTask, EmployeeOffboardingRequest, EmployeeOffboardingTask, EmployeeSalaryStructure, EmployeePayrollRun, EmployeePayslip
|
||||
from app.modules.consultants.models import ClientConsultantLink, ConsultantManagedClient, ConsultantProfile, ConsultantWorkspace, ConsultantServiceRequest
|
||||
from app.modules.services.models import FirmServiceSelection, FirmServiceTaskTemplate, ServiceCatalogue, ServiceCategory, FirmTaskDocumentRequirement, FirmTaskDocumentTemplate
|
||||
from app.modules.services.models import FirmServiceSelection, FirmServiceTaskTemplate, ServiceCatalogue, ServiceCategory, FirmTaskDocumentRequirement, FirmTaskDocumentTemplate, EngagementQualityDeclaration, EngagementKycVerification, EngagementLetter
|
||||
from app.modules.billing.models import BillingSettings, BillingInvoice, BillingInvoiceLine, BillingFeeGroup, BillingFeeGroupService
|
||||
from app.modules.platform_billing.models import PlatformBillingAccount, PlatformInvoice, PlatformInvoiceLine, PlatformPayment, PlatformPlan, PlatformPlanFeature, PlatformSubscription
|
||||
from app.modules.marketplace.models import MarketplaceLead, MarketplaceLeadAssignment
|
||||
@@ -105,8 +105,6 @@ ROLE_PERMISSION_MAP = {
|
||||
"clients.cross_tenant",
|
||||
"clients.export",
|
||||
"clients.audit_log.view",
|
||||
"clients.acceptance.manage",
|
||||
"clients.acceptance.approve",
|
||||
"employees.dashboard.view",
|
||||
"employees.view",
|
||||
"employees.create",
|
||||
@@ -229,16 +227,11 @@ ROLE_PERMISSION_MAP = {
|
||||
"clients.cross_branch",
|
||||
"clients.export",
|
||||
"clients.audit_log.view",
|
||||
"clients.acceptance.manage",
|
||||
"clients.acceptance.approve",
|
||||
"documents.view",
|
||||
"documents.upload",
|
||||
"documents.download",
|
||||
"documents.delete",
|
||||
"documents.audit.view",
|
||||
"udin.view",
|
||||
"udin.manage",
|
||||
"udin.export",
|
||||
"employees.dashboard.view",
|
||||
"employees.view",
|
||||
"employees.create",
|
||||
@@ -333,15 +326,10 @@ ROLE_PERMISSION_MAP = {
|
||||
"clients.restore",
|
||||
"clients.export",
|
||||
"clients.audit_log.view",
|
||||
"clients.acceptance.manage",
|
||||
"clients.acceptance.approve",
|
||||
"documents.view",
|
||||
"documents.upload",
|
||||
"documents.download",
|
||||
"documents.delete",
|
||||
"udin.view",
|
||||
"udin.manage",
|
||||
"udin.export",
|
||||
"clients.view.own_only",
|
||||
"employees.dashboard.view",
|
||||
"employees.view",
|
||||
@@ -434,12 +422,9 @@ ROLE_PERMISSION_MAP = {
|
||||
"clients.activate",
|
||||
"clients.export",
|
||||
"clients.audit_log.view",
|
||||
"clients.acceptance.manage",
|
||||
"clients.acceptance.approve",
|
||||
"documents.view",
|
||||
"documents.upload",
|
||||
"documents.download",
|
||||
"udin.view",
|
||||
"employees.dashboard.view",
|
||||
"employees.view",
|
||||
"employees.create",
|
||||
@@ -507,7 +492,6 @@ ROLE_PERMISSION_MAP = {
|
||||
"documents.view",
|
||||
"documents.upload",
|
||||
"documents.download",
|
||||
"udin.view",
|
||||
],
|
||||
"Client": [],
|
||||
"Consultant": [
|
||||
@@ -719,6 +703,14 @@ def on_startup(app: FastAPI) -> None:
|
||||
missing_optional_tables.append(FirmServiceSelection.__table__)
|
||||
if "firm_service_task_templates" not in existing_tables:
|
||||
missing_optional_tables.append(FirmServiceTaskTemplate.__table__)
|
||||
service_quality_tables = [
|
||||
("engagement_quality_declarations", EngagementQualityDeclaration.__table__),
|
||||
("engagement_kyc_verifications", EngagementKycVerification.__table__),
|
||||
("engagement_letters", EngagementLetter.__table__),
|
||||
]
|
||||
for table_name, table in service_quality_tables:
|
||||
if table_name not in existing_tables:
|
||||
missing_optional_tables.append(table)
|
||||
billing_tables = [
|
||||
("billing_settings", BillingSettings.__table__),
|
||||
("billing_fee_groups", BillingFeeGroup.__table__),
|
||||
|
||||
Reference in New Issue
Block a user