Key Information

Register
Submit
The challenge is finished.

Challenge Overview

Cloud Hub recently built out the start of our file import service. We want to make some improvements to this service to make it more flexible and start to test out importing more customer data.

Requirements
1. Move config.ImportCsvMapping to seed/import.js file and pass it to the processImport function.
2. Add importType to the processImport function. Currently the file is processing our ‘system’ file type, which adds company apps.
3. Add support for importType of ‘AP’. This file import will add charges to previously created companyApps.
4. Update seed/import.js to call both imports.
5. Update processImport to use companyApp services to add or update the company app.
6. Based on the importType we need to set some values. For AP source = 'AP' and status = 'A', and System source = 'System' and status = 'A'.

AP Import file mapping
{
    "Transaction ": "transactionId",
    "Payment Date": "chargeTime",
    "Supplier": "appLabel",
    "Supplier Invoice or Adjustment": "sourceChargeDesc",
    "Payment Amount": “Amount"
}

Final Submission Guidelines

1. Any additions or modifications to the code project pass on "npm run lint". Any modifications to the base project needs to pass the tests, npm run test.
2. Please include a git patch for easier integration of changes.
3. The bulk of your documentation should be in the Readme.md and you should assume that this will be open source so make sure you cover all the steps to set up,  If you have specific information that should not be included in a public readme (like links to your video) put them in a file called submission.txt and they will be omitted from the project if it is open sourced.

ELIGIBLE EVENTS:

2016 TopCoder(R) Open

REVIEW STYLE:

Final Review:

Community Review Board

Approval:

User Sign-Off

SHARE:

ID: 30055072