# Generated by Django 5.2.19 on 2026-11-29 17:12

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('accounting', '0006_accountingpolicy_default_valuation_method_and_more'),
    ]

    operations = [
        migrations.AddField(
            model_name='accountingpolicy',
            name='auto_create_open_items',
            field=models.BooleanField(default=True),
        ),
        migrations.AddField(
            model_name='accountingpolicy',
            name='default_aging_buckets',
            field=models.JSONField(blank=True, default=list, help_text='Ordered overdue day breakpoints e.g. [0, 30, 60, 90, 180, 365]'),
        ),
        migrations.AddField(
            model_name='accountingpolicy',
            name='require_explicit_bill_allocation',
            field=models.BooleanField(default=True),
        ),
        migrations.AlterField(
            model_name='account',
            name='control_role',
            field=models.CharField(choices=[('NONE', 'Regular Ledger Account'), ('SUNDRY_DEBTORS', 'Sundry Debtors (Customer Control)'), ('SUNDRY_CREDITORS', 'Sundry Creditors (Supplier Control)'), ('SUBCONTRACTOR_PAYABLE', 'Subcontractor Payable Control'), ('RETENTION_RECEIVABLE', 'Retention Receivable'), ('RETENTION_PAYABLE', 'Retention Payable'), ('INVENTORY', 'Inventory / Stock Control'), ('GRNI', 'Goods Received Not Invoiced (GRNI)'), ('PROJECT_WIP', 'Project Work-in-Progress (WIP)'), ('CASH', 'Cash in Hand'), ('BANK', 'Bank Account'), ('INPUT_VAT', 'Input VAT Recoverable'), ('OUTPUT_VAT', 'Output VAT Payable'), ('TDS_PAYABLE', 'TDS Withholding Payable'), ('TDS_RECEIVABLE', 'TDS Advance Receivable'), ('CUSTOMER_ADVANCE', 'Customer / Mobilization Advance Liability'), ('SUPPLIER_ADVANCE', 'Supplier Advance Asset'), ('EMPLOYEE_ADVANCE', 'Employee / Staff Advance'), ('EMPLOYEE_PAYABLE', 'Employee Payables'), ('WAGES_PAYABLE', 'Wages Payable'), ('PF_SSF_PAYABLE', 'PF / SSF / CIT Statutory Payable'), ('EMPLOYEE_REIMBURSEMENT', 'Employee Reimbursement Payable'), ('STAFF_LOAN_RECEIVABLE', 'Staff Loan Receivable'), ('OFFICE_EXPENSES', 'Office & Administrative Expenses'), ('DIRECT_EXPENSES', 'Direct Construction Expenses'), ('OUTSTANDING_EXPENSES', 'Outstanding / Accrued Expenses'), ('OTHER_INCOME', 'Other Income & Gains'), ('LOSS_WRITE_OFF', 'Losses & Write-offs'), ('BAD_DEBT_ALLOWANCE', 'Allowance / Provision for Doubtful Debts'), ('FX_GAIN', 'Foreign Exchange Gain'), ('FX_LOSS', 'Foreign Exchange Loss'), ('DEPRECIATION_EXP', 'Depreciation Expense'), ('ACCUM_DEPRECIATION', 'Accumulated Depreciation (Contra Asset)')], db_index=True, default='NONE', max_length=28),
        ),
    ]
