# 6. Sponsorship Invoices — Test Cases

User Type: **Sponsor**
Source: *Mi Digital Academy - Education CRM Features Document*
Spec: sponsorship_invoices.md — every feature, sub-feature, and rule covered

## Test Execution Policy

- Zero tolerance: any deviation from the documented behavior is a defect.
- Every failed test is logged with a Bug ID, the feature, the sub-feature, the expected vs actual result, and the severity; 100% of bugs are fixed before the group passes.
- 100% pass rate is required for the group to be marked complete.

## Coverage Matrix

| Feature | Sub-feature / Rule | Test IDs |
|---------|--------------------|----------|
| 6.1 | Invoice list with number, sponsorship, amount, due date, status | TC-SPN-6-01-001 |
| 6.1 | Invoice detail view with line items | TC-SPN-6-01-002 |
| 6.1 | Download invoice PDF | TC-SPN-6-01-003 |
| 6.1 | Filter by status and period | TC-SPN-6-01-004 |
| 6.1 | Overdue invoice indicators | TC-SPN-6-01-005 |
| 6.1 | Sponsorship Invoice List available on web and mobile | TC-SPN-6-01-006 |
| 6.1 | sponsorship invoice list event logging (viewed) | TC-SPN-6-01-007 |
| 6.1 | Audit logging of sponsorship invoice list | TC-SPN-6-01-008 |
| 6.1 | Rule: Invoice list with number, sponsorship, amount, due date, status. | TC-SPN-6-01-009 |
| 6.1 | Rule: Invoice detail view with line items. | TC-SPN-6-01-010 |
| 6.1 | Rule: Download invoice PDF. | TC-SPN-6-01-011 |
| 6.1 | Rule: Filter by status and period. | TC-SPN-6-01-012 |
| 6.1 | Rule: Overdue invoice indicators. | TC-SPN-6-01-013 |
| 6.2 | Payment schedule per sponsorship (installments) | TC-SPN-6-02-014 |
| 6.2 | Upcoming payment reminders | TC-SPN-6-02-015 |
| 6.2 | Payment history with receipts | TC-SPN-6-02-016 |
| 6.2 | Payment-to-invoice reconciliation | TC-SPN-6-02-017 |
| 6.2 | Payment summary totals | TC-SPN-6-02-018 |
| 6.2 | Payment Schedules & History available on web and mobile | TC-SPN-6-02-019 |
| 6.2 | payment schedules & history event logging (viewed) | TC-SPN-6-02-020 |
| 6.2 | Audit logging of payment schedules & history | TC-SPN-6-02-021 |
| 6.2 | Rule: Payment schedule per sponsorship (installments). | TC-SPN-6-02-022 |
| 6.2 | Rule: Upcoming payment reminders. | TC-SPN-6-02-023 |
| 6.2 | Rule: Payment history with receipts. | TC-SPN-6-02-024 |
| 6.2 | Rule: Payment-to-invoice reconciliation. | TC-SPN-6-02-025 |
| 6.2 | Rule: Payment summary totals. | TC-SPN-6-02-026 |

## 6.1 Sponsorship Invoice List

### TC-SPN-6-01-001 — Invoice list with number, sponsorship, amount, due date, status
**Type:** Positive
**Covers:** 6.1 → Invoice list with number, sponsorship, amount, due date, status; Rule: Invoice list with number, sponsorship, amount, due date, status.
**Preconditions:** A Sponsor account is active and the Sponsor is in the state required for this behavior.
**Steps:**
1. As a Sponsor, set up the precondition and perform: Invoice list with number, sponsorship, amount, due date, status.
2. Observe the result and verify the full behavior: Invoice list with number, sponsorship, amount, due date, status.
**Expected Result:** Invoice list with number, sponsorship, amount, due date, status — delivered exactly as documented.
**Priority:** Critical

### TC-SPN-6-01-002 — Invoice detail view with line items
**Type:** Positive
**Covers:** 6.1 → Invoice detail view with line items; Rule: Invoice detail view with line items.
**Preconditions:** A Sponsor account is active and the Sponsor is in the state required for this behavior.
**Steps:**
1. As a Sponsor, set up the precondition and perform: Invoice detail view with line items.
2. Observe the result and verify the full behavior: Invoice detail view with line items.
**Expected Result:** Invoice detail view with line items — delivered exactly as documented.
**Priority:** High

