From f23c0f2be78a56b1de8d502e93999362c52770d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=A6=20=E8=B5=B5?= <89237069@qq.com> Date: Sat, 19 Aug 2023 10:15:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Entities/BQ/Dtos/INVOICE_GRP_DTO.cs | 105 ++++++++++-------- .../Entities/BQ/BBAC_BA_SERVICE.cs | 4 +- .../Entities/BQ/PUB_BA_SERVICE.cs | 8 +- .../Entities/BQ/PUB_CAN_SA_SERVICE.cs | 9 +- .../Entities/BQ/INVOICE_GRP.cs | 5 +- .../Entities/BQ/Managers/INV_MNG.cs | 15 +-- .../Entities/BQ/Managers/INV_MNG_EXT.cs | 2 +- 7 files changed, 75 insertions(+), 73 deletions(-) diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/INVOICE_GRP_DTO.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/INVOICE_GRP_DTO.cs index b7aa58df..1a789a81 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/INVOICE_GRP_DTO.cs +++ b/code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/INVOICE_GRP_DTO.cs @@ -106,18 +106,6 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos public List DETIAL { set; get; } - - - - - - - - - - - - } @@ -170,7 +158,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos //[ExporterHeader(DisplayName ="发票税后尾差")] //public decimal TaxDiff { get; set; } - [Display(Name = "客户代码")] + [ExporterHeader(DisplayName = "客户编码")] public string ClientCode { get; set; } } @@ -183,7 +171,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos /// ///实际纸质发票号 /// - [ImporterHeader(Name = "实际纸质发票号", FixAllSpace = true)] + [ImporterHeader(Name = "金税发票号", FixAllSpace = true)] [Required(ErrorMessage = "{0}是必填项")] [MaxLength(CommonConsts.MaxNameLength, ErrorMessage = "{0}最多输入{1}个字符")] public string RealnvBillNum { get; set; } @@ -191,7 +179,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos /// ///实际纸质发票号 /// - [ImporterHeader(Name = "系统生成发票号", FixAllSpace = true)] + [ImporterHeader(Name = "系统发票号", FixAllSpace = true)] [Required(ErrorMessage = "{0}是必填项")] [MaxLength(200, ErrorMessage = "{0}最多输入{1}个字符")] public string InvbillNum { get; set; } @@ -203,6 +191,18 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos public decimal Tax { get; set; } + [ImporterHeader(Name = "客户号", FixAllSpace = true)] + [Required(ErrorMessage = "{0}是必填项")] + public string ClientCode { get; set; } + + + [ImporterHeader(Name = "金税发票金额", FixAllSpace = true)] + [Required(ErrorMessage = "{0}是必填项")] + + public decimal RealAmt { get; set; } + + + } public class INVOICE_GRP_REQ_DTO : RequestInputBase @@ -385,11 +385,11 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos public class INVOICE_MAP_GROUP_EXP_DTO { - /// - ///期间 - /// - [ExporterHeader(DisplayName = "期间")] - public int Version { get; set; } + ///// + /////期间 + ///// + //[ExporterHeader(DisplayName = "期间")] + //public int Version { get; set; } /// ///发票号 /// @@ -406,20 +406,20 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos [ExporterHeader(DisplayName = "结算分组号")] public string SettleGroupNum { get; set; } /// - ///金额 - /// - [ExporterHeader(DisplayName = "金额")] - public decimal Amt { get; set; } - /// - ///扩展字段1 - /// - [ExporterHeader(DisplayName = "扩展字段1")] - public string Extend1 { get; set; } - /// - ///扩展字段2 - /// - [ExporterHeader(DisplayName = "扩展字段2")] - public string Extend2 { get; set; } + /////金额 + ///// + //[ExporterHeader(DisplayName = "金额")] + //public decimal Amt { get; set; } + ///// + /////扩展字段1 + ///// + //[ExporterHeader(DisplayName = "扩展字段1")] + //public string Extend1 { get; set; } + ///// + /////扩展字段2 + ///// + //[ExporterHeader(DisplayName = "扩展字段2")] + //public string Extend2 { get; set; } } @@ -436,11 +436,11 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos public class INVOICE_NOT_SETTLE_DTO : EntityDto { - /// - ///期间 - /// - [Display(Name = "期间")] - public int Version { get; set; } + ///// + /////期间 + ///// + //[Display(Name = "期间")] + //public int Version { get; set; } /// ///发票分组号 /// @@ -461,16 +461,23 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos /// [Display(Name = "不可结算零件号")] public string LU1 { get; set; } - /// - ///扩展字段1 - /// - [Display(Name = "扩展字段1")] - public string Extend1 { get; set; } - /// - ///扩展字段2 - /// - [Display(Name = "扩展字段2")] - public string Extend2 { get; set; } + + + //[Display(Name = "不可结算零件号")] + //public string LU1 { get; set; } + + + + ///// + /////扩展字段1 + ///// + //[Display(Name = "扩展字段1")] + //public string Extend1 { get; set; } + ///// + /////扩展字段2 + ///// + //[Display(Name = "扩展字段2")] + //public string Extend2 { get; set; } public Dictionary ExtraProperties { get; set; } diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/BBAC_BA_SERVICE.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/BBAC_BA_SERVICE.cs index 6f9206ff..292ed17d 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/BBAC_BA_SERVICE.cs +++ b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/BBAC_BA_SERVICE.cs @@ -122,8 +122,6 @@ namespace Win.Sfs.SettleAccount.Entities.BQ partcode: itm.PartCode ); entity.IsMaiDan = itm.IsMaiDan; - - bbaclist.Add(entity); } } @@ -324,7 +322,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ /// /// /// - public virtual async Task> ReissueInvoiceList(List p_list) + public virtual async Task ReissueInvoiceList(List p_list) { var invBill = new INVOICE_REPEAT_DTO(); diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/PUB_BA_SERVICE.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/PUB_BA_SERVICE.cs index 0e2d2126..1ecca416 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/PUB_BA_SERVICE.cs +++ b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/PUB_BA_SERVICE.cs @@ -110,7 +110,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ invGroupNum: itm.InvGroupNum, invbillnum: string.Empty, partcode: itm.PartCode, - pobillnum:itm.bil + pobillnum:string.Empty )); @@ -235,7 +235,8 @@ namespace Win.Sfs.SettleAccount.Entities.BQ groupNum: itm.GroupNum, invGroupNum: itm.InvGroupNum, invbillnum: string.Empty, - partcode:itm.PartCode + partcode:itm.PartCode, + pobillnum:string.Empty )); @@ -368,7 +369,8 @@ namespace Win.Sfs.SettleAccount.Entities.BQ invGroupNum: itm.InvGroupNum, invbillnum: string.Empty, - partcode: itm.PartCode + partcode: itm.PartCode, + pobillnum:string.Empty )); } } diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/PUB_CAN_SA_SERVICE.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/PUB_CAN_SA_SERVICE.cs index 79cfda4b..0e584220 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/PUB_CAN_SA_SERVICE.cs +++ b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/PUB_CAN_SA_SERVICE.cs @@ -22,9 +22,11 @@ using Win.Sfs.SettleAccount.ExportReports; using Win.Sfs.Shared.RepositoryBase; using static Win.Sfs.SettleAccount.SettleAccountPermissions; + + + namespace Win.Sfs.SettleAccount.Entities.BQ { - /// /// 通用业务可结算单 /// @@ -62,8 +64,6 @@ namespace Win.Sfs.SettleAccount.Entities.BQ _priceRepository = priceRepository; _pricebjRepository = pricebjRepository; } - - [HttpPost] public async override Task GenerateInvoice(string billnum) { @@ -116,9 +116,6 @@ namespace Win.Sfs.SettleAccount.Entities.BQ BeginDate = p.BeginTime, EndDate = p.EndTime, PartCode=d.PartCode,//客户零件号 - PoNum= - - }; var dtos = q.ToList(); if (dtos != null && dtos.Count > 0) diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/INVOICE_GRP.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/INVOICE_GRP.cs index f38d7d1c..c3db702c 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/INVOICE_GRP.cs +++ b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/INVOICE_GRP.cs @@ -10,7 +10,7 @@ public class INVOICE_GRP : FullAuditedAggregateRoot [Display(Name = "金税发票号")] public string RealnvBillNum { get; set; } = null!; - [Display(Name = "系统生成发票号")] + [Display(Name = "系统发票号")] public string InvbillNum { get; set; } = null!; [Display(Name = "未税金额")] @@ -52,12 +52,13 @@ public class INVOICE_GRP : FullAuditedAggregateRoot public decimal TaxDiff { get; set; } [Display(Name = "客户代码")] public string ClientCode { get; set; } - [Display(Name = "实际发票金额")] + [Display(Name = "金税发票金额")] public decimal RealAmt { get; set; } + public INVOICE_GRP(Guid guid, string realnvBillNum, string invbillNum, decimal amt, decimal taxAmt, string invGroupNum, string fileName, diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Managers/INV_MNG.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Managers/INV_MNG.cs index c2b9c11e..9b6936c3 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Managers/INV_MNG.cs +++ b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Managers/INV_MNG.cs @@ -380,7 +380,6 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Managers /// public virtual async Task ReceivedAsync(List p_invs) { - var invList = _repository.Where(p => p_invs.Contains(p.InvbillNum)).ToList();//所有提交发票信息 int count = invList.Select(p => p.InvGroupNum).Distinct().Count(); if (count > 1) @@ -594,8 +593,6 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Managers invGroupNum: itm.InvGroupNum, invbillnum: itm.InvBillNum, partcode:itm.PartCode - - )); } } @@ -626,7 +623,6 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Managers invGroupNum: itm.InvGroupNum, invbillnum: itm.InvBillNum, partcode: itm.PartCode - )); } } @@ -645,7 +641,6 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Managers site: string.Empty ); bbacmainlist.Add(bbac); - } var bbacDetail = new List(); foreach (var itm in entityList) @@ -678,7 +673,6 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Managers { itm.State = SettleBillState.客户已收票; }; - await _repository.DbContext.BulkUpdateAsync(invList); return true; } @@ -705,7 +699,6 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Managers oldlist = pdoldlist.Select(p => p.BillNum).ToList();//已经存在扣减记录,的发票号 } newlist = p_invs.Where(p => !oldlist.Contains(p)).ToList();//不存在扣减记录的发票号 - List entityList = new List();//结算明细 var namelist = invList.Select(p => p.InvbillNum).ToList(); if (oldlist.Count > 0) @@ -734,7 +727,10 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Managers groupNum: itm.GroupNum, invGroupNum: itm.InvGroupNum, invbillnum: itm.InvBillNum, - partcode:itm.PartCode + partcode:itm.PartCode, + + + pobillnum:string.Empty )); @@ -766,7 +762,8 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Managers groupNum: itm.GroupNum, invGroupNum: itm.InvGroupNum, invbillnum: itm.InvBillNum, - partcode: itm.PartCode + partcode: itm.PartCode, + pobillnum: string.Empty )); } } diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Managers/INV_MNG_EXT.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Managers/INV_MNG_EXT.cs index 18f1092f..265738e5 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Managers/INV_MNG_EXT.cs +++ b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Managers/INV_MNG_EXT.cs @@ -929,7 +929,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Managers { throw new UserFriendlyException($"选择要重开发票号{p_OldInvBillNum}已经作废不能重开"); } - inv.InvoiceState = InvoiceBillState.报废; + //inv.InvoiceState = InvoiceBillState.报废;