Skip to content
Snippets Groups Projects
Commit 27047146 authored by Erik Reid's avatar Erik Reid
Browse files

fixed table syntax

parent d880f25f
Branches
Tags
No related merge requests found
...@@ -12,56 +12,47 @@ The following table describes the validation rules applied when uploading a CSV ...@@ -12,56 +12,47 @@ The following table describes the validation rules applied when uploading a CSV
- **Field** - **Field**
- **Logic** - **Logic**
- **Comments** - **Comments**
* - Structural * - Structural
- *(All Fields)* - *(All Fields)*
- Ensure that all required field names are present. - Ensure that all required field names are present.
- - -
* - Update * - Update
- `...NominalAccountNumber` (*n) - `...NominalAccountNumber` (*n*)
- If value starts with `xx-`, map `NominalCostCentre` using `dbo.meoCostCentres` and retrieve `NominalAccountNumber` from `dbo.vw_xx-data`. - If value starts with `xx-`, map `NominalCostCentre` using `dbo.meoCostCentres` and retrieve `NominalAccountNumber` from `dbo.vw_xx-data`.
- Ensure the correct nominal code is assigned. - Ensure the correct nominal code is assigned.
* - Checks * - Checks
- AccountNumber - AccountNumber
- Validate against `dbo.meoValidSuppliers`. - Validate against `dbo.meoValidSuppliers`.
- Ensure the account exists in the valid suppliers list. - Ensure the account exists in the valid suppliers list.
* - Checks * - Checks
- Source - Source
- Should always be `80`. - Should always be `80`.
- Reject rows where `Source != 80`. - Reject rows where `Source != 80`.
* - Checks * - Checks
- SYSTraderTranType - SYSTraderTranType
- Should always be `4`. - Should always be `4`.
- Reject rows where `SYSTraderTranType != 4`. - Reject rows where `SYSTraderTranType != 4`.
* - Update * - Update
- TransactionDate - TransactionDate
- Set to today’s date (`dd/mm/yyyy`). - Set to today’s date (`dd/mm/yyyy`).
- Ensure all rows have a consistent transaction date. - Ensure all rows have a consistent transaction date.
* - Checks * - Checks
- `...NominalAccountNumber` (*n) - `...NominalAccountNumber` (*n*)
- Validate against `[Nom]` in `dbo.meoNominal`. - Validate against `[Nom]` in `dbo.meoNominal`.
- Ensure all nominal account numbers exist. - Ensure all nominal account numbers exist.
* - Checks * - Checks
- `...NominalCostCentre` (*n) - `...NominalCostCentre` (*n*)
- Validate against `dbo.meoCostCentres`. - Validate against `dbo.meoCostCentres`.
- Ensure cost centres exist. - Ensure cost centres exist.
* - Checks * - Checks
- Combination of `...NominalAccountNumber`, `...NominalCostCentre`, and `...NominalDepartment` - Combination of `...NominalAccountNumber`, `...NominalCostCentre`, and `...NominalDepartment`
- Validate against `dbo.meoValidSageAccounts`. - Validate against `dbo.meoValidSageAccounts`.
- The combination of the three fields must be valid. - The combination of the three fields must be valid.
* - Checks * - Checks
- `...TaxRate` - `...TaxRate`
- Validate against `[Tax code]` in `dbo.meoValidVAT`. - Validate against `[Tax code]` in `dbo.meoValidVAT`.
- Ensure valid tax rates. - Ensure valid tax rates.
* - Checks
* - Checks - `ChequeCurrencyName`, `ChequeToBankExchangeRate`, `ChequeValueInChequeCurrency`
- `ChequeCurrencyName`, `ChequeToBankExchangeRate`, `ChequeValueInChequeCurrency` - Cheque fields must be empty.
- Cheque fields must be empty. -
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment