From 13ca61a99d4753efffc71491f6d37d75fde348c1 Mon Sep 17 00:00:00 2001 From: DSCmattb Date: Tue, 18 Apr 2023 10:16:08 +1000 Subject: [PATCH] Update AbaGenerator.cs Fixing issue where transaction Trace Account Number is actually the transaction Account number not the transaction header account number causing validation issues with NAB --- AbaFileGenerator/AbaGenerator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AbaFileGenerator/AbaGenerator.cs b/AbaFileGenerator/AbaGenerator.cs index 55ec1b9..48ac39f 100644 --- a/AbaFileGenerator/AbaGenerator.cs +++ b/AbaFileGenerator/AbaGenerator.cs @@ -222,7 +222,7 @@ private void addTransactionRecord(Transaction transaction) line += PadRight(Bsb, 7, PaddingChar); // Trace Account Number - already validated - line += PadLeft(transaction.AccountNumber, 9, PaddingChar); + line += PadLeft(AccountNumber, 9, PaddingChar); // Name of remitter (appears on target's bank statement; must not be blank but some banks will replace with name fund account is held in). // Remitter Name - already validated