fix(settlement): 全部门店可未出账提现并企微提醒
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -101,7 +101,6 @@ export function sumUnbilledPayoutAmount(payouts: Array<{ payoutAmount: number }>
|
||||
}
|
||||
|
||||
export type ValidateStoreWithdrawInput = {
|
||||
whitelistEnabled: boolean;
|
||||
availableAmount: number;
|
||||
requestAmount: number;
|
||||
todayApplied: number;
|
||||
@@ -110,13 +109,10 @@ export type ValidateStoreWithdrawInput = {
|
||||
hasBankAccount: boolean;
|
||||
};
|
||||
|
||||
/** 门店未出账提现护栏(FIN-001/002 + 幂等/账户) */
|
||||
/** 门店未出账提现护栏(FIN-002 单日上限 + 幂等/账户) */
|
||||
export function validateStoreWithdraw(
|
||||
input: ValidateStoreWithdrawInput,
|
||||
): { ok: boolean; message?: string } {
|
||||
if (!input.whitelistEnabled) {
|
||||
return { ok: false, message: '该门店未开通未出账提现(需总部白名单)' };
|
||||
}
|
||||
if (!input.hasBankAccount) {
|
||||
return { ok: false, message: '请先完善入驻收款账户后再提现' };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user