feat(settlement): 合伙人账单生成后直接同步并支持打款凭证

去掉总部发送与合伙人确认,财务打款后上传凭证,合伙人即可查看状态。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-26 13:04:03 +08:00
parent cb63d382ad
commit 550697c346
15 changed files with 256 additions and 541 deletions
@@ -118,7 +118,7 @@ async function main() {
},
});
// ─── 2. 合伙人月账单(上月待确认 + 本月已打款样例)───
// ─── 2. 合伙人月账单(上月未打款 + 更早已打款样例)───
const partnerBillAwait = await prisma.partnerBill.upsert({
where: {
partnerAccountId_periodStart: {
@@ -134,7 +134,7 @@ async function main() {
orderCommission: 860,
redeemCommission: 420,
totalAmount: 1280,
status: 'AWAITING_CONFIRM',
status: 'UNPAID',
sentAt: yesterday,
},
update: {
@@ -142,7 +142,7 @@ async function main() {
orderCommission: 860,
redeemCommission: 420,
totalAmount: 1280,
status: 'AWAITING_CONFIRM',
status: 'UNPAID',
sentAt: yesterday,
paidAt: null,
rejectReason: null,