This commit is contained in:
2021-02-16 00:29:06 +00:00
parent 31a66de8a5
commit 81b5f31e1f
3 changed files with 27 additions and 4 deletions

View File

@@ -23,13 +23,13 @@ namespace AyaNova.Models
public List<string> Tags { get; set; }
public string VendorMemo { get; set; }
public long DropShipToCustomerId { get; set; }
public long? DropShipToCustomerId { get; set; }
public string ReferenceNumber { get; set; }
public long VendorId { get; set; }
public DateTime? OrderedDate { get; set; }
public DateTime? ExpectedReceiveDate { get; set; }
public PurchaseOrderStatus Status { get; set; }
public long ProjectId { get; set; }
public long? ProjectId { get; set; }
public string Text1 { get; set; }
public string Text2 { get; set; }
public List<PurchaseOrderItem> Items { get; set; } = new List<PurchaseOrderItem>();

View File

@@ -1,7 +1,8 @@
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Newtonsoft.Json;
namespace AyaNova.Models
{
public class PurchaseOrderItem
@@ -11,6 +12,23 @@ namespace AyaNova.Models
[Required]
public long PurchaseOrderId { get; set; }
[Required]
public long PartId { get; set; }
[Required]
public long PartWarehouseId { get; set; }
[Required]
public decimal QuantityOrdered { get; set; }
[Required]
public decimal QuantityReceived { get; set; }
[Required]
public decimal PurchaseOrderCost { get; set; }
[Required]
public decimal ReceivedCost { get; set; }
public DateTime? ReceivedDate { get; set; }
public long? PartRequestedById { get; set; }
public long? WorkorderItemPartRequestId { get; set; }
public long? PurchaseTaxCodeId { get; set; }
[JsonIgnore]
public PurchaseOrder PurchaseOrder { get; set; }
@@ -34,7 +52,7 @@ CREATE TABLE [dbo].[APURCHASEORDERITEM](
[AQUANTITYORDERED] [decimal](19, 5) NULL,
[APURCHASEORDERCOST] [decimal](19, 5) NULL,
[AQUANTITYRECEIVED] [decimal](19, 5) NULL,
[ACLOSED] [bit] NOT NULL,
[ACLOSED] [bit] NOT NULL, <---??? DROP? WTF
[AWORKORDERITEMPARTREQUESTID] [uniqueidentifier] NULL,
[APARTREQUESTEDBYID] [uniqueidentifier] NULL,
[APARTWAREHOUSEID] [uniqueidentifier] NULL,