-
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.
add support for class department on bill top level (#502)
* add support for class department on bill top level * Fixing a small thing in SQL fixture * Fix Tests --------- Co-authored-by: Shwetabh Kumar <[email protected]>
- Loading branch information
Showing
7 changed files
with
106 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,28 @@ | ||
# Generated by Django 3.2.14 on 2024-02-29 08:04 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('mappings', '0012_generalmapping_override_tax_details'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='generalmapping', | ||
name='class_id', | ||
field=models.CharField(help_text='NetSuite Class id', max_length=255, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='generalmapping', | ||
name='class_level', | ||
field=models.CharField(help_text='Transaction Body, Line, Both', max_length=255, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='generalmapping', | ||
name='class_name', | ||
field=models.CharField(help_text='NetSuite Class name', max_length=255, null=True), | ||
), | ||
] |
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,23 @@ | ||
# Generated by Django 3.2.14 on 2024-02-29 08:04 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('netsuite', '0024_bill_override_tax_details'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='bill', | ||
name='class_id', | ||
field=models.CharField(help_text='NetSuite Class id', max_length=255, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='creditcardcharge', | ||
name='class_id', | ||
field=models.CharField(help_text='NetSuite Class id', max_length=255, null=True), | ||
), | ||
] |
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 |
---|---|---|
|
@@ -166,6 +166,12 @@ | |
'externalId': None, | ||
'type': 'department' | ||
}, | ||
'class': { | ||
'name': None, | ||
'internalId': None, | ||
'externalId': None, | ||
'type': 'classification' | ||
}, | ||
"approvalStatus": None, | ||
"nextApprover": None, | ||
"vatRegNum": None, | ||
|
@@ -313,6 +319,12 @@ | |
'externalId': None, | ||
'type': 'department' | ||
}, | ||
'class': { | ||
'name': None, | ||
'internalId': None, | ||
'externalId': None, | ||
'type': 'classification' | ||
}, | ||
"approvalStatus": None, | ||
"nextApprover": None, | ||
"vatRegNum": None, | ||
|
@@ -465,6 +477,12 @@ | |
'externalId': None, | ||
'type': 'department' | ||
}, | ||
'class': { | ||
'name': None, | ||
'internalId': None, | ||
'externalId': None, | ||
'type': 'classification' | ||
}, | ||
"approvalStatus": None, | ||
"nextApprover": None, | ||
"vatRegNum": None, | ||
|
@@ -1021,6 +1039,7 @@ | |
'location': {'internalId': '10'}, | ||
'currency': {'internalId': '1'}, | ||
'department': {'internalId': None}, | ||
'class': {'internalId': None}, | ||
'tranDate': '12/03/2021', | ||
'memo': 'Credit card expenses by [email protected]', | ||
'tranid':'CR/27/B/8', | ||
|