Files
F8WebAI/backend/AgriculturalPlatform.Api/Models/PurchaseWeigh.cs
T

41 lines
1.3 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
namespace AgriculturalPlatform.Api.Models;
/// <summary>收购单-单磅记录(一张收购单支持多磅、多等级)</summary>
public class PurchaseWeigh
{
public int Id { get; set; }
public int PurchaseOrderId { get; set; }
public PurchaseOrder? PurchaseOrder { get; set; }
/// <summary>磅次序号(第几磅)</summary>
public int SortNo { get; set; }
/// <summary>等级(数据字典 purchase_grade</summary>
public string Grade { get; set; } = string.Empty;
/// <summary>价格类型:Fixed=固定价 Manual=现场议价 Range=价格区间(数据字典 price_type</summary>
public string PriceType { get; set; } = "Manual";
/// <summary>单价(元/公斤)</summary>
public decimal UnitPrice { get; set; }
/// <summary>毛重(kg</summary>
public decimal GrossWeight { get; set; }
/// <summary>皮重(kg</summary>
public decimal TareWeight { get; set; }
/// <summary>净重(kg= 毛重 - 皮重</summary>
public decimal NetWeight { get; set; }
/// <summary>容器/框数</summary>
public int BoxCount { get; set; }
/// <summary>金额(元)= 净重 × 单价</summary>
public decimal Amount { get; set; }
public DateTime CreatedAt { get; set; } = DateTime.Now;
}