Skip to content

Commit

Permalink
feat: auto enable accounting period (#410)
Browse files Browse the repository at this point in the history
* feat: auto enable accounting period

* migrations

* reset db

* platform connector ver
  • Loading branch information
anishfyle authored Nov 18, 2024
1 parent 3ce6f94 commit 48a2761
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 3.2.14 on 2024-11-18 04:41

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('workspaces', '0038_alter_workspace_onboarding_state'),
]

operations = [
migrations.AlterField(
model_name='workspacegeneralsettings',
name='change_accounting_period',
field=models.BooleanField(default=True, help_text='Change the accounting period'),
),
]
2 changes: 1 addition & 1 deletion apps/workspaces/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ class WorkspaceGeneralSettings(models.Model):
default=False, help_text="Map Merchant to Contact for CCC Expenses"
)
change_accounting_period = models.BooleanField(
default=False, help_text="Change the accounting period"
default=True, help_text="Change the accounting period"
)
import_categories = models.BooleanField(
default=False, help_text="Auto import Categories to Fyle"
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ enum34==1.1.10
future==0.18.2
fyle==0.37.2
fyle-accounting-mappings==1.34.8
fyle-integrations-platform-connector==1.38.4
fyle-integrations-platform-connector==1.39.3
fyle-rest-auth==1.7.2
gevent==23.9.1
gunicorn==20.1.0
Expand Down
3 changes: 2 additions & 1 deletion tests/sql_fixtures/reset_db_fixtures/reset_db.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2639,6 +2639,7 @@ COPY public.django_migrations (id, app, name, applied) FROM stdin;
155 fyle_accounting_mappings 0026_destinationattribute_code 2024-10-01 09:00:27.71815+00
156 fyle 0021_expense_is_posted_at_null 2024-11-17 21:11:41.101604+00
157 tasks 0010_alter_tasklog_expense_group 2024-11-17 21:11:41.133814+00
158 workspaces 0039_alter_workspacegeneralsettings_change_accounting_period 2024-11-18 04:43:45.472917+00
\.


Expand Down Expand Up @@ -5176,7 +5177,7 @@ SELECT pg_catalog.setval('public.django_content_type_id_seq', 40, true);
-- Name: django_migrations_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.django_migrations_id_seq', 157, true);
SELECT pg_catalog.setval('public.django_migrations_id_seq', 158, true);


--
Expand Down

0 comments on commit 48a2761

Please sign in to comment.