Browse Source

更新版本

master
学 赵 1 year ago
parent
commit
16eaf0b884
  1. 14
      code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/INVOICE_GRP_DTO.cs
  2. 4
      code/src/Modules/SettleAccount/src/SettleAccount.Application/Bases/BA_SERVICE.cs
  3. 25
      code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/INVOICE_SERVICE.cs

14
code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/INVOICE_GRP_DTO.cs

@ -387,11 +387,11 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos
public string LU { get; set; }
[Display(Name = "零件名称")]
public string PartDesc { get; set; }
/// <summary>
///发票分组号
/// </summary>
[Display(Name = "发票分组号")]
public string InvGroupNum { get; set; }
///// <summary>
/////发票分组号
///// </summary>
//[Display(Name = "发票分组号")]
//public string InvGroupNum { get; set; }
/// <summary>
///单价
@ -438,6 +438,10 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos
public DateTime EndDate { get; set; }
[Display(Name = "行号")]
public int LineCode { get; set; }

4
code/src/Modules/SettleAccount/src/SettleAccount.Application/Bases/BA_SERVICE.cs

@ -178,7 +178,7 @@ namespace Win.Sfs.SettleAccount.Bases
bj.LU = itm.LU;
bj.LU = itm.PartCode;
bj.PRICE = itm.PRICE;
bj.InvGroupNum = itm.InvGroupNum;
// bj.InvGroupNum = itm.InvGroupNum;
bj.DeliveryNumber = itm.ExtraProperties["DeliveryIndexNumber"].ToSqlValue();
//bj.DeliveryNumber = itm.GetProperty("DeliveryNumber", "");//交货号
@ -205,7 +205,7 @@ namespace Win.Sfs.SettleAccount.Bases
RealInvbillNum = string.IsNullOrEmpty(itm1.RealnvBillNum) ? string.Empty : itm1.RealnvBillNum,
//Version = itm.Version,
InvbillNum = itm.InvbillNum,
InvGroupNum = itm.InvGroupNum,
//InvGroupNum = itm.InvGroupNum,
LU = itm.LU,
// LU = itm.PartCode,
PRICE = itm.PRICE,

25
code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/INVOICE_SERVICE.cs

@ -18,6 +18,7 @@ using Shouldly;
using SqlSugar;
using Volo.Abp.Application.Dtos;
using Volo.Abp.Application.Services;
using Volo.Abp.Data;
using Volo.Abp.Domain.Entities;
using Volo.Abp.Uow;
using Win.Abp.Snowflakes;
@ -197,21 +198,21 @@ namespace Win.Sfs.SettleAccount.Entities.BQ
bj.LU = itm.LU;
bj.InvbillNum=itm.InvbillNum;
bj.PRICE = itm.PRICE;
bj.InvGroupNum = itm.InvGroupNum;
bj.DeliveryIndexNumber =itm.ExtraProperties["DeliveryIndexNumber"].ToSqlValue();
// bj.InvGroupNum = itm.InvGroupNum;
bj.DeliveryIndexNumber =itm.GetProperty("DeliveryIndexNumber","");
bj.Qty = itm.Qty;
bj.PRICE = itm.PRICE;
bj.Amt = Math.Round(itm.PRICE * itm.Qty, 2);
bj.RealAmt = Math.Round(Math.Round(itm.PRICE * itm.Qty, 2) * 0.13m, 2);
bj.TaxAmt = Math.Round(itm.PRICE * itm.Qty, 2) + Math.Round(Math.Round(itm.PRICE * itm.Qty, 2) * 0.13m, 2);
bj.Extend1=itm.Extend1;//合同号
bj.VendorCode = itm.ExtraProperties["VendorCode"].ToSqlValue();//供应商代码
bj.VendorName = itm.ExtraProperties["VendorName"].ToSqlValue();//供应商名称
bj.DeliveryNumber = itm.ExtraProperties["DeliveryNumber"].ToSqlValue();//交货号;
bj.PN = itm.ExtraProperties["PN"].ToSqlValue();//
bj.PO=itm.ExtraProperties["PO"].ToSqlValue();
bj.ProductionGroup = itm.ExtraProperties["PartGroup"].ToSqlValue();
bj.VendorCode = itm.GetProperty("VendorCode","");//供应商代码
bj.VendorName = itm.GetProperty("VendorName","");//供应商名称
bj.DeliveryNumber = itm.GetProperty("DeliveryNumber","");//交货号;
bj.PN = itm.GetProperty("PN","");//
bj.PO= itm.GetProperty("PO","");
bj.ProductionGroup = itm.GetProperty("PartGroup","");
bj.LineCode = itm.LineCode;
bj.BeginDate=itm.BeginDate;
bj.EndDate = itm.EndDate;
//bj.DeliveryNumber = itm.GetProperty("DeliveryNumber", "");//交货号
@ -257,9 +258,11 @@ namespace Win.Sfs.SettleAccount.Entities.BQ
RealAmt=itm.RealAmt,
TaxAmt=itm.TaxAmt,
SettleDate = itm.SettleDate,
ProductionGroup=itm.ProductionGroup
ProductionGroup=itm.ProductionGroup,
LineCode=itm.LineCode
};
entity.INVOICE_WAIT_DETAIL_BJ = bjquery.ToList();
entity.INVOICE_WAIT_DETAIL_BJ = bjquery.OrderBy(p=>p.LineCode).ToList();

Loading…
Cancel
Save