-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
netsuite error parser support for JE and Bills (#118)
- Loading branch information
1 parent
3b02232
commit b7228e6
Showing
8 changed files
with
115 additions
and
48 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
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 |
---|---|---|
@@ -1,18 +1,81 @@ | ||
|
||
error_reference = { | ||
"expense_report": | ||
{ | ||
'category_reference_error': {'regex': r"An error occured in a upsert request: Invalid category reference key \d+ for entity \d+", 'keys': ['expense_category', 'employee']}, | ||
'account_reference_error': {'regex': r"An error occured in a upsert request: Invalid account reference key \d+ for subsidiary \d+", 'keys': ['account', 'subsidiary']}, | ||
'project_reference_error': {'regex': r"An error occured in a upsert request: Invalid customer reference key \d+ for entity \d+", 'keys': ['customer', 'employee']}, | ||
'location_reference_error': {'regex': r"An error occured in a upsert request: Invalid location reference key \d+ for subsidiary \d+", 'keys': ['location', 'subsidiary']}, | ||
'department_reference_error': {'regex':r"An error occured in a upsert request: Invalid department reference key \d+ for subsidiary \d+" , 'keys': ['department', 'subsidiary']}, | ||
'currency_reference_error': {'regex': r"An error occured in a upsert request: Invalid currency reference key \d+ for subsidiary \d+", 'keys': ['currency', 'subsidiary']} | ||
"expense_report": { | ||
'category_reference_error': { | ||
'regex': r"An error occured in a upsert request: Invalid category reference key \d+ for entity \d+", | ||
'keys': ['expense_category', 'employee'] | ||
}, | ||
'account_reference_error': { | ||
'regex': r"An error occured in a upsert request: Invalid account reference key \d+ for subsidiary \d+", | ||
'keys': ['account', 'subsidiary'] | ||
}, | ||
'project_reference_error': { | ||
'regex': r"An error occured in a upsert request: Invalid customer reference key \d+ for entity \d+", | ||
'keys': ['customer', 'employee'] | ||
}, | ||
'location_reference_error': { | ||
'regex': r"An error occured in a upsert request: Invalid location reference key \d+ for subsidiary \d+", | ||
'keys': ['location', 'subsidiary'] | ||
}, | ||
'department_reference_error': { | ||
'regex':r"An error occured in a upsert request: Invalid department reference key \d+ for subsidiary \d+" , | ||
'keys': ['department', 'subsidiary'] | ||
}, | ||
'currency_reference_error': { | ||
'regex': r"An error occured in a upsert request: Invalid currency reference key \d+ for subsidiary \d+", | ||
'keys': ['currency', 'subsidiary'] | ||
} | ||
}, | ||
"bills": { | ||
'bill_account_reference_error': { | ||
'regex': r"An error occured in a upsert request: Invalid account reference key \d+ for subsidiary \d+", | ||
'keys': ['account', 'subsidiary'] | ||
}, | ||
'location_reference_error': { | ||
'regex': r"An error occured in a upsert request: Invalid location reference key \d+ for subsidiary \d+", | ||
'keys': ['location', 'subsidiary'] | ||
}, | ||
'department_reference_error': { | ||
'regex':r"An error occured in a upsert request: Invalid department reference key \d+ for subsidiary \d+" , | ||
'keys': ['department', 'subsidiary'] | ||
}, | ||
'currency_reference_error': { | ||
'regex': r"An error occured in a upsert request: Invalid currency reference key \d+ for subsidiary \d+", | ||
'keys': ['currency', 'subsidiary'] | ||
}, | ||
'vendor_reference_error': { | ||
'regex': r"An error occured in a upsert request: Invalid entity reference key \d+ for subsidiary \d+", | ||
'keys': ['vendor', 'subsidiary'] | ||
} | ||
}, | ||
"journal_entry": { | ||
'location_reference_error': { | ||
'regex': r"An error occured in a upsert request: Invalid location reference key \d+ for subsidiary \d+", | ||
'keys': ['location', 'subsidiary'] | ||
}, | ||
'department_reference_error': { | ||
'regex':r"An error occured in a upsert request: Invalid department reference key \d+ for subsidiary \d+" , | ||
'keys': ['department', 'subsidiary'] | ||
}, | ||
'account_reference_error': { | ||
'regex': r"An error occured in a upsert request: Invalid account reference key \d+ for subsidiary \d+", | ||
'keys': ['account', 'subsidiary'] | ||
}, | ||
'currency_reference_error': { | ||
'regex': r"An error occured in a upsert request: Invalid currency reference key \d+ for subsidiary \d+", | ||
'keys': ['currency', 'subsidiary'] | ||
}, | ||
'project_reference_error': { | ||
'regex': r"An error occured in a upsert request: Invalid customer reference key \d+ for entity \d+", | ||
'keys': ['customer', 'employee'] | ||
}, | ||
} | ||
} | ||
|
||
|
||
list_of_dicts = [ | ||
['expense_category', 'employee'], ['account', 'subsidiary'], | ||
['customer', 'employee'], ['location', 'subsidiary'], | ||
['department', 'subsidiary'], ['currency', 'subsidiary'] | ||
['department', 'subsidiary'], ['currency', 'subsidiary'], | ||
['vendor', 'subsdiary'] | ||
] |
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 |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
|
||
setuptools.setup( | ||
name='netsuitesdk', | ||
version='2.18.1', | ||
version='2.19.0', | ||
author='Siva Narayanan', | ||
author_email='[email protected]', | ||
description='Python SDK for accessing the NetSuite SOAP webservice', | ||
|
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