diff --git a/apps/accounting_exports/migrations/0001_initial.py b/apps/accounting_exports/migrations/0001_initial.py index e6625b8..8551929 100644 --- a/apps/accounting_exports/migrations/0001_initial.py +++ b/apps/accounting_exports/migrations/0001_initial.py @@ -1,4 +1,4 @@ -# Generated by Django 4.1.2 on 2024-01-09 03:44 +# Generated by Django 4.1.2 on 2024-02-06 09:40 import django.contrib.postgres.fields from django.db import migrations, models @@ -11,9 +11,9 @@ class Migration(migrations.Migration): initial = True dependencies = [ + ('fyle_accounting_mappings', '0024_auto_20230922_0819'), ('workspaces', '0002_alter_workspace_ms_business_central_accounts_last_synced_at_and_more'), ('fyle', '0001_initial'), - ('fyle_accounting_mappings', '0024_auto_20230922_0819'), ] operations = [ diff --git a/apps/business_central/migrations/0001_initial.py b/apps/business_central/migrations/0001_initial.py index a78f8f2..1c1a2c9 100644 --- a/apps/business_central/migrations/0001_initial.py +++ b/apps/business_central/migrations/0001_initial.py @@ -1,4 +1,4 @@ -# Generated by Django 4.1.2 on 2024-01-09 03:44 +# Generated by Django 4.1.2 on 2024-02-06 09:40 from django.db import migrations, models import django.db.models.deletion @@ -10,9 +10,9 @@ class Migration(migrations.Migration): initial = True dependencies = [ + ('workspaces', '0002_alter_workspace_ms_business_central_accounts_last_synced_at_and_more'), ('accounting_exports', '0001_initial'), ('fyle', '0001_initial'), - ('workspaces', '0002_alter_workspace_ms_business_central_accounts_last_synced_at_and_more'), ] operations = [ @@ -23,6 +23,8 @@ class Migration(migrations.Migration): ('created_at', models.DateTimeField(auto_now_add=True, help_text='Created at')), ('updated_at', models.DateTimeField(auto_now=True, help_text='Updated at')), ('accounts_payable_account_id', ms_business_central_api.models.fields.StringNullField(help_text='destination id of accounts payable account', max_length=255, null=True)), + ('account_id', ms_business_central_api.models.fields.StringNullField(help_text='destination id of employee account', max_length=255, null=True)), + ('account_type', ms_business_central_api.models.fields.StringNullField(help_text='destination id of employee account', max_length=255, null=True)), ('amount', ms_business_central_api.models.fields.FloatNullField(help_text='Amount of the invoice', null=True)), ('comment', ms_business_central_api.models.fields.TextNotNullField(help_text='description for the invoice')), ('description', ms_business_central_api.models.fields.TextNullField(help_text='description for the invoice', null=True)), @@ -35,6 +37,42 @@ class Migration(migrations.Migration): 'db_table': 'journal_entries', }, ), + migrations.CreateModel( + name='PurchaseInvoice', + fields=[ + ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('created_at', models.DateTimeField(auto_now_add=True, help_text='Created at')), + ('updated_at', models.DateTimeField(auto_now=True, help_text='Updated at')), + ('accounting_date', ms_business_central_api.models.fields.CustomDateTimeField(help_text='accounting date of purchase invoice', null=True)), + ('amount', ms_business_central_api.models.fields.FloatNullField(help_text='Total Amount of the invoice', null=True)), + ('code', ms_business_central_api.models.fields.StringNullField(help_text='unique code for invoice', max_length=10, null=True)), + ('invoice_date', ms_business_central_api.models.fields.CustomDateTimeField(help_text='date of invoice', null=True)), + ('vendor_number', ms_business_central_api.models.fields.StringNullField(help_text='id of vendor', max_length=255, null=True)), + ('accounting_export', models.OneToOneField(help_text='Accounting Export reference', on_delete=django.db.models.deletion.PROTECT, related_name='purchase_invoice', to='accounting_exports.accountingexport')), + ('workspace', models.ForeignKey(help_text='Reference to Workspace model', on_delete=django.db.models.deletion.PROTECT, to='workspaces.workspace')), + ], + options={ + 'db_table': 'purchase_invoices', + }, + ), + migrations.CreateModel( + name='PurchaseInvoiceLineitems', + fields=[ + ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('created_at', models.DateTimeField(auto_now_add=True, help_text='Created at')), + ('updated_at', models.DateTimeField(auto_now=True, help_text='Updated at')), + ('accounts_payable_account_id', ms_business_central_api.models.fields.StringNullField(help_text='destination id of accounts payable account', max_length=255, null=True)), + ('amount', ms_business_central_api.models.fields.FloatNullField(help_text='Amount of the invoice', null=True)), + ('description', ms_business_central_api.models.fields.TextNotNullField(help_text='description for the invoice')), + ('location_id', ms_business_central_api.models.fields.StringNullField(help_text='location id of the invoice', max_length=255, null=True)), + ('expense', models.OneToOneField(help_text='Reference to Expense', on_delete=django.db.models.deletion.PROTECT, to='fyle.expense')), + ('purchase_invoice', models.ForeignKey(help_text='Reference to PurchaseInvoice', on_delete=django.db.models.deletion.PROTECT, to='business_central.purchaseinvoice')), + ('workspace', models.ForeignKey(help_text='Reference to Workspace model', on_delete=django.db.models.deletion.PROTECT, to='workspaces.workspace')), + ], + options={ + 'db_table': 'purchase_invoice_lineitems', + }, + ), migrations.CreateModel( name='JournalEntryLineItems', fields=[ @@ -42,6 +80,8 @@ class Migration(migrations.Migration): ('created_at', models.DateTimeField(auto_now_add=True, help_text='Created at')), ('updated_at', models.DateTimeField(auto_now=True, help_text='Updated at')), ('accounts_payable_account_id', ms_business_central_api.models.fields.StringNullField(help_text='destination id of accounts payable account', max_length=255, null=True)), + ('account_id', ms_business_central_api.models.fields.StringNullField(help_text='destination id of employee account', max_length=255, null=True)), + ('account_type', ms_business_central_api.models.fields.StringNullField(help_text='destination id of employee account', max_length=255, null=True)), ('amount', ms_business_central_api.models.fields.FloatNullField(help_text='Amount of the invoice', null=True)), ('comment', ms_business_central_api.models.fields.TextNotNullField(help_text='description for the invoice')), ('description', ms_business_central_api.models.fields.TextNullField(help_text='description for the invoice', null=True)), diff --git a/apps/business_central/migrations/0002_purchaseinvoice_journalentry_employee_account_id_and_more.py b/apps/business_central/migrations/0002_purchaseinvoice_journalentry_employee_account_id_and_more.py deleted file mode 100644 index fad876b..0000000 --- a/apps/business_central/migrations/0002_purchaseinvoice_journalentry_employee_account_id_and_more.py +++ /dev/null @@ -1,64 +0,0 @@ -# Generated by Django 4.1.2 on 2024-01-11 10:18 - -from django.db import migrations, models -import django.db.models.deletion -import ms_business_central_api.models.fields - - -class Migration(migrations.Migration): - - dependencies = [ - ('accounting_exports', '0001_initial'), - ('workspaces', '0003_rename_default_journal_entry_folder_id_exportsetting_journal_entry_folder_id_and_more'), - ('fyle', '0001_initial'), - ('business_central', '0001_initial'), - ] - - operations = [ - migrations.CreateModel( - name='PurchaseInvoice', - fields=[ - ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('created_at', models.DateTimeField(auto_now_add=True, help_text='Created at')), - ('updated_at', models.DateTimeField(auto_now=True, help_text='Updated at')), - ('accounting_date', ms_business_central_api.models.fields.CustomDateTimeField(help_text='accounting date of purchase invoice', null=True)), - ('amount', ms_business_central_api.models.fields.FloatNullField(help_text='Total Amount of the invoice', null=True)), - ('code', ms_business_central_api.models.fields.StringNullField(help_text='unique code for invoice', max_length=10, null=True)), - ('description', ms_business_central_api.models.fields.TextNotNullField(help_text='description for the invoice')), - ('invoice_date', ms_business_central_api.models.fields.CustomDateTimeField(help_text='date of invoice', null=True)), - ('vendor_number', ms_business_central_api.models.fields.StringNullField(help_text='id of vendor', max_length=255, null=True)), - ('accounting_export', models.OneToOneField(help_text='Accounting Export reference', on_delete=django.db.models.deletion.PROTECT, to='accounting_exports.accountingexport')), - ('workspace', models.ForeignKey(help_text='Reference to Workspace model', on_delete=django.db.models.deletion.PROTECT, to='workspaces.workspace')), - ], - options={ - 'db_table': 'purchase_invoices', - }, - ), - migrations.AddField( - model_name='journalentry', - name='employee_account_id', - field=ms_business_central_api.models.fields.StringNullField(help_text='destination id of employee account', max_length=255, null=True), - ), - migrations.AddField( - model_name='journalentrylineitems', - name='employee_account_id', - field=ms_business_central_api.models.fields.StringNullField(help_text='destination id of employee account', max_length=255, null=True), - ), - migrations.CreateModel( - name='PurchaseInvoiceLineitems', - fields=[ - ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('created_at', models.DateTimeField(auto_now_add=True, help_text='Created at')), - ('updated_at', models.DateTimeField(auto_now=True, help_text='Updated at')), - ('accounts_payable_account_id', ms_business_central_api.models.fields.StringNullField(help_text='destination id of accounts payable account', max_length=255, null=True)), - ('amount', ms_business_central_api.models.fields.FloatNullField(help_text='Amount of the invoice', null=True)), - ('description', ms_business_central_api.models.fields.TextNotNullField(help_text='description for the invoice')), - ('expense', models.OneToOneField(help_text='Reference to Expense', on_delete=django.db.models.deletion.PROTECT, to='fyle.expense')), - ('purchase_invoice', models.ForeignKey(help_text='Reference to PurchaseInvoice', on_delete=django.db.models.deletion.PROTECT, to='business_central.purchaseinvoice')), - ('workspace', models.ForeignKey(help_text='Reference to Workspace model', on_delete=django.db.models.deletion.PROTECT, to='workspaces.workspace')), - ], - options={ - 'db_table': 'purchase_invoice_lineitems', - }, - ), - ] diff --git a/apps/business_central/migrations/0003_remove_purchaseinvoice_description.py b/apps/business_central/migrations/0003_remove_purchaseinvoice_description.py deleted file mode 100644 index 6a76d94..0000000 --- a/apps/business_central/migrations/0003_remove_purchaseinvoice_description.py +++ /dev/null @@ -1,17 +0,0 @@ -# Generated by Django 4.1.2 on 2024-01-11 11:20 - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('business_central', '0002_purchaseinvoice_journalentry_employee_account_id_and_more'), - ] - - operations = [ - migrations.RemoveField( - model_name='purchaseinvoice', - name='description', - ), - ] diff --git a/apps/business_central/migrations/0004_alter_purchaseinvoice_accounting_export.py b/apps/business_central/migrations/0004_alter_purchaseinvoice_accounting_export.py deleted file mode 100644 index c7b6414..0000000 --- a/apps/business_central/migrations/0004_alter_purchaseinvoice_accounting_export.py +++ /dev/null @@ -1,20 +0,0 @@ -# Generated by Django 4.1.2 on 2024-01-11 11:44 - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('accounting_exports', '0001_initial'), - ('business_central', '0003_remove_purchaseinvoice_description'), - ] - - operations = [ - migrations.AlterField( - model_name='purchaseinvoice', - name='accounting_export', - field=models.OneToOneField(help_text='Accounting Export reference', on_delete=django.db.models.deletion.PROTECT, related_name='purchase_invoice', to='accounting_exports.accountingexport'), - ), - ] diff --git a/apps/business_central/migrations/0005_rename_employee_account_id_journalentry_account_id_and_more.py b/apps/business_central/migrations/0005_rename_employee_account_id_journalentry_account_id_and_more.py deleted file mode 100644 index 301aef1..0000000 --- a/apps/business_central/migrations/0005_rename_employee_account_id_journalentry_account_id_and_more.py +++ /dev/null @@ -1,34 +0,0 @@ -# Generated by Django 4.1.2 on 2024-01-16 04:14 - -from django.db import migrations -import ms_business_central_api.models.fields - - -class Migration(migrations.Migration): - - dependencies = [ - ('business_central', '0004_alter_purchaseinvoice_accounting_export'), - ] - - operations = [ - migrations.RenameField( - model_name='journalentry', - old_name='employee_account_id', - new_name='account_id', - ), - migrations.RenameField( - model_name='journalentrylineitems', - old_name='employee_account_id', - new_name='account_id', - ), - migrations.AddField( - model_name='journalentry', - name='account_type', - field=ms_business_central_api.models.fields.StringNullField(help_text='destination id of employee account', max_length=255, null=True), - ), - migrations.AddField( - model_name='journalentrylineitems', - name='account_type', - field=ms_business_central_api.models.fields.StringNullField(help_text='destination id of employee account', max_length=255, null=True), - ), - ] diff --git a/apps/business_central/migrations/0006_purchaseinvoicelineitems_location_id.py b/apps/business_central/migrations/0006_purchaseinvoicelineitems_location_id.py deleted file mode 100644 index d40db65..0000000 --- a/apps/business_central/migrations/0006_purchaseinvoicelineitems_location_id.py +++ /dev/null @@ -1,19 +0,0 @@ -# Generated by Django 4.1.2 on 2024-01-17 07:39 - -from django.db import migrations -import ms_business_central_api.models.fields - - -class Migration(migrations.Migration): - - dependencies = [ - ('business_central', '0005_rename_employee_account_id_journalentry_account_id_and_more'), - ] - - operations = [ - migrations.AddField( - model_name='purchaseinvoicelineitems', - name='location_id', - field=ms_business_central_api.models.fields.StringNullField(help_text='location id of the invoice', max_length=255, null=True), - ), - ] diff --git a/apps/fyle/migrations/0001_initial.py b/apps/fyle/migrations/0001_initial.py index 2f0a6ed..715b191 100644 --- a/apps/fyle/migrations/0001_initial.py +++ b/apps/fyle/migrations/0001_initial.py @@ -1,4 +1,4 @@ -# Generated by Django 4.1.2 on 2024-01-09 03:44 +# Generated by Django 4.1.2 on 2024-02-06 09:40 import django.contrib.postgres.fields import django.core.validators diff --git a/apps/mappings/migrations/0001_initial.py b/apps/mappings/migrations/0001_initial.py index 385a093..fdaf847 100644 --- a/apps/mappings/migrations/0001_initial.py +++ b/apps/mappings/migrations/0001_initial.py @@ -1,4 +1,4 @@ -# Generated by Django 4.1.2 on 2024-01-09 03:44 +# Generated by Django 4.1.2 on 2024-02-06 09:40 from django.db import migrations, models import django.db.models.deletion diff --git a/apps/workspaces/migrations/0002_alter_workspace_ms_business_central_accounts_last_synced_at_and_more.py b/apps/workspaces/migrations/0002_alter_workspace_ms_business_central_accounts_last_synced_at_and_more.py index cde8395..aa1786d 100644 --- a/apps/workspaces/migrations/0002_alter_workspace_ms_business_central_accounts_last_synced_at_and_more.py +++ b/apps/workspaces/migrations/0002_alter_workspace_ms_business_central_accounts_last_synced_at_and_more.py @@ -1,4 +1,4 @@ -# Generated by Django 4.1.2 on 2024-01-09 03:44 +# Generated by Django 4.1.2 on 2024-02-06 09:40 import apps.workspaces.models import django.contrib.postgres.fields @@ -49,7 +49,7 @@ class Migration(migrations.Migration): ('updated_at', models.DateTimeField(auto_now=True, help_text='Updated at datetime')), ('import_categories', ms_business_central_api.models.fields.BooleanFalseField(default=True, help_text='toggle for import of chart of accounts from Business Central')), ('import_vendors_as_merchants', ms_business_central_api.models.fields.BooleanFalseField(default=True, help_text='toggle for import of vendors as merchant from Business Central')), - ('workspace', models.OneToOneField(help_text='Reference to Workspace model', on_delete=django.db.models.deletion.PROTECT, to='workspaces.workspace')), + ('workspace', models.OneToOneField(help_text='Reference to Workspace model', on_delete=django.db.models.deletion.PROTECT, related_name='import_settings', to='workspaces.workspace')), ], options={ 'db_table': 'import_settings', @@ -77,24 +77,20 @@ class Migration(migrations.Migration): ('updated_at', models.DateTimeField(auto_now=True, help_text='Updated at datetime')), ('reimbursable_expenses_export_type', ms_business_central_api.models.fields.StringOptionsField(choices=[('PURCHASE_INVOICE', 'PURCHASE_INVOICE'), ('JOURNAL_ENTRY', 'JOURNAL_ENTRY')], default='', help_text='string field with options', max_length=255, null=True)), ('default_bank_account_name', ms_business_central_api.models.fields.StringNullField(help_text='Bank account name', max_length=255, null=True)), - ('default_back_account_id', ms_business_central_api.models.fields.StringNullField(help_text='Bank Account ID', max_length=255, null=True)), + ('default_bank_account_id', ms_business_central_api.models.fields.StringNullField(help_text='Bank Account ID', max_length=255, null=True)), ('reimbursable_expense_state', ms_business_central_api.models.fields.StringOptionsField(choices=[('PAYMENT_PROCESSING', 'PAYMENT_PROCESSING'), ('PAID', 'PAID')], default='', help_text='string field with options', max_length=255, null=True)), - ('reimbursable_expense_date', ms_business_central_api.models.fields.StringOptionsField(choices=[('LAST_SPENT_AT', 'last_spent_at'), ('CREATED_AT', 'created_at'), ('SPENT_AT', 'spent_at')], default='', help_text='string field with options', max_length=255, null=True)), + ('reimbursable_expense_date', ms_business_central_api.models.fields.StringOptionsField(choices=[('LAST_SPENT_AT', 'last_spent_at'), ('CURRENT_DATE', 'current_date'), ('SPENT_AT', 'spent_at')], default='', help_text='string field with options', max_length=255, null=True)), ('reimbursable_expense_grouped_by', ms_business_central_api.models.fields.StringOptionsField(choices=[('REPORT', 'report_id'), ('EXPENSE', 'expense_id')], default='', help_text='string field with options', max_length=255, null=True)), ('credit_card_expense_export_type', ms_business_central_api.models.fields.StringOptionsField(choices=[('JOURNAL_ENTRY', 'JOURNAL_ENTRY')], default='', help_text='string field with options', max_length=255, null=True)), ('credit_card_expense_state', ms_business_central_api.models.fields.StringOptionsField(choices=[('APPROVED', 'APPROVED'), ('PAYMENT_PROCESSING', 'PAYMENT_PROCESSING'), ('PAID', 'PAID')], default='', help_text='string field with options', max_length=255, null=True)), - ('default_reimbursable_account_name', ms_business_central_api.models.fields.StringNullField(help_text='Reimbursable account name', max_length=255, null=True)), - ('default_reimbursable_account_id', ms_business_central_api.models.fields.StringNullField(help_text='Reimbursable Account ID', max_length=255, null=True)), - ('default_ccc_credit_card_account_name', ms_business_central_api.models.fields.StringNullField(help_text='CCC Credit card account name', max_length=255, null=True)), - ('default_ccc_credit_card_account_id', ms_business_central_api.models.fields.StringNullField(help_text='CCC Credit Card Account ID', max_length=255, null=True)), - ('default_reimbursable_credit_card_account_name', ms_business_central_api.models.fields.StringNullField(help_text='Reimbursable Credit card account name', max_length=255, null=True)), - ('default_reimbursable_credit_card_account_id', ms_business_central_api.models.fields.StringNullField(help_text='Reimbursable Credit card account name', max_length=255, null=True)), ('credit_card_expense_grouped_by', ms_business_central_api.models.fields.StringOptionsField(choices=[('REPORT', 'report_id'), ('EXPENSE', 'expense_id')], default='', help_text='string field with options', max_length=255, null=True)), - ('credit_card_expense_date', ms_business_central_api.models.fields.StringOptionsField(choices=[('LAST_SPENT_AT', 'last_spent_at'), ('POSTED_AT', 'posted_at'), ('CREATED_AT', 'created_at')], default='', help_text='string field with options', max_length=255, null=True)), + ('credit_card_expense_date', ms_business_central_api.models.fields.StringOptionsField(choices=[('LAST_SPENT_AT', 'last_spent_at'), ('POSTED_AT', 'posted_at'), ('CURRENT_DATE', 'current_date'), ('SPENT_AT', 'spent_at')], default='', help_text='string field with options', max_length=255, null=True)), ('default_vendor_name', ms_business_central_api.models.fields.StringNullField(help_text='default Vendor Name', max_length=255, null=True)), ('default_vendor_id', ms_business_central_api.models.fields.StringNullField(help_text='default Vendor Id', max_length=255, null=True)), - ('auto_map_employees', ms_business_central_api.models.fields.BooleanTrueField(default=True, help_text='Auto map employees')), - ('default_journal_entry_folder_id', ms_business_central_api.models.fields.StringNullField(help_text='default Fyle journal entry id', max_length=255, null=True)), + ('journal_entry_folder_id', ms_business_central_api.models.fields.StringNullField(help_text='default Fyle journal entry id', max_length=255, null=True)), + ('employee_field_mapping', ms_business_central_api.models.fields.StringOptionsField(choices=[('EMPLOYEE', 'EMPLOYEE'), ('VENDOR', 'VENDOR')], default='', help_text='string field with options', max_length=255, null=True)), + ('name_in_journal_entry', ms_business_central_api.models.fields.StringOptionsField(choices=[('EMPLOYEE', 'EMPLOYEE'), ('MERCHANT', 'MERCHANT')], default='', help_text='string field with options', max_length=255, null=True)), + ('auto_map_employees', ms_business_central_api.models.fields.StringOptionsField(choices=[('NAME', 'NAME'), ('EMAIL', 'EMAIL')], default='', help_text='string field with options', max_length=255, null=True)), ('workspace', models.OneToOneField(help_text='Reference to Workspace model', on_delete=django.db.models.deletion.PROTECT, to='workspaces.workspace')), ], options={ diff --git a/apps/workspaces/migrations/0003_rename_default_journal_entry_folder_id_exportsetting_journal_entry_folder_id_and_more.py b/apps/workspaces/migrations/0003_rename_default_journal_entry_folder_id_exportsetting_journal_entry_folder_id_and_more.py deleted file mode 100644 index 678c0b0..0000000 --- a/apps/workspaces/migrations/0003_rename_default_journal_entry_folder_id_exportsetting_journal_entry_folder_id_and_more.py +++ /dev/null @@ -1,52 +0,0 @@ -# Generated by Django 4.1.2 on 2024-01-11 10:18 - -from django.db import migrations -import ms_business_central_api.models.fields - - -class Migration(migrations.Migration): - - dependencies = [ - ('workspaces', '0002_alter_workspace_ms_business_central_accounts_last_synced_at_and_more'), - ] - - operations = [ - migrations.RenameField( - model_name='exportsetting', - old_name='default_journal_entry_folder_id', - new_name='journal_entry_folder_id', - ), - migrations.RemoveField( - model_name='exportsetting', - name='auto_map_employees', - ), - migrations.RemoveField( - model_name='exportsetting', - name='default_ccc_credit_card_account_id', - ), - migrations.RemoveField( - model_name='exportsetting', - name='default_ccc_credit_card_account_name', - ), - migrations.RemoveField( - model_name='exportsetting', - name='default_reimbursable_account_id', - ), - migrations.RemoveField( - model_name='exportsetting', - name='default_reimbursable_account_name', - ), - migrations.RemoveField( - model_name='exportsetting', - name='default_reimbursable_credit_card_account_id', - ), - migrations.RemoveField( - model_name='exportsetting', - name='default_reimbursable_credit_card_account_name', - ), - migrations.AddField( - model_name='exportsetting', - name='emoloyee_mapping', - field=ms_business_central_api.models.fields.StringNullField(help_text='Employee Mapping', max_length=255, null=True), - ), - ] diff --git a/apps/workspaces/migrations/0004_exportsetting_import_vendors_as_merchants_and_more.py b/apps/workspaces/migrations/0004_exportsetting_import_vendors_as_merchants_and_more.py deleted file mode 100644 index 1d37756..0000000 --- a/apps/workspaces/migrations/0004_exportsetting_import_vendors_as_merchants_and_more.py +++ /dev/null @@ -1,29 +0,0 @@ -# Generated by Django 4.1.2 on 2024-01-16 04:14 - -from django.db import migrations -import ms_business_central_api.models.fields - - -class Migration(migrations.Migration): - - dependencies = [ - ('workspaces', '0003_rename_default_journal_entry_folder_id_exportsetting_journal_entry_folder_id_and_more'), - ] - - operations = [ - migrations.AddField( - model_name='exportsetting', - name='import_vendors_as_merchants', - field=ms_business_central_api.models.fields.BooleanFalseField(default=True, help_text='toggle for import of vendors as merchant from Business Central'), - ), - migrations.AddField( - model_name='exportsetting', - name='name_in_journal_entry', - field=ms_business_central_api.models.fields.StringOptionsField(choices=[('EMPLOYEE', 'EMPLOYEE'), ('MERCHANT', 'MERCHANT')], default='', help_text='string field with options', max_length=255, null=True), - ), - migrations.AlterField( - model_name='exportsetting', - name='emoloyee_mapping', - field=ms_business_central_api.models.fields.StringOptionsField(choices=[('EMPLOYEE', 'EMPLOYEE'), ('VENDOR', 'VENDOR')], default='', help_text='string field with options', max_length=255, null=True), - ), - ] diff --git a/apps/workspaces/migrations/0005_rename_emoloyee_mapping_exportsetting_employee_mapping.py b/apps/workspaces/migrations/0005_rename_emoloyee_mapping_exportsetting_employee_mapping.py deleted file mode 100644 index da24ae9..0000000 --- a/apps/workspaces/migrations/0005_rename_emoloyee_mapping_exportsetting_employee_mapping.py +++ /dev/null @@ -1,18 +0,0 @@ -# Generated by Django 4.1.2 on 2024-01-16 09:55 - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('workspaces', '0004_exportsetting_import_vendors_as_merchants_and_more'), - ] - - operations = [ - migrations.RenameField( - model_name='exportsetting', - old_name='emoloyee_mapping', - new_name='employee_mapping', - ), - ] diff --git a/apps/workspaces/migrations/0006_alter_importsetting_workspace.py b/apps/workspaces/migrations/0006_alter_importsetting_workspace.py deleted file mode 100644 index 7d49cee..0000000 --- a/apps/workspaces/migrations/0006_alter_importsetting_workspace.py +++ /dev/null @@ -1,19 +0,0 @@ -# Generated by Django 4.1.2 on 2024-01-16 14:24 - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('workspaces', '0005_rename_emoloyee_mapping_exportsetting_employee_mapping'), - ] - - operations = [ - migrations.AlterField( - model_name='importsetting', - name='workspace', - field=models.OneToOneField(help_text='Reference to Workspace model', on_delete=django.db.models.deletion.PROTECT, related_name='import_settings', to='workspaces.workspace'), - ), - ] diff --git a/apps/workspaces/migrations/0006_rename_employee_mapping_exportsetting_employee_field_mapping.py b/apps/workspaces/migrations/0006_rename_employee_mapping_exportsetting_employee_field_mapping.py deleted file mode 100644 index 82871e1..0000000 --- a/apps/workspaces/migrations/0006_rename_employee_mapping_exportsetting_employee_field_mapping.py +++ /dev/null @@ -1,18 +0,0 @@ -# Generated by Django 4.1.2 on 2024-01-17 11:07 - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('workspaces', '0005_rename_emoloyee_mapping_exportsetting_employee_mapping'), - ] - - operations = [ - migrations.RenameField( - model_name='exportsetting', - old_name='employee_mapping', - new_name='employee_field_mapping', - ), - ] diff --git a/apps/workspaces/migrations/0007_merge_20240117_1356.py b/apps/workspaces/migrations/0007_merge_20240117_1356.py deleted file mode 100644 index 2f3c3c7..0000000 --- a/apps/workspaces/migrations/0007_merge_20240117_1356.py +++ /dev/null @@ -1,14 +0,0 @@ -# Generated by Django 4.1.2 on 2024-01-17 13:56 - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('workspaces', '0006_alter_importsetting_workspace'), - ('workspaces', '0006_rename_employee_mapping_exportsetting_employee_field_mapping'), - ] - - operations = [ - ] diff --git a/apps/workspaces/migrations/0008_alter_exportsetting_reimbursable_expense_date.py b/apps/workspaces/migrations/0008_alter_exportsetting_reimbursable_expense_date.py deleted file mode 100644 index 170826a..0000000 --- a/apps/workspaces/migrations/0008_alter_exportsetting_reimbursable_expense_date.py +++ /dev/null @@ -1,19 +0,0 @@ -# Generated by Django 4.1.2 on 2024-01-18 13:13 - -from django.db import migrations -import ms_business_central_api.models.fields - - -class Migration(migrations.Migration): - - dependencies = [ - ('workspaces', '0007_merge_20240117_1356'), - ] - - operations = [ - migrations.AlterField( - model_name='exportsetting', - name='reimbursable_expense_date', - field=ms_business_central_api.models.fields.StringOptionsField(choices=[('LAST_SPENT_AT', 'last_spent_at'), ('CURRENT_DATE', 'current_date'), ('SPENT_AT', 'spent_at')], default='', help_text='string field with options', max_length=255, null=True), - ), - ] diff --git a/apps/workspaces/migrations/0008_remove_exportsetting_import_vendors_as_merchants_and_more.py b/apps/workspaces/migrations/0008_remove_exportsetting_import_vendors_as_merchants_and_more.py deleted file mode 100644 index e000ebb..0000000 --- a/apps/workspaces/migrations/0008_remove_exportsetting_import_vendors_as_merchants_and_more.py +++ /dev/null @@ -1,23 +0,0 @@ -# Generated by Django 4.1.2 on 2024-01-18 11:37 - -from django.db import migrations -import ms_business_central_api.models.fields - - -class Migration(migrations.Migration): - - dependencies = [ - ('workspaces', '0007_merge_20240117_1356'), - ] - - operations = [ - migrations.RemoveField( - model_name='exportsetting', - name='import_vendors_as_merchants', - ), - migrations.AddField( - model_name='exportsetting', - name='auto_map_employees', - field=ms_business_central_api.models.fields.StringOptionsField(choices=[('NAME', 'NAME'), ('EMAIL', 'EMAIL')], default='', help_text='string field with options', max_length=255, null=True), - ), - ] diff --git a/apps/workspaces/migrations/0009_rename_default_back_account_id_exportsetting_default_bank_account_id.py b/apps/workspaces/migrations/0009_rename_default_back_account_id_exportsetting_default_bank_account_id.py deleted file mode 100644 index 0b1a044..0000000 --- a/apps/workspaces/migrations/0009_rename_default_back_account_id_exportsetting_default_bank_account_id.py +++ /dev/null @@ -1,18 +0,0 @@ -# Generated by Django 4.1.2 on 2024-01-18 14:36 - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('workspaces', '0008_remove_exportsetting_import_vendors_as_merchants_and_more'), - ] - - operations = [ - migrations.RenameField( - model_name='exportsetting', - old_name='default_back_account_id', - new_name='default_bank_account_id', - ), - ] diff --git a/apps/workspaces/migrations/0010_alter_exportsetting_credit_card_expense_date_and_more.py b/apps/workspaces/migrations/0010_alter_exportsetting_credit_card_expense_date_and_more.py deleted file mode 100644 index a385eda..0000000 --- a/apps/workspaces/migrations/0010_alter_exportsetting_credit_card_expense_date_and_more.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by Django 4.1.2 on 2024-01-23 07:37 - -from django.db import migrations -import ms_business_central_api.models.fields - - -class Migration(migrations.Migration): - - dependencies = [ - ('workspaces', '0009_rename_default_back_account_id_exportsetting_default_bank_account_id'), - ] - - operations = [ - migrations.AlterField( - model_name='exportsetting', - name='credit_card_expense_date', - field=ms_business_central_api.models.fields.StringOptionsField(choices=[('LAST_SPENT_AT', 'last_spent_at'), ('POSTED_AT', 'posted_at'), ('CURRENT_DATE', 'current_date'), ('SPENT_AT', 'spent_at')], default='', help_text='string field with options', max_length=255, null=True), - ), - migrations.AlterField( - model_name='exportsetting', - name='reimbursable_expense_date', - field=ms_business_central_api.models.fields.StringOptionsField(choices=[('LAST_SPENT_AT', 'last_spent_at'), ('CURRENT_DATE', 'current_date'), ('SPENT_AT', 'spent_at')], default='', help_text='string field with options', max_length=255, null=True), - ), - ]