Payroll_PayrollBenefits
Payroll.PayrollBenefits Table Documentation
Purpose
The Payroll.PayrollBenefits
table tracks benefit deductions and contributions for each payroll cycle, linking payroll transactions to benefit plans. It stores both employee and employer contribution amounts, benefit types, and coverage levels. This table is essential for benefits cost analysis, payroll reconciliation, and compliance reporting.
Table Structure
Field Name | Data Type | Nullable | Description | Source Table | Source Field | Transformation Notes |
---|---|---|---|---|---|---|
PayrollBenefitsID | INT | NO | Primary key, unique identifier | PAYROLL_BENEFITS | BENEFIT_ID | Direct mapping |
PayrollTransactionID | INT | NO | Foreign key to Payroll.PayrollTransaction | PAYROLL_BENEFITS | TRANSACTION_ID | Direct mapping |
BenefitCode | VARCHAR(20) | NO | Benefit plan code | PAYROLL_BENEFITS | BENEFIT_CODE | Direct mapping |
BenefitType | VARCHAR(50) | NO | Type of benefit | PAYROLL_BENEFITS | BENEFIT_TYPE | Mapped from codes |
CoverageLevel | VARCHAR(20) | NO | Benefit coverage level | PAYROLL_BENEFITS | COVERAGE_LEVEL | Direct mapping |
EmployeeContribution | DECIMAL(10,2) | NO | Employee contribution amount | PAYROLL_BENEFITS | EMPL_CONTRIB | Direct mapping |
EmployerContribution | DECIMAL(10,2) | NO | Employer contribution amount | PAYROLL_BENEFITS | EMPR_CONTRIB | Direct mapping |
TotalCost | DECIMAL(10,2) | NO | Total benefit cost | PAYROLL_BENEFITS | TOTAL_COST | Calculated |
DeductionType | VARCHAR(20) | NO | Type of deduction | PAYROLL_BENEFITS | DEDUCTION_TYPE | Mapped from codes |
IsFixedAmount | BIT | NO | Fixed amount indicator | PAYROLL_BENEFITS | IS_FIXED | Direct mapping |
IsPercentage | BIT | NO | Percentage-based indicator | PAYROLL_BENEFITS | IS_PERCENT | Direct mapping |
BaseAmount | DECIMAL(10,2) | YES | Base amount for calculations | PAYROLL_BENEFITS | BASE_AMOUNT | Direct mapping |
PercentageRate | DECIMAL(5,2) | YES | Percentage rate for calculations | PAYROLL_BENEFITS | PERCENT_RATE | Direct mapping |
CreatedDate | DATETIME | NO | Record creation date | N/A | N/A | System generated |
ModifiedDate | DATETIME | NO | Last modification date | N/A | N/A | System generated |
Source System Mapping
Primary Source: PAYROLL_BENEFITS Table
- Contains benefit deduction information
- Updated with each payroll cycle
- Key fields mapped directly to Payroll.PayrollBenefits
Secondary Sources:
-
BENEFIT_ENROLLMENTS Table
- Current benefit enrollment information
- Used for validation
- Updated when enrollments change
-
BENEFIT_PLANS Table
- Benefit plan definitions
- Used for plan validation
- Updated when plans change
Data Transformation Rules
-
Benefit Type Mapping
Source Code -> Target Type 'HLTH' -> 'Health' 'DENT' -> 'Dental' 'VISION' -> 'Vision' 'LIFE' -> 'Life Insurance' 'DIS' -> 'Disability' 'RET' -> 'Retirement' 'FSA' -> 'Flexible Spending'
-
Deduction Type Mapping
Source Code -> Target Type 'PRE' -> 'Pre-Tax' 'POST' -> 'Post-Tax' 'ROTH' -> 'Roth' 'NONE' -> 'No Deduction'
-
Total Cost Calculation
TotalCost = EmployeeContribution + EmployerContribution
-
Fixed Amount Derivation
IsFixedAmount = CASE WHEN BaseAmount IS NOT NULL AND PercentageRate IS NULL THEN 1 ELSE 0 END
-
Percentage Derivation
IsPercentage = CASE WHEN PercentageRate IS NOT NULL AND BaseAmount IS NOT NULL THEN 1 ELSE 0 END
Data Quality Rules
-
Required Fields
- PayrollBenefitsID
- PayrollTransactionID
- BenefitCode
- BenefitType
- CoverageLevel
- EmployeeContribution
- EmployerContribution
- TotalCost
- DeductionType
- IsFixedAmount
- IsPercentage
-
Validation Rules
- TotalCost must equal sum of contributions
- BaseAmount must be positive if present
- PercentageRate must be between 0 and 100 if present
- BenefitCode must be valid
- CoverageLevel must be valid
-
Business Rules
- Contributions must match benefit plan rules
- Deduction types must align with benefit types
- Fixed amounts or percentages must be specified
- Coverage levels must be valid for benefit type
Usage Notes
-
Reporting Considerations
- Use BenefitType for benefits analysis
- Consider DeductionType for tax reporting
- Track contribution patterns
- Monitor total costs
-
Performance Considerations
- Indexed on PayrollBenefitsID, PayrollTransactionID, and BenefitCode
- Consider filtering on BenefitType for specific analyses
- Use CreatedDate/ModifiedDate for incremental loads
-
Integration Points
- Links to Payroll.PayrollTransaction via PayrollTransactionID
- Links to Benefits.BenefitPlan via BenefitCode
- Used in benefits cost analysis
- Source for compliance reporting
Maintenance
-
Refresh Schedule
- Updated with each payroll cycle
- Full refresh monthly
- Emergency updates for corrections
-
Archive Strategy
- Historical benefits maintained in table
- Use PayrollTransactionID for historical filtering
- Benefits history tracked for compliance
-
Monitoring
- Track benefits by employee
- Monitor contribution patterns
- Alert on validation rule violations
- Track cost trends