INSERT INTO taInvoiceAudit (
  EntryDate,
  RunNumber,
  InvoiceType,
  BatchNumber,
  ClientID,
  AccountCode,
  CMSInvNo,
  TypeID,
  InvoiceNumber,
  InvoiceAmountIncl,
  ErrorDescription
) VALUES (
  NOW(),
  @nRunNumber,
  @aInvoiceType,
  @nBatchNumber,
  @nClientID,
  @aAccountCode,
  @nCMSInvNo,
  @nAppNumber,
  @aInvoiceNumber,
  @nInvTotIncl,
  @aResult
);

