
# Loan System Changes - Admin Guide
==========================================

## Changes Implemented

### 1. New Loan Number Format
- **Old Format**: LOAN-000001, LOAN-000002, etc.
- **New Format**: DDMMYYYY-NNNNNN (e.g., 11112026-000001)
- The date represents the disbursement date
- The number is sequential for that day

### 2. Rolled Over Loans
- When a loan is rolled over, it **retains its original loan number**
- The original loan is marked as "ROLLED OVER" 
- The new loan appears as "RENEWED" but with the same loan number
- This makes it easy to track loan history
- Only interest and fees change during rollover

### 3. SMS Notifications Toggle
- Navigate to: **Admin Panel → System Settings**
- Find the field: **SMS Notifications Enabled**
- Toggle this checkbox to enable/disable ALL customer SMS
- When disabled:
  - No SMS will be sent to customers
  - SMS attempts are logged but skipped
  - Admin can see skipped messages in SMS logs
- When re-enabled, SMS sending resumes immediately

## How to Disable SMS Notifications

1. Log in to Django Admin: http://yourdomain.com/admin/
2. Go to: **Reports → System Settings**
3. Click on the existing settings record
4. Uncheck: **Sms notifications enabled**
5. Click **Save**

All SMS will now be disabled until you re-enable this setting.

## Testing Checklist

- [ ] Create a new loan and verify the loan number format
- [ ] Rollover an existing loan and verify it keeps the same number
- [ ] Check that rolled over loans are clearly marked
- [ ] Disable SMS notifications and verify no SMS are sent
- [ ] Re-enable SMS and verify SMS resume

## Support

If you encounter any issues, check:
- SMS Logs page for skipped messages
- Loan details page for rollover status
- System logs for any errors

