This commit is contained in:
89
server/AyaNova/models/PMItemOutsideService.cs
Normal file
89
server/AyaNova/models/PMItemOutsideService.cs
Normal file
@@ -0,0 +1,89 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Newtonsoft.Json;
|
||||
using AyaNova.Biz;
|
||||
|
||||
|
||||
namespace AyaNova.Models
|
||||
{
|
||||
public class PMItemOutsideService : ICoreBizObjectModel
|
||||
{
|
||||
public long Id { get; set; }
|
||||
public uint Concurrency { get; set; }
|
||||
public string Notes { get; set; }
|
||||
|
||||
[Required]
|
||||
public long UnitId { get; set; }
|
||||
[NotMapped]
|
||||
public string UnitViz { get; set; }
|
||||
public long? VendorSentToId { get; set; }
|
||||
[NotMapped]
|
||||
public string VendorSentToViz { get; set; }
|
||||
public long? VendorSentViaId { get; set; }
|
||||
[NotMapped]
|
||||
public string VendorSentViaViz { get; set; }
|
||||
public string RMANumber { get; set; }
|
||||
public string TrackingNumber { get; set; }
|
||||
public decimal RepairCost { get; set; }
|
||||
public decimal RepairPrice { get; set; }
|
||||
public decimal ShippingCost { get; set; }
|
||||
public decimal ShippingPrice { get; set; }
|
||||
public DateTime? SentDate { get; set; }
|
||||
public DateTime? ETADate { get; set; }
|
||||
public DateTime? ReturnDate { get; set; }
|
||||
public long? TaxCodeId { get; set; }
|
||||
[NotMapped]
|
||||
public string TaxCodeViz { get; set; }
|
||||
[NotMapped]
|
||||
public decimal CostViz { get; set; }//Total cost shipping + repairs
|
||||
[NotMapped]
|
||||
public decimal PriceViz { get; set; }//Total price shipping + repairs
|
||||
[NotMapped]
|
||||
public decimal NetViz { get; set; }//=priceViz for standardization not because it's necessary (before taxes line total essentially)
|
||||
[NotMapped]
|
||||
public decimal TaxAViz { get; set; }//total amount of taxA
|
||||
[NotMapped]
|
||||
public decimal TaxBViz { get; set; }//total amount of taxB
|
||||
[NotMapped]
|
||||
public decimal LineTotalViz { get; set; }//line total netViz + taxes
|
||||
|
||||
//workaround for notification
|
||||
[NotMapped, JsonIgnore]
|
||||
public List<string> Tags { get; set; } = new List<string>();
|
||||
[NotMapped, JsonIgnore]
|
||||
public string Name { get; set; }
|
||||
|
||||
[Required]
|
||||
public long PMItemId { get; set; }
|
||||
[JsonIgnore]
|
||||
public PMItem PMItem { get; set; }
|
||||
|
||||
[NotMapped, JsonIgnore]
|
||||
public AyaType AyaType { get => AyaType.PMItemOutsideService; }
|
||||
|
||||
}//eoc
|
||||
}//eons
|
||||
/*
|
||||
CREATE TABLE [dbo].[APMITEMOUTSIDESERVICE](
|
||||
[AID] [uniqueidentifier] NOT NULL,
|
||||
[APMITEMID] [uniqueidentifier] NOT NULL,
|
||||
[ACREATOR] [uniqueidentifier] NOT NULL,
|
||||
[AMODIFIER] [uniqueidentifier] NOT NULL,
|
||||
[ACREATED] [datetime] NOT NULL,
|
||||
[AMODIFIED] [datetime] NOT NULL,
|
||||
[ANOTES] [ntext] NULL,
|
||||
[AVENDORSENTTOID] [uniqueidentifier] NULL,
|
||||
[AVENDORSENTVIAID] [uniqueidentifier] NULL,
|
||||
[ARMANUMBER] [nvarchar](255) NULL,
|
||||
[ATRACKINGNUMBER] [nvarchar](255) NULL,
|
||||
[AREPAIRCOST] [decimal](19, 5) NULL,
|
||||
[AREPAIRPRICE] [decimal](19, 5) NULL,
|
||||
[ASHIPPINGCOST] [decimal](19, 5) NULL,
|
||||
[ASHIPPINGPRICE] [decimal](19, 5) NULL,
|
||||
[ADATESENT] [datetime] NULL,
|
||||
[ASENDERUSERID] [uniqueidentifier] NULL,
|
||||
[ADATEETA] [datetime] NULL,
|
||||
[ADATERETURNED] [datetime] NUL
|
||||
*/
|
||||
Reference in New Issue
Block a user