# Generated by Django 5.1.4 on 2026-05-23 11:32

import django.db.models.deletion
from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('finance_and_accounting', '0009_accounting_period'),
        ('human_resource', '0007_alter_payrollsheet_payroll_sheet_total_commission_value_and_more'),
        ('system_administration', '0003_companyemailsettings_marketing'),
    ]

    operations = [
        migrations.AlterField(
            model_name='accountmapping',
            name='mapping_type',
            field=models.CharField(choices=[('payment_method', 'Payment Method'), ('expense_category', 'Expense Category'), ('deposit_source', 'Deposit Source'), ('tax', 'Tax'), ('invoice_posting', 'Invoice Posting'), ('payment_posting_sale', 'Payment Posting – Sales'), ('payment_posting_expense', 'Payment Posting – Expenses'), ('purchase_posting', 'Purchase Bill Posting'), ('credit_note_posting', 'Credit Note Posting'), ('payroll_posting', 'Payroll Posting')], max_length=30),
        ),
        migrations.CreateModel(
            name='AccountingSettings',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('fiscal_year_start_month', models.CharField(choices=[('january', 'January'), ('february', 'February'), ('march', 'March'), ('april', 'April'), ('may', 'May'), ('june', 'June'), ('july', 'July'), ('august', 'August'), ('september', 'September'), ('october', 'October'), ('november', 'November'), ('december', 'December')], default='january', max_length=20)),
                ('tax_year_start_month', models.CharField(default='same_as_fiscal', help_text="'same_as_fiscal' or a month slug", max_length=30)),
                ('accounting_method', models.CharField(choices=[('cash', 'Cash'), ('accrual', 'Accrual')], default='accrual', max_length=10)),
                ('close_books', models.BooleanField(default=False)),
                ('closing_date', models.DateField(blank=True, null=True)),
                ('enable_account_numbers', models.BooleanField(default=True)),
                ('show_account_numbers', models.BooleanField(default=True)),
                ('updated_on', models.DateTimeField(auto_now=True)),
                ('company_branch', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='accounting_settings', to='system_administration.companybranch')),
                ('updated_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='settings_updated_by', to='human_resource.staffprofile')),
            ],
        ),
    ]
