fix: 個人費用彙整表及扣繳明細排除已作廢領據 #3

Merged
sryang merged 1 commits from fix/voided-receipt-in-expense-summary into master 2026-09-14 13:33:01 +08:00
Owner

問題

已作廢的領據仍出現在「個人費用彙整表」及扣繳明細/彙總中。

修正內容

DAC_領據2.cs 的查詢加上排除作廢條件:

  • SelectSummary(個人費用彙整表)
    • 領據 AISNULL(A.作廢, 0) <> 1
    • 勞務費 BISNULL(B.作廢, 0) <> 1
    • 差旅費 CISNULL(C.作廢, 0) <> 1
  • SelectDetail(扣繳明細/彙總)
    • 領據 AISNULL(A.作廢, 0) <> 1
    • 勞務費 BISNULL(B.作廢, 0) <> 1

查詢與匯出共用上述方法,兩者皆生效。

測試

  • MSBuild 建置通過(0 errors)
## 問題 已作廢的領據仍出現在「個人費用彙整表」及扣繳明細/彙總中。 ## 修正內容 DAC_領據2.cs 的查詢加上排除作廢條件: - `SelectSummary`(個人費用彙整表) - `領據 A`:`ISNULL(A.作廢, 0) <> 1` - `勞務費 B`:`ISNULL(B.作廢, 0) <> 1` - `差旅費 C`:`ISNULL(C.作廢, 0) <> 1` - `SelectDetail`(扣繳明細/彙總) - `領據 A`:`ISNULL(A.作廢, 0) <> 1` - `勞務費 B`:`ISNULL(B.作廢, 0) <> 1` 查詢與匯出共用上述方法,兩者皆生效。 ## 測試 - MSBuild 建置通過(0 errors)
sryang added 1 commit 2026-09-14 13:32:33 +08:00
sryang merged commit 40e07c6473 into master 2026-09-14 13:33:01 +08:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sryang/thinkyu#3