Skip to content

Commit

Permalink
Updated order class and added in an order item class
Browse files Browse the repository at this point in the history
this allows for the purchasing of multiple items in one order
#17
  • Loading branch information
Nathan Parnell committed Oct 23, 2023
1 parent 6718d46 commit 92e2633
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
5 changes: 2 additions & 3 deletions StockTrackerCommon/Models/Order.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,11 @@ namespace StockTrackerCommon.Models
public class Order
{
public Order() { }

public string OrderId { get; set; }
public string CustomerId { get; set; }
public string SupplierId { get; set; }
public string ProductId { get; set; }
public string Quantity { get; set; }
public decimal UnitPrice { get; set; }
List<string> OrderItemIds { get; set; }
public decimal TotalPrice { get; set; }
public string OrderNotes { get; set; }
}
Expand Down
18 changes: 18 additions & 0 deletions StockTrackerCommon/Models/OrderItem.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace StockTrackerCommon.Models
{
public class OrderItem
{
public OrderItem() { }

public string OrderItemId { get; set; }
public string ProductId { get; set; }
public string Quantity { get; set; }
public decimal OrderPrice { get; set; }
}
}

0 comments on commit 92e2633

Please sign in to comment.