fix(web-admin): align schedule paid/arrears with yjf-only rule

Period 已缴费 now counts only 付款完成 transfers, matching backend
summarize_period.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
zlwuandCursor committed 2026-10-12 18:10:13 +08:00
1 parent d2bb1e0fa1
commit c71bb5a11c
2 files changed
+16 -19

No files matched your search

@@ -118,7 +118,7 @@ describe('sumSampleContractAmounts', () => {
})
describe('schedulePaidArrears', () => {
it('display paid includes dfj + jfqrz + yjf', () => {
it('display paid includes only yjf', () => {
const { paid, arrears } = schedulePaidArrears(25880, [
{ payStatus: 'dfj', transferAmount: 480 },
{ payStatus: 'dfj', transferAmount: 6000 },
@@ -126,8 +126,8 @@ describe('schedulePaidArrears', () => {
{ payStatus: 'yjf', transferAmount: 200 },
{ payStatus: 'ytf', transferAmount: 50 }
])
assert.equal(paid, 6780)
assert.equal(arrears, 19100)
assert.equal(paid, 200)
assert.equal(arrears, 25680)
})
})