using System.ComponentModel;
using DS.Module.Core.Data;
using SqlSugar;
namespace DS.WMS.Core.Code.Entity
{
///
/// 发票商品编码表
///
[SugarTable("code_invoice", "发票商品编码表")]
public class CodeInvoice : BaseOrgModelV2
{
///
/// 编码
///
[SugarColumn(ColumnDescription = "编码", Length = 50, IsNullable = false)]
public string Code { get; set; } = string.Empty;
///
/// 名称
///
[SugarColumn(ColumnDescription = "名称", Length = 100, IsNullable = false)]
public string Name { get; set; } = string.Empty;
///
/// 税目
///
[SugarColumn(ColumnDescription = "税目", Length = 50, IsNullable = true)]
public string? TaxCategory { get; set; }
///
/// 税率
///
[SugarColumn(ColumnDescription = "税率")]
public decimal TaxRate { get; set; }
///
/// 零税率标识
///
[SugarColumn(ColumnDescription = "零税率标识")]
public ZeroTaxRateIdentification Identification { get; set; }
///
/// 是否含税
///
[SugarColumn(ColumnDescription = "是否含税")]
public bool IsIncludingTax { get; set; }
///
/// 是否默认商品名
///
[SugarColumn(ColumnDescription = "是否默认商品名")]
public bool IsDefault { get; set; }
///
/// 默认币别
///
[SugarColumn(ColumnDescription = "默认币别", Length = 3, IsNullable = true)]
public string? DefaultCurrency { get; set; }
///
/// 规格型号
///
[SugarColumn(ColumnDescription = "规格型号", Length = 100, IsNullable = true)]
public string? Specification { get; set; }
///
/// 单位
///
[SugarColumn(ColumnDescription = "单位", IsNullable = true, Length = 50)]
public string? Unit { get; set; }
}
///
/// 零税率标识
///
public enum ZeroTaxRateIdentification
{
///
/// 非零税率
///
[Description("非零税率")]
NonZero,
///
/// 免征
///
[Description("免征")]
Exemption,
///
/// 不征收
///
[Description("不征收")]
NotLevied,
///
/// 普通零税率
///
[Description("普通零税率")]
Ordinary,
///
/// 出口退税
///
[Description("出口退税")]
ExportTaxRebate
}
}