MAINT
The MAINT interface is based on a .csv file that is populated to upload multiple maintenance transactions. Attached is sample Maintenance Import File showing format and content required. Once the file is succesfully imported and the data uploaded, Approvals and Maintenance records will be created based on the following logic.
This feature is still under development
Non Salary Packaged Contracts
Where Supplier Code, Reference and Contract ID / Reg No are the same, they will be grouped into one Approval with multiple Maintenance records.
Where one or all entries in Supplier Code, Reference and Contract ID / Reg No are the different, one Approval will be created to one Maintenance record.
Blank fields will be excluded from the 'grouping' process.
Each Approval will have 'Status' set to 'Active', until the Batch is posted.
Each Maintenance record will have 'Status' set to 'Pending', until the Batch is posted.
Where the 'Recharge Flag' is set to 'yes', 'Status' will be set to 'Recharge', until posted.
'Posted' transactions will also be posted to [gl_transactions] respecting existing behaviour and enabling existing export processes.
Salary Packaged Contracts
Where the transaction is linked to an Item, one Approval will be created to one Maintenance record.
The Approval record will have
'Status' set to 'Active'
'Sub Status' set to 'Pending Funds'
The 'Payee' and the 'Payment Method' will be updated to the same as what has been set in the related Item.
The 'Bank Account' will be updated to the same as what has been set in the related Item.
File Validation
The file being imported, must validate on all checks below, else it will fail and no data will be imported:
The 'MAINT' interface has been set up
The file must be in .csv format.
The file must not have been previously imported.
File Content Validation
The data content of the file is validated to avoid incorrect or corrupt data being uploaded.
Where the data in the entire import file is deemed valid, it will import.
If one or more of the following data points are invalid, the import will fail displaying the following message.
Data validation has failed as follows: 'nn' record(s) found, nn record(s) failed to validate.
Click 'Error Report' to get a complete list of errors or 'Re-Upload' to try again with a new file.
Creating an error report will identify and assist in resolving the error(s). No data will be imported.
See below for the data in the import file that is subject to validation rules and what they are.