using DS.Module.Core.Enums;
using SqlSugar;
namespace DS.WMS.Core.Application.Entity
{
///
/// 发票申请明细
///
[SugarTable("application_invoice_detail", TableDescription = "发票申请明细")]
public class InvoiceDetail
{
///
/// 主键ID
///
[SugarColumn(IsPrimaryKey = true)]
public long Id { get; set; }
///
/// 申请单ID
///
[SugarColumn(ColumnDescription = "申请单ID", IsNullable = false)]
public long ApplicationId { get; set; }
///
/// 明细项名称
///
[SugarColumn(ColumnDescription = "明细项名称", Length = 100, IsNullable = false)]
public string Name { get; set; }
///
/// 规格型号
///
[SugarColumn(ColumnDescription = "规格型号", Length = 100, IsNullable = true)]
public string? Specification { get; set; }
///
/// 单位
///
[SugarColumn(ColumnDescription = "单位", IsNullable = true, Length = 50)]
public string? Unit { get; set; }
///
/// 单价(不含税)
///
[SugarColumn(ColumnDescription = "单价", IsNullable = false)]
public decimal UnitPrice { get; set; }
///
/// 含税单价
///
[SugarColumn(ColumnDescription = "含税单价", IsNullable = false)]
public decimal TaxUnitPrice { get; set; }
///
/// 税率
///
[SugarColumn(ColumnDescription = "税率", IsNullable = false)]
public decimal TaxRate { get; set; }
///
/// 税额
///
[SugarColumn(ColumnDescription = "税额", IsNullable = false)]
public decimal TaxAmount { get; set; }
///
/// 数量
///
[SugarColumn(ColumnDescription = "数量", IsNullable = false)]
public int Quantity { get; set; } = 1;
///
/// 含税总额
///
[SugarColumn(ColumnDescription = "含税总额", IsNullable = false)]
public decimal Amount { get; set; }
///
/// 明细类别
///
[SugarColumn(ColumnDescription = "类别", IsNullable = true)]
public DetailCategory Category { get; set; }
}
}