Skip to content

Commit

Permalink
Fix customer data not loading properly
Browse files Browse the repository at this point in the history
  • Loading branch information
Deadpikle committed May 15, 2022
1 parent f981554 commit 0510c3c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions SimpleInventory/Models/Purchase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,9 @@ public static List<Purchase> LoadPurchases(string whereClause = "", List<Tuple<s
purchase.TotalCost = dbHelper.ReadDecimal(reader, "TotalCost");
purchase.CostCurrencySymbol = dbHelper.ReadString(reader, "CostCurrencySymbol");
purchase.CostCurrencyConversionRate = dbHelper.ReadDecimal(reader, "CostCurrencyConversionRate");
purchase.CustomerName = dbHelper.ReadString(reader, "CustomerName");
purchase.CustomerPhone = dbHelper.ReadString(reader, "CustomerPhone");
purchase.CustomerEmail = dbHelper.ReadString(reader, "CustomerEmail");
purchase.CustomerName = dbHelper.ReadString(reader, "Name");
purchase.CustomerPhone = dbHelper.ReadString(reader, "Phone");
purchase.CustomerEmail = dbHelper.ReadString(reader, "Email");
purchase.UserID = dbHelper.ReadInt(reader, "UserID");
purchases.Add(purchase);
userIDs.Add(purchase.UserID);
Expand Down

0 comments on commit 0510c3c

Please sign in to comment.