This commit is contained in:
2021-02-15 17:45:21 +00:00
parent 075347e539
commit db4517d359
2 changed files with 108 additions and 1 deletions

View File

@@ -15,7 +15,7 @@ namespace AyaNova.Models
public long Id { get; set; }
public uint Concurrency { get; set; }
[Required]
[Required]
public long Serial { get; set; }
public bool Active { get; set; }
public string Notes { get; set; }
@@ -24,6 +24,10 @@ namespace AyaNova.Models
public List<string> Tags { get; set; }
public List<PurchaseOrderItem> Items { get; set; } = new List<PurchaseOrderItem>();
public PurchaseOrder()
{
Tags = new List<string>();
@@ -35,3 +39,46 @@ namespace AyaNova.Models
}//eoc
}//eons
/*
CREATE TABLE [dbo].[APURCHASEORDER](
[AID] [uniqueidentifier] NOT NULL,
[AVENDORMEMO] [nvarchar](255) NULL,
[ADROPSHIPTOCLIENTID] [uniqueidentifier] NULL,
[ACREATED] [datetime] NOT NULL,
[AMODIFIED] [datetime] NOT NULL,
[ACREATOR] [uniqueidentifier] NOT NULL,
[AMODIFIER] [uniqueidentifier] NOT NULL,
[APONUMBER] [int] IDENTITY(1,1) NOT NULL,
[AREFERENCENUMBER] [nvarchar](255) NULL,
[AVENDORID] [uniqueidentifier] NOT NULL,
[AORDEREDDATE] [datetime] NULL,
[AEXPECTEDRECEIVEDATE] [datetime] NULL,
[ANOTES] [ntext] NULL,
[ASTATUS] [smallint] NOT NULL,
[ACUSTOM1] [ntext] NULL,
[ACUSTOM2] [ntext] NULL,
[ACUSTOM3] [ntext] NULL,
[ACUSTOM4] [ntext] NULL,
[ACUSTOM5] [ntext] NULL,
[ACUSTOM6] [ntext] NULL,
[ACUSTOM7] [ntext] NULL,
[ACUSTOM8] [ntext] NULL,
[ACUSTOM9] [ntext] NULL,
[ACUSTOM0] [ntext] NULL,
[APROJECTID] [uniqueidentifier] NULL,
CREATE TABLE [dbo].[APURCHASEORDERRECEIPT](
[AID] [uniqueidentifier] NOT NULL,
[ACREATED] [datetime] NOT NULL,
[AMODIFIED] [datetime] NOT NULL,
[ACREATOR] [uniqueidentifier] NOT NULL,
[AMODIFIER] [uniqueidentifier] NOT NULL,
[ARECEIVEDDATE] [datetime] NOT NULL,
[AVENDORID] [uniqueidentifier] NOT NULL,
[ATEXT1] [nvarchar](255) NULL,
[ATEXT2] [nvarchar](255) NULL,
*/