31 lines
1.6 KiB
Markdown
31 lines
1.6 KiB
Markdown
## THIRDPARTY_FROM
|
|
|
|
You must identify the company or person (thirdparty) that is the EMITTER of this document
|
|
among values present on a backend.
|
|
|
|
- Identify whether the thirdparty is a company or a person.
|
|
- Identify the country of origin.
|
|
- Identify a unique identifier like VAT, enterprise number, email, IBAN, phone number, etc.
|
|
|
|
- If one or more unique identifiers are found, call the findThirdPartyByIdentifier function
|
|
to search for existing third parties on the backend using that information.
|
|
- If the thirdparty is found, use the setThirdPartyIdentification function to complete the task.
|
|
- If the thirdparty is not found, use the setFieldProblematic function to complete the task,
|
|
mentioning a problem type "THIRDPARTY_DOES_NOT_EXISTS" and all the identified values as description.
|
|
|
|
- Otherwise, use the findThirdPartyByName function to search for existing third parties on the backend
|
|
using non unique identifiers
|
|
- If the thirdparty is found, use the setThirdPartyIdentification function to complete the task.
|
|
- If the thirdparty is not found, use the setFieldProblematic function to complete the task,
|
|
mentioning a problem type "THIRDPARTY_DOES_NOT_EXISTS" and all the identified values as description.
|
|
|
|
- Otherwise, use the setFieldProblematic function to complete the task,
|
|
mentioning a problem type "THIRDPARTY_NOT_IDENTIFIABLE" and all the identified values as description.
|
|
|
|
|
|
- [x] Function: findThirdPartyByIdentifier
|
|
- [x] Function: findThirdPartyByName
|
|
- [x] Function: setFieldProblematic
|
|
- [x] Function: setThirdPartyIdentification
|
|
- [x] Active
|