### TC-SPN-6-01-003 — Download invoice PDF
**Type:** Positive
**Covers:** 6.1 → Download invoice PDF; Rule: Download invoice PDF.
**Preconditions:** A Sponsor account is active and the Sponsor is in the state required for this behavior.
**Steps:**
1. As a Sponsor, set up the precondition and perform: Download invoice PDF.
2. Observe the result and verify the full behavior: Download invoice PDF.
**Expected Result:** Download invoice PDF — delivered exactly as documented.
**Priority:** Medium

### TC-SPN-6-01-004 — Filter by status and period
**Type:** Positive
**Covers:** 6.1 → Filter by status and period; Rule: Filter by status and period.
**Preconditions:** A Sponsor account is active and the Sponsor is in the state required for this behavior.
**Steps:**
1. As a Sponsor, set up the precondition and perform: Filter by status and period.
2. Observe the result and verify the full behavior: Filter by status and period.
**Expected Result:** Filter by status and period — delivered exactly as documented.
**Priority:** Medium

### TC-SPN-6-01-005 — Overdue invoice indicators
**Type:** Positive
**Covers:** 6.1 → Overdue invoice indicators; Rule: Overdue invoice indicators.
**Preconditions:** A Sponsor account is active and the Sponsor is in the state required for this behavior.
**Steps:**
1. As a Sponsor, set up the precondition and perform: Overdue invoice indicators.
2. Observe the result and verify the full behavior: Overdue invoice indicators.
**Expected Result:** Overdue invoice indicators — delivered exactly as documented.
**Priority:** Medium

### TC-SPN-6-01-006 — Sponsorship Invoice List available on web and mobile
**Type:** Positive
**Covers:** 6.1 → Sponsorship Invoice List available on web and mobile; Rule: Invoice list with number, sponsorship, amount, due date, status.
**Preconditions:** A Sponsor account is active and the Sponsor is in the state required for this behavior.
**Steps:**
1. As a Sponsor, set up the precondition and perform: Sponsorship Invoice List available on web and mobile.
2. Observe the result and verify the full behavior: Sponsorship Invoice List available on web and mobile.
**Expected Result:** Sponsorship Invoice List available on web and mobile — delivered exactly as documented.
**Priority:** Medium

### TC-SPN-6-01-007 — sponsorship invoice list event logging (viewed)
**Type:** Positive
**Covers:** 6.1 → sponsorship invoice list event logging (viewed); Rule: Invoice detail view with line items.
**Preconditions:** A Sponsor account is active and the Sponsor is in the state required for this behavior.
**Steps:**
1. As a Sponsor, set up the precondition and perform: sponsorship invoice list event logging (viewed).
2. Observe the result and verify the full behavior: sponsorship invoice list event logging (viewed).
**Expected Result:** sponsorship invoice list event logging (viewed) — delivered exactly as documented.
**Priority:** Medium

### TC-SPN-6-01-008 — Audit logging of sponsorship invoice list
**Type:** Positive
**Covers:** 6.1 → Audit logging of sponsorship invoice list; Rule: Download invoice PDF.
**Preconditions:** A Sponsor account is active and the Sponsor is in the state required for this behavior.
**Steps:**
1. As a Sponsor, set up the precondition and perform: Audit logging of sponsorship invoice list.
2. Observe the result and verify the full behavior: Audit logging of sponsorship invoice list.
**Expected Result:** Audit logging of sponsorship invoice list — delivered exactly as documented.
**Priority:** Medium

### TC-SPN-6-01-009 — Rule: Invoice list with number, sponsorship, amount, due date, status.
**Type:** Positive
**Covers:** 6.1 → Rule: Invoice list with number, sponsorship, amount, due date, status.
**Preconditions:** A Sponsor account is active and the Sponsor is in the state required for this behavior.
**Steps:**
1. As a Sponsor, set up the precondition and perform the action that triggers the rule: Invoice list with number, sponsorship, amount, due date, status.
2. Observe the result and verify the full behavior: Invoice list with number, sponsorship, amount, due date, status.
**Expected Result:** Invoice list with number, sponsorship, amount, due date, status. — delivered exactly as documented.
**Priority:** Critical

### TC-SPN-6-01-010 — Rule: Invoice detail view with line items.
**Type:** Positive
**Covers:** 6.1 → Rule: Invoice detail view with line items.
**Preconditions:** A Sponsor account is active and the Sponsor is in the state required for this behavior.
**Steps:**
1. As a Sponsor, set up the precondition and perform the action that triggers the rule: Invoice detail view with line items.
2. Observe the result and verify the full behavior: Invoice detail view with line items.
**Expected Result:** Invoice detail view with line items. — delivered exactly as documented.
**Priority:** High

### TC-SPN-6-01-011 — Rule: Download invoice PDF.
**Type:** Positive
**Covers:** 6.1 → Rule: Download invoice PDF.
**Preconditions:** A Sponsor account is active and the Sponsor is in the state required for this behavior.
**Steps:**
1. As a Sponsor, set up the precondition and perform the action that triggers the rule: Download invoice PDF.
2. Observe the result and verify the full behavior: Download invoice PDF.
**Expected Result:** Download invoice PDF. — delivered exactly as documented.
**Priority:** Medium

### TC-SPN-6-01-012 — Rule: Filter by status and period.
**Type:** Positive
**Covers:** 6.1 → Rule: Filter by status and period.
**Preconditions:** A Sponsor account is active and the Sponsor is in the state required for this behavior.
**Steps:**
1. As a Sponsor, set up the precondition and perform the action that triggers the rule: Filter by status and period.
2. Observe the result and verify the full behavior: Filter by status and period.
**Expected Result:** Filter by status and period. — delivered exactly as documented.
**Priority:** Medium

### TC-SPN-6-01-013 — Rule: Overdue invoice indicators.
**Type:** Positive
**Covers:** 6.1 → Rule: Overdue invoice indicators.
**Preconditions:** A Sponsor account is active and the Sponsor is in the state required for this behavior.
**Steps:**
1. As a Sponsor, set up the precondition and perform the action that triggers the rule: Overdue invoice indicators.
2. Observe the result and verify the full behavior: Overdue invoice indicators.
**Expected Result:** Overdue invoice indicators. — delivered exactly as documented.
**Priority:** Medium

## 6.2 Payment Schedules & History

### TC-SPN-6-02-014 — Payment schedule per sponsorship (installments)
**Type:** Positive
**Covers:** 6.2 → Payment schedule per sponsorship (installments); Rule: Payment schedule per sponsorship (installments).
**Preconditions:** A Sponsor account is active and the Sponsor is in the state required for this behavior.
**Steps:**
1. As a Sponsor, set up the precondition and perform: Payment schedule per sponsorship (installments).
2. Observe the result and verify the full behavior: Payment schedule per sponsorship (installments).
**Expected Result:** Payment schedule per sponsorship (installments) — delivered exactly as documented.
**Priority:** Critical

### TC-SPN-6-02-015 — Upcoming payment reminders
**Type:** Positive
**Covers:** 6.2 → Upcoming payment reminders; Rule: Upcoming payment reminders.
**Preconditions:** A Sponsor account is active and the Sponsor is in the state required for this behavior.
**Steps:**
1. As a Sponsor, set up the precondition and perform: Upcoming payment reminders.
2. Observe the result and verify the full behavior: Upcoming payment reminders.
**Expected Result:** Upcoming payment reminders — delivered exactly as documented.
**Priority:** High

### TC-SPN-6-02-016 — Payment history with receipts
**Type:** Positive
**Covers:** 6.2 → Payment history with receipts; Rule: Payment history with receipts.
**Preconditions:** A Sponsor account is active and the Sponsor is in the state required for this behavior.
**Steps:**
1. As a Sponsor, set up the precondition and perform: Payment history with receipts.
2. Observe the result and verify the full behavior: Payment history with receipts.
**Expected Result:** Payment history with receipts — delivered exactly as documented.
**Priority:** Medium

### TC-SPN-6-02-017 — Payment-to-invoice reconciliation
**Type:** Positive
**Covers:** 6.2 → Payment-to-invoice reconciliation; Rule: Payment-to-invoice reconciliation.
**Preconditions:** A Sponsor account is active and the Sponsor is in the state required for this behavior.
**Steps:**
1. As a Sponsor, set up the precondition and perform: Payment-to-invoice reconciliation.
2. Observe the result and verify the full behavior: Payment-to-invoice reconciliation.
**Expected Result:** Payment-to-invoice reconciliation — delivered exactly as documented.
**Priority:** Medium

### TC-SPN-6-02-018 — Payment summary totals
**Type:** Positive
**Covers:** 6.2 → Payment summary totals; Rule: Payment summary totals.
**Preconditions:** A Sponsor account is active and the Sponsor is in the state required for this behavior.
**Steps:**
1. As a Sponsor, set up the precondition and perform: Payment summary totals.
2. Observe the result and verify the full behavior: Payment summary totals.
**Expected Result:** Payment summary totals — delivered exactly as documented.
**Priority:** Medium

### TC-SPN-6-02-019 — Payment Schedules & History available on web and mobile
**Type:** Positive
**Covers:** 6.2 → Payment Schedules & History available on web and mobile; Rule: Payment schedule per sponsorship (installments).
**Preconditions:** A Sponsor account is active and the Sponsor is in the state required for this behavior.
**Steps:**
1. As a Sponsor, set up the precondition and perform: Payment Schedules & History available on web and mobile.
2. Observe the result and verify the full behavior: Payment Schedules & History available on web and mobile.
**Expected Result:** Payment Schedules & History available on web and mobile — delivered exactly as documented.
**Priority:** Medium

### TC-SPN-6-02-020 — payment schedules & history event logging (viewed)
**Type:** Positive
**Covers:** 6.2 → payment schedules & history event logging (viewed); Rule: Upcoming payment reminders.
**Preconditions:** A Sponsor account is active and the Sponsor is in the state required for this behavior.
**Steps:**
1. As a Sponsor, set up the precondition and perform: payment schedules & history event logging (viewed).
2. Observe the result and verify the full behavior: payment schedules & history event logging (viewed).
**Expected Result:** payment schedules & history event logging (viewed) — delivered exactly as documented.
**Priority:** Medium

### TC-SPN-6-02-021 — Audit logging of payment schedules & history
**Type:** Positive
**Covers:** 6.2 → Audit logging of payment schedules & history; Rule: Payment history with receipts.
**Preconditions:** A Sponsor account is active and the Sponsor is in the state required for this behavior.
**Steps:**
1. As a Sponsor, set up the precondition and perform: Audit logging of payment schedules & history.
2. Observe the result and verify the full behavior: Audit logging of payment schedules & history.
**Expected Result:** Audit logging of payment schedules & history — delivered exactly as documented.
**Priority:** Medium

### TC-SPN-6-02-022 — Rule: Payment schedule per sponsorship (installments).
**Type:** Positive
**Covers:** 6.2 → Rule: Payment schedule per sponsorship (installments).
**Preconditions:** A Sponsor account is active and the Sponsor is in the state required for this behavior.
**Steps:**
1. As a Sponsor, set up the precondition and perform the action that triggers the rule: Payment schedule per sponsorship (installments).
2. Observe the result and verify the full behavior: Payment schedule per sponsorship (installments).
**Expected Result:** Payment schedule per sponsorship (installments). — delivered exactly as documented.
**Priority:** Critical

### TC-SPN-6-02-023 — Rule: Upcoming payment reminders.
**Type:** Positive
**Covers:** 6.2 → Rule: Upcoming payment reminders.
**Preconditions:** A Sponsor account is active and the Sponsor is in the state required for this behavior.
**Steps:**
1. As a Sponsor, set up the precondition and perform the action that triggers the rule: Upcoming payment reminders.
2. Observe the result and verify the full behavior: Upcoming payment reminders.
**Expected Result:** Upcoming payment reminders. — delivered exactly as documented.
**Priority:** High

### TC-SPN-6-02-024 — Rule: Payment history with receipts.
**Type:** Positive
**Covers:** 6.2 → Rule: Payment history with receipts.
**Preconditions:** A Sponsor account is active and the Sponsor is in the state required for this behavior.
**Steps:**
1. As a Sponsor, set up the precondition and perform the action that triggers the rule: Payment history with receipts.
2. Observe the result and verify the full behavior: Payment history with receipts.
**Expected Result:** Payment history with receipts. — delivered exactly as documented.
**Priority:** Medium

### TC-SPN-6-02-025 — Rule: Payment-to-invoice reconciliation.
**Type:** Positive
**Covers:** 6.2 → Rule: Payment-to-invoice reconciliation.
**Preconditions:** A Sponsor account is active and the Sponsor is in the state required for this behavior.
**Steps:**
1. As a Sponsor, set up the precondition and perform the action that triggers the rule: Payment-to-invoice reconciliation.
2. Observe the result and verify the full behavior: Payment-to-invoice reconciliation.
**Expected Result:** Payment-to-invoice reconciliation. — delivered exactly as documented.
**Priority:** Medium

### TC-SPN-6-02-026 — Rule: Payment summary totals.
**Type:** Positive
**Covers:** 6.2 → Rule: Payment summary totals.
**Preconditions:** A Sponsor account is active and the Sponsor is in the state required for this behavior.
**Steps:**
1. As a Sponsor, set up the precondition and perform the action that triggers the rule: Payment summary totals.
2. Observe the result and verify the full behavior: Payment summary totals.
**Expected Result:** Payment summary totals. — delivered exactly as documented.
**Priority:** Medium
