From dce37680ef09935379476b1b967f757ff2787b86 Mon Sep 17 00:00:00 2001 From: Bobbie Hodgetts Date: Thu, 9 Jul 2020 16:36:45 +0100 Subject: [PATCH] BugFix: Updated property count in adapter class --- .../BealeEngineering.Core/Logic/Adapter/SaleInvoice.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BealeEngineering/BealeEngineering.Core/Logic/Adapter/SaleInvoice.cs b/BealeEngineering/BealeEngineering.Core/Logic/Adapter/SaleInvoice.cs index 5d934e0..b7ee634 100644 --- a/BealeEngineering/BealeEngineering.Core/Logic/Adapter/SaleInvoice.cs +++ b/BealeEngineering/BealeEngineering.Core/Logic/Adapter/SaleInvoice.cs @@ -12,9 +12,9 @@ namespace BealeEngineering.Core.Logic.Adapter { // ensure sale invoice hasn't changed int propertyCount = new Model.Sale.Invoice().GetType().GetProperties().Count(); - if (propertyCount != 16) + if (propertyCount != 17) { - throw new Exception("Model.Import.XeroInvoiceFlatFile has changed, it's adapter class may need updating."); + throw new Exception("Model.Sale.Invoice has changed, it's adapter class may need updating."); } propertyCount = new Model.Sale.Invoice.InvoiceLine().GetType().GetProperties().Count(); if (propertyCount != 10)