BugFix: Updated property count in adapter class

This commit is contained in:
2020-07-09 16:36:45 +01:00
parent 563590c287
commit dce37680ef

View File

@@ -12,9 +12,9 @@ namespace BealeEngineering.Core.Logic.Adapter
{ {
// ensure sale invoice hasn't changed // ensure sale invoice hasn't changed
int propertyCount = new Model.Sale.Invoice().GetType().GetProperties().Count(); 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(); propertyCount = new Model.Sale.Invoice.InvoiceLine().GetType().GetProperties().Count();
if (propertyCount != 10) if (propertyCount != 10)