跳至正文

美容师结算

管理结算草稿、提交、审批,以及 Xendit 发放确认对话框。

面向用户

结算操作会产生财务影响,并且需要 super_admin 角色。

结算生命周期

  1. **Generate drafts:**为收入符合条件的美容师生成草稿。
  2. **Submit:**提交选定草稿以供审批。
  3. **Approve:**在相应权限下批准结算。
  4. **Disburse:**打开确认对话框,其中银行身份信息为只读。只有确认才会向服务商发送请求;取消对话框不会改变结算记录。若未配置 Xendit,请求会在写入结算状态/尝试记录前被拒绝。

发放前检查

  • 核对美容师、金额和最新状态。
  • 检查银行身份信息;必需资料不完整时,对话框会提示并禁用确认按钮。
  • 检查最新状态之前,不要重复操作。
  • 使用 CSV 对账;导出保留当前状态筛选条件。

审批不代表转账已完成。只有结算状态和参考编号得到确认后,才可报告款项已发出。管理端 E2E 不会发起真实转账。

结算生命周期台账
展示草稿和审批状态以及发放对话框。
款项发放对话框
遮盖银行账号和银行身份信息。

操作演示视频

视频使用隔离演示数据录制英文管理后台,并放慢播放以便跟随操作。敏感值已遮蔽。未执行外部付款或服务商发送。

录制日期:

admin generates, approves, and fails closed on payout disbursement without provider configuration 0:14

已覆盖步骤(英文)

  1. Generate an eligible payout draft, submit it, and approve it.
  2. Inspect and cancel the complete-bank disbursement dialog without initiating a transfer.
  3. With provider configuration absent, confirm the request and verify the UI rejects it while the payout and provider references remain unchanged.
  4. Filter the list by approved status and click the filtered CSV export.
admin cannot disburse an approved payout with incomplete bank details 0:07

已覆盖步骤(英文)

  1. Open the incomplete-bank payout dialog and verify the required bank warning and disabled confirmation.
  2. Cancel the dialog and verify payout status and provider references are unchanged.
regular admin cannot generate payout drafts without elevated authorization 0:04

已覆盖步骤(英文)

  1. Attempt to generate payout drafts as a regular admin.
  2. Verify access is denied and the payout count is unchanged.
admin exports each operational finance list with its CSV schema 0:06

已覆盖步骤(英文)

  1. Open the payouts list and click its visible CSV export control.
  2. Verify the export response schema and that it contains data.

测试边界(英文)

  • The complete-bank confirmation journey runs with XENDIT_SECRET_KEY empty, so service configuration rejection prevents the provider call; no external transfer success is attempted. The separate incomplete-bank fixture disables confirmation and also makes no provider call.
导航

输入关键词开始搜索…

↑↓ 移动↵ 选择Esc 关闭