mirror of
https://github.com/stokebob/BealeEngineering.git
synced 2026-03-19 06:37:15 +00:00
BugFix: Updated property count in adapter class
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user