package cn.iocoder.yudao.module.crm.controller.admin.invoice.vo.invoice; import cn.idev.excel.annotation.ExcelProperty; import cn.iocoder.yudao.framework.excel.core.convert.PercentBigDecimalConvert; import io.swagger.v3.oas.annotations.media.Schema; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; import java.math.BigDecimal; /** * 管理后台 - 开票导入 Excel VO * * 说明:字段对齐税务系统导出的「开票明细」表(如《8月份开票明细》)。 * 一行 = 一张发票的一行货物明细,同一个「数电发票号码」的多行会合并成一张开票 + 多条明细。 * 「合同编号」「客户」不再参与导入,也不再校验合同是否存在/是否审核通过。 * * @author 超级管理员 */ @Schema(description = "管理后台 - 开票导入 Excel VO") @Data @Builder @AllArgsConstructor @NoArgsConstructor public class CrmInvoiceImportExcelVO { @ExcelProperty("序号") @Schema(description = "序号") private String seqNo; @ExcelProperty("数电发票号码") @Schema(description = "发票号码,必填;同一张发票的多行货物明细填相同的号码", requiredMode = Schema.RequiredMode.REQUIRED, example = "26642000000407487106") private String invoiceNo; @ExcelProperty("销方识别号") @Schema(description = "销售方纳税人识别号", example = "91641200MAD2L20106") private String sellerTaxNo; @ExcelProperty("销方名称") @Schema(description = "销售方名称", example = "宁夏九泓化工科技有限公司") private String sellerName; @ExcelProperty("购方识别号") @Schema(description = "购买方纳税人识别号", example = "91370211MABXYP6Y74") private String buyerTaxNo; @ExcelProperty("购买方名称") @Schema(description = "购买方名称(自由文本,不与客户档案关联)", example = "山东瑞达化工有限公司") private String buyerName; @ExcelProperty("开票日期") @Schema(description = "开票日期,格式如 2026-08-30 16:48:06 或 2026-08-30") private String invoiceTime; @ExcelProperty("税收分类编码") @Schema(description = "税收分类编码") private String taxCategoryCode; @ExcelProperty("特定业务类型") @Schema(description = "特定业务类型") private String businessType; @ExcelProperty("货物或应税劳务名称") @Schema(description = "货物或应税劳务名称", example = "*有机化学原料*正丁醇") private String goodsName; @ExcelProperty("规格型号") @Schema(description = "规格型号") private String spec; @ExcelProperty("单位") @Schema(description = "单位", example = "吨") private String unit; @ExcelProperty("数量") @Schema(description = "数量", example = "101.63") private BigDecimal quantity; @ExcelProperty("单价") @Schema(description = "单价", example = "2477.87610619469") private BigDecimal unitPrice; @ExcelProperty("金额") @Schema(description = "金额(不含税)", example = "251826.55") private BigDecimal amount; @ExcelProperty(value = "税率", converter = PercentBigDecimalConvert.class) @Schema(description = "税率,如 0.13;也兼容税务导出里 13% 的文本写法(自动换算成 0.13)", example = "0.13") private BigDecimal taxRate; @ExcelProperty("税额") @Schema(description = "税额", example = "32737.45") private BigDecimal taxAmount; @ExcelProperty("价税合计") @Schema(description = "价税合计", example = "284564") private BigDecimal totalPrice; @ExcelProperty("发票来源") @Schema(description = "发票来源", example = "电子发票服务平台") private String invoiceSource; @ExcelProperty("发票票种") @Schema(description = "发票票种", example = "数电发票(增值税专用发票)") private String invoiceKind; @ExcelProperty("发票状态") @Schema(description = "发票状态", example = "正常") private String invoiceStatus; @ExcelProperty("是否正数发票") @Schema(description = "是否正数发票", example = "是") private String positiveFlag; @ExcelProperty("发票风险等级") @Schema(description = "发票风险等级", example = "正常") private String riskLevel; @ExcelProperty("开票人") @Schema(description = "开票人", example = "赵慧慧") private String issuer; @ExcelProperty("合同编号") @Schema(description = "合同编号(自由填写,不校验是否存在于合同管理)") private String contractNo; @ExcelProperty("备注") @Schema(description = "备注") private String remark; }