getExpenseCodes()
Function Declaration |
|
Type |
Interface function |
Description |
Retrieve expense codes as defined by the file format being used. When a format profile record is configured to import corporate card expenses, the Expense Code Mapping subtab appears, which contains a grid populated with values returned by getExpenseCodes(). This subtab enables you to map expense codes to expense categories to automatically populate expense categories in expense reports.
Note:
You cannot add custom expense codes. For more information, see Mapping Custom Expense Codes. |
Returns |
void |
Input Parameters |
context -a JavaScript object with the property createNewExpenseCode(). |
Example
function getExpenseCodes(context) {
context.createNewExpenseCode({
code: '4',
description: 'RESTAURANT'
});
}