-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Tests for Split Expenses * coderabbit suggestion * updated tests * flake8 * replacing workspace * bank_transaction_id * bank_transaction_id fixtures * fixing fixtures * Revert fixtures * updated fixtures * updated tests * revert for original test * updated fixtures * flake8 * added bank_transaction_id to fixture * updated keys * updated tests * mock code removed * added support for split_expense_grouping based on line item selection * pr comments * updated tests with fixtures * PR Comments * Model changes for Split Expenses (#632) * Model changes for Split Expenses * split expense grouping key * Updated Model and SQL Fixtures * Fixed tests for expense_groups_settings * pr comments * pr comment * revert reset db sql * new migration with sql fixtures * Split Expense: Grouping function (#638) * Initial Commit * grouping function * model changes final * extend the filtered_corporate_credit_card_expense_groups * flake8 * flake8 * flake8 * removed trailing spaces * pr comment * Split Expense: purchase number generation (#639) * Initial Commit * grouping function * model changes final * extend the filtered_corporate_credit_card_expense_groups * flake8 * flake8 * flake8 * removed trailing spaces * Purchase number generation * flake8 whitespace * sql fixtures and script * pr comment * pr comment * revert reset db * reset db * Split Expense: serializers (#641) * Split Expense: serializers * minor fixes * pr comments * fix tests and fixtures * updated fixtures * Updated fixtures * updated broken tests fixture
- Loading branch information
Showing
12 changed files
with
667 additions
and
81 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,24 @@ | ||
# Generated by Django 3.2.14 on 2024-06-25 10:35 | ||
|
||
import apps.fyle.models | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('fyle', '0036_expense_paid_on_fyle'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='expense', | ||
name='bank_transaction_id', | ||
field=models.CharField(blank=True, help_text='Bank Transaction ID', max_length=255, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='expensegroupsettings', | ||
name='split_expense_grouping', | ||
field=models.CharField(choices=[('SINGLE_LINE_ITEM', 'SINGLE_LINE_ITEM'), ('MULTIPLE_LINE_ITEM', 'MULTIPLE_LINE_ITEM')], default=apps.fyle.models.get_default_split_expense_grouping, help_text='specify line items for split expenses grouping', max_length=100), | ||
), | ||
] |
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
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,5 @@ | ||
rollback; | ||
begin; | ||
|
||
UPDATE expense_group_settings | ||
SET split_expense_grouping = 'SINGLE_LINE_ITEM'; |
Oops, something went wrong.