feat: 增强代理结算和账单管理功能
- 在多个控制器中引入 SettlementPartyEnrichment 服务,以优化代理结算和账单的处理逻辑。 - 更新 AgentSettlementBillIndexController 和 AgentSettlementBillShowController,支持根据账单 ID 和关键字进行查询。 - 在 AgentSettlementPeriodCloseController 中添加对站点管理权限的验证,确保只有具备相应权限的管理员能够关闭账期。 - 在 AgentSettlementPeriodIndexController 中更新账期数据的返回格式,提升数据的完整性和可用性。 - 引入对相对占成比例的支持,增强代理资料的管理能力,确保数据一致性。
This commit is contained in:
@@ -84,16 +84,16 @@ test('parent agent can sync delegation grants for direct child', function (): vo
|
||||
]);
|
||||
grantSuperAdminRole($super);
|
||||
|
||||
$parent = $service->createChild($super, [
|
||||
$parent = $service->createChild($super, agentChildPayload([
|
||||
'parent_id' => $rootId,
|
||||
'code' => 'deleg-parent',
|
||||
'name' => 'Deleg Parent',
|
||||
]);
|
||||
$child = $service->createChild($super, [
|
||||
]));
|
||||
$child = $service->createChild($super, agentChildPayload([
|
||||
'parent_id' => $parent->id,
|
||||
'code' => 'deleg-child',
|
||||
'name' => 'Deleg Child',
|
||||
]);
|
||||
]));
|
||||
|
||||
$parentAdmin = AdminUser::query()->create([
|
||||
'username' => 'deleg_parent_admin',
|
||||
@@ -139,11 +139,11 @@ test('delegation ceiling blocks role permissions beyond child grants', function
|
||||
]);
|
||||
grantSuperAdminRole($super);
|
||||
|
||||
$branch = $service->createChild($super, [
|
||||
$branch = $service->createChild($super, agentChildPayload([
|
||||
'parent_id' => $rootId,
|
||||
'code' => 'ceil-branch',
|
||||
'name' => 'Ceil Branch',
|
||||
]);
|
||||
]));
|
||||
|
||||
$viewActionId = (int) DB::table('admin_menu_actions')
|
||||
->where('permission_code', 'agent.node.view')
|
||||
|
||||
Reference in New Issue
Block a user