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

@@ -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,