# Revenue Legacy Parity Contract — H10.9

| Legacy function | Confirmed expression/source | Modern mapping |
|---|---|---|
| `monthly_revenue` | `SUM(NVL(CREDIT_VALUE,0)+NVL(CASH_VALUE,0))` from `T_INP_OUTP_REVENUE_BATCH` | `RevenueRepository::monthlyRevenue(total)` |
| `monthly_revenue_csh` | `SUM(NVL(CASH_VALUE,0))` | `RevenueRepository::monthlyRevenue(cash)` |
| `monthly_revenue_ins` | `SUM(NVL(CREDIT_VALUE,0))` | `RevenueRepository::monthlyRevenue(insurance)` |
| `monthly_revenue_moh` | Total expression filtered by configured `CUSTOMER_CODE` | `RevenueRepository::monthlyRevenue(moh)` |
| `monthly_profilt_loss` | `INCOME_STATMENTS.CURR` by `COMP_ID`, year, month | `RevenueRepository::monthlyProfitLoss` |

## Period contract

- Year mode: selected year vs selected comparison year.
- Date-range mode: From/To must be within one year.
- Revenue comparison range: same month/day in comparison year.
- Profit/Loss range: inclusive selected month span.

## Acceptance

`PARITY PASS` requires:

- 12 month rows from both paths.
- Every current-month difference <= 0.01.
- Every comparison-month difference <= 0.01.
- Current total difference <= 0.01.
- Comparison total difference <= 0.01.
- No Oracle write operation.
