Bug fix, new purchase order date

This commit is contained in:
2020-02-26 15:27:43 +00:00
parent 087950e141
commit 2462a2fb13
2 changed files with 2 additions and 1 deletions

View File

@@ -139,6 +139,7 @@ namespace BealeEngineering.Accounts
{ {
if (newForm) if (newForm)
{ {
purchaseOrder.PurchaseOrderDate = pickerPurchaseOrderDateDate.Value;
new Core.Data.Database.Client.UpdatePurchaseOrder(sqlConnectionString).Create(purchaseOrder); new Core.Data.Database.Client.UpdatePurchaseOrder(sqlConnectionString).Create(purchaseOrder);
this.Close(); this.Close();
} }

View File

@@ -12,7 +12,7 @@ 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 != 15) if (propertyCount != 16)
{ {
throw new Exception("Model.Import.XeroInvoiceFlatFile has changed, it's adapter class may need updating."); throw new Exception("Model.Import.XeroInvoiceFlatFile has changed, it's adapter class may need updating.");
} }