From 270471468e391a296e64cb3d428204343333de90 Mon Sep 17 00:00:00 2001 From: Erik Reid <erik.reid@geant.org> Date: Wed, 16 Apr 2025 13:31:12 +0200 Subject: [PATCH] fixed table syntax --- docs/source/validations.rst | 25 ++++++++----------------- 1 file changed, 8 insertions(+), 17 deletions(-) diff --git a/docs/source/validations.rst b/docs/source/validations.rst index 5f2042c..86c4063 100644 --- a/docs/source/validations.rst +++ b/docs/source/validations.rst @@ -12,56 +12,47 @@ The following table describes the validation rules applied when uploading a CSV - **Field** - **Logic** - **Comments** - * - Structural - *(All Fields)* - Ensure that all required field names are present. - - - + - * - Update - - `...NominalAccountNumber` (*n) + - `...NominalAccountNumber` (*n*) - 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. - * - Checks - AccountNumber - Validate against `dbo.meoValidSuppliers`. - Ensure the account exists in the valid suppliers list. - * - Checks - Source - Should always be `80`. - Reject rows where `Source != 80`. - * - Checks - SYSTraderTranType - Should always be `4`. - Reject rows where `SYSTraderTranType != 4`. - * - Update - TransactionDate - Set to today’s date (`dd/mm/yyyy`). - Ensure all rows have a consistent transaction date. - * - Checks - - `...NominalAccountNumber` (*n) + - `...NominalAccountNumber` (*n*) - Validate against `[Nom]` in `dbo.meoNominal`. - Ensure all nominal account numbers exist. - * - Checks - - `...NominalCostCentre` (*n) + - `...NominalCostCentre` (*n*) - Validate against `dbo.meoCostCentres`. - Ensure cost centres exist. - * - Checks - Combination of `...NominalAccountNumber`, `...NominalCostCentre`, and `...NominalDepartment` - Validate against `dbo.meoValidSageAccounts`. - The combination of the three fields must be valid. - * - Checks - `...TaxRate` - Validate against `[Tax code]` in `dbo.meoValidVAT`. - Ensure valid tax rates. - - * - Checks - - `ChequeCurrencyName`, `ChequeToBankExchangeRate`, `ChequeValueInChequeCurrency` - - Cheque fields must be empty. \ No newline at end of file + * - Checks + - `ChequeCurrencyName`, `ChequeToBankExchangeRate`, `ChequeValueInChequeCurrency` + - Cheque fields must be empty. + - -- GitLab