-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support for standard and normal categories and cost code
- Loading branch information
1 parent
36f7a24
commit 2d16e78
Showing
8 changed files
with
218 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Generated by Django 4.1.2 on 2023-10-30 18:07 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
import sage_desktop_api.models.fields | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('workspaces', '0002_sage300credential_importsetting_fylecredential_and_more'), | ||
('fyle', '0001_initial'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='DependentFieldSetting', | ||
fields=[ | ||
('created_at', models.DateTimeField(auto_now_add=True, help_text='Created at datetime')), | ||
('updated_at', models.DateTimeField(auto_now=True, help_text='Updated at datetime')), | ||
('id', models.AutoField(primary_key=True, serialize=False)), | ||
('is_import_enabled', sage_desktop_api.models.fields.BooleanFalseField(default=True, help_text='Is Import Enabled')), | ||
('project_field_id', sage_desktop_api.models.fields.IntegerNotNullField(help_text='Fyle Source Field ID')), | ||
('cost_code_field_name', sage_desktop_api.models.fields.StringNotNullField(help_text='Fyle Cost Code Field Name', max_length=255)), | ||
('cost_code_field_id', sage_desktop_api.models.fields.StringNotNullField(help_text='Fyle Cost Code Field ID', max_length=255)), | ||
('cost_code_placeholder', models.TextField(blank=True, help_text='Placeholder for Cost code', null=True)), | ||
('category_field_name', sage_desktop_api.models.fields.StringNotNullField(help_text='Fyle Cost Type Field Name', max_length=255)), | ||
('category_field_id', sage_desktop_api.models.fields.StringNotNullField(help_text='Fyle Cost Type Field ID', max_length=255)), | ||
('category_placeholder', models.TextField(blank=True, help_text='Placeholder for Cost Type', null=True)), | ||
('last_successful_import_at', sage_desktop_api.models.fields.CustomDateTimeField(help_text='Last Successful Import At', null=True)), | ||
('workspace', models.OneToOneField(help_text='Reference to Workspace model', on_delete=django.db.models.deletion.PROTECT, to='workspaces.workspace')), | ||
], | ||
options={ | ||
'db_table': 'dependent_field_settings', | ||
}, | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Generated by Django 4.1.2 on 2023-10-31 06:48 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
import sage_desktop_api.models.fields | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('workspaces', '0002_sage300credential_importsetting_fylecredential_and_more'), | ||
('sage300', '0001_initial'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='Sage300Categories', | ||
fields=[ | ||
('created_at', models.DateTimeField(auto_now_add=True, help_text='Created at datetime')), | ||
('updated_at', models.DateTimeField(auto_now=True, help_text='Updated at datetime')), | ||
('id', models.AutoField(primary_key=True, serialize=False)), | ||
('job_id', sage_desktop_api.models.fields.StringNotNullField(help_text='Sage300 Job Id', max_length=255)), | ||
('job_name', sage_desktop_api.models.fields.StringNotNullField(help_text='Sage300 Job Name', max_length=255)), | ||
('cost_code_id', sage_desktop_api.models.fields.StringNotNullField(help_text='Sage300 Cost Code Id', max_length=255)), | ||
('cost_code_name', sage_desktop_api.models.fields.StringNotNullField(help_text='Sage300 Cost Code Name', max_length=255)), | ||
('name', sage_desktop_api.models.fields.StringNotNullField(help_text='Sage300 Cost Type Name', max_length=255)), | ||
('category_id', sage_desktop_api.models.fields.StringNotNullField(help_text='Sage300 Category Id', max_length=255)), | ||
('status', sage_desktop_api.models.fields.BooleanFalseField(default=True, help_text='Sage300 Cost Type Status')), | ||
('workspace', models.ForeignKey(help_text='Reference to Workspace model', on_delete=django.db.models.deletion.PROTECT, to='workspaces.workspace')), | ||
], | ||
options={ | ||
'db_table': 'sage300_categories', | ||
}, | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters