-
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.
* feat: Netsuite Tax Override * fix comments * Fix tests * feat: netsuite tax override tests (#667) * feat: netsuite tax override tests * increase cov --------- Co-authored-by: GitHub Actions <[email protected]> * fix: get tax mapping (#669) * fix: Get Tax Mapping * fix tests --------- Co-authored-by: GitHub Actions <[email protected]> --------- Co-authored-by: GitHub Actions <[email protected]>
- Loading branch information
Showing
10 changed files
with
598 additions
and
270 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
apps/mappings/migrations/0015_generalmapping_is_tax_balancing_enabled.py
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,18 @@ | ||
# Generated by Django 3.2.14 on 2024-11-04 10:38 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('mappings', '0014_auto_20240417_0807'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='generalmapping', | ||
name='is_tax_balancing_enabled', | ||
field=models.BooleanField(default=False, help_text='Is tax balancing enabled'), | ||
), | ||
] |
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
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -2,6 +2,33 @@ | |
from datetime import datetime, timezone | ||
|
||
data = { | ||
'tax_list_detail' : { | ||
'taxDetails': [ | ||
{ | ||
'taxType': { | ||
'internalId': 'tax_type_1' | ||
}, | ||
'taxCode': { | ||
'internalId': 'tax_code_1' | ||
}, | ||
'taxRate': 'tax_type_1', | ||
'taxBasis': 90.0, | ||
'taxAmount': 10.0, | ||
'taxDetailsReference': 'EXP001' | ||
}, | ||
{ | ||
'taxType': { | ||
'internalId': 'tax_type_1' | ||
}, | ||
'taxCode': { | ||
'internalId': 'tax_code_1' | ||
}, | ||
'taxRate': 'tax_type_1', 'taxBasis': 180.0, | ||
'taxAmount': 20.0, | ||
'taxDetailsReference': 'EXP002' | ||
} | ||
] | ||
}, | ||
'expense':[{ | ||
"id": 1, | ||
"employee_email": "[email protected]", | ||
|
@@ -964,7 +991,12 @@ | |
'taxAccount': None, | ||
'taxBasis': None, | ||
'tax1Amt': None, | ||
'taxCode': None, | ||
'taxCode': { | ||
'externalId': None, | ||
'internalId': None, | ||
'name': None, | ||
'type': 'taxGroup' | ||
}, | ||
'taxRate1': None, | ||
'totalAmount': None, | ||
}, { | ||
|
@@ -1170,17 +1202,19 @@ | |
'location': {'internalId': None}, | ||
'customer': {'internalId': None}, | ||
'customFieldList': [{'scriptId': 'custcolfyle_expense_url', | ||
'type': 'String', | ||
'value': 'None/app/admin/#/enterprise/view_expense/txcKVVELn1Vl?org_id=orHe8CpW2hyN' | ||
},{'scriptId': 'custcolfyle_expense_url_2', | ||
'type': 'String', | ||
'value': 'None/app/admin/#/enterprise/view_expense/txcKVVELn1Vl?org_id=orHe8CpW2hyN' | ||
}], | ||
'isBillable': False, | ||
'taxAmount': None, | ||
'taxCode': { | ||
'name': None, | ||
'internalId': None, | ||
'externalId': None, | ||
'type': 'taxGroup', | ||
'internalId': None, | ||
'name': None, | ||
'type': 'taxGroup' | ||
}, | ||
}], | ||
'externalId': 'cc-charge 48 - [email protected]', | ||
|
Oops, something went wrong.