|
@ -18,6 +18,7 @@ using Shouldly; |
|
|
using SqlSugar; |
|
|
using SqlSugar; |
|
|
using Volo.Abp.Application.Dtos; |
|
|
using Volo.Abp.Application.Dtos; |
|
|
using Volo.Abp.Application.Services; |
|
|
using Volo.Abp.Application.Services; |
|
|
|
|
|
using Volo.Abp.Data; |
|
|
using Volo.Abp.Domain.Entities; |
|
|
using Volo.Abp.Domain.Entities; |
|
|
using Volo.Abp.Uow; |
|
|
using Volo.Abp.Uow; |
|
|
using Win.Abp.Snowflakes; |
|
|
using Win.Abp.Snowflakes; |
|
@ -197,21 +198,21 @@ namespace Win.Sfs.SettleAccount.Entities.BQ |
|
|
bj.LU = itm.LU; |
|
|
bj.LU = itm.LU; |
|
|
bj.InvbillNum=itm.InvbillNum; |
|
|
bj.InvbillNum=itm.InvbillNum; |
|
|
bj.PRICE = itm.PRICE; |
|
|
bj.PRICE = itm.PRICE; |
|
|
bj.InvGroupNum = itm.InvGroupNum; |
|
|
// bj.InvGroupNum = itm.InvGroupNum;
|
|
|
bj.DeliveryIndexNumber =itm.ExtraProperties["DeliveryIndexNumber"].ToSqlValue(); |
|
|
bj.DeliveryIndexNumber =itm.GetProperty("DeliveryIndexNumber",""); |
|
|
bj.Qty = itm.Qty; |
|
|
bj.Qty = itm.Qty; |
|
|
bj.PRICE = itm.PRICE; |
|
|
bj.PRICE = itm.PRICE; |
|
|
bj.Amt = Math.Round(itm.PRICE * itm.Qty, 2); |
|
|
bj.Amt = Math.Round(itm.PRICE * itm.Qty, 2); |
|
|
bj.RealAmt = Math.Round(Math.Round(itm.PRICE * itm.Qty, 2) * 0.13m, 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.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.Extend1=itm.Extend1;//合同号
|
|
|
bj.VendorCode = itm.ExtraProperties["VendorCode"].ToSqlValue();//供应商代码
|
|
|
bj.VendorCode = itm.GetProperty("VendorCode","");//供应商代码
|
|
|
bj.VendorName = itm.ExtraProperties["VendorName"].ToSqlValue();//供应商名称
|
|
|
bj.VendorName = itm.GetProperty("VendorName","");//供应商名称
|
|
|
bj.DeliveryNumber = itm.ExtraProperties["DeliveryNumber"].ToSqlValue();//交货号;
|
|
|
bj.DeliveryNumber = itm.GetProperty("DeliveryNumber","");//交货号;
|
|
|
bj.PN = itm.ExtraProperties["PN"].ToSqlValue();//
|
|
|
bj.PN = itm.GetProperty("PN","");//
|
|
|
bj.PO=itm.ExtraProperties["PO"].ToSqlValue(); |
|
|
bj.PO= itm.GetProperty("PO",""); |
|
|
bj.ProductionGroup = itm.ExtraProperties["PartGroup"].ToSqlValue(); |
|
|
bj.ProductionGroup = itm.GetProperty("PartGroup",""); |
|
|
|
|
|
bj.LineCode = itm.LineCode; |
|
|
bj.BeginDate=itm.BeginDate; |
|
|
bj.BeginDate=itm.BeginDate; |
|
|
bj.EndDate = itm.EndDate; |
|
|
bj.EndDate = itm.EndDate; |
|
|
//bj.DeliveryNumber = itm.GetProperty("DeliveryNumber", "");//交货号
|
|
|
//bj.DeliveryNumber = itm.GetProperty("DeliveryNumber", "");//交货号
|
|
@ -238,7 +239,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ |
|
|
RealInvbillNum = string.IsNullOrEmpty(itm1.RealnvBillNum) ? string.Empty : itm1.RealnvBillNum, |
|
|
RealInvbillNum = string.IsNullOrEmpty(itm1.RealnvBillNum) ? string.Empty : itm1.RealnvBillNum, |
|
|
//Version = itm.Version,
|
|
|
//Version = itm.Version,
|
|
|
InvbillNum = itm.InvbillNum, |
|
|
InvbillNum = itm.InvbillNum, |
|
|
InvGroupNum = itm.InvGroupNum, |
|
|
//InvGroupNum = itm.InvGroupNum,
|
|
|
LU = itm.LU, |
|
|
LU = itm.LU, |
|
|
//PartCode = itm.PartCode,
|
|
|
//PartCode = itm.PartCode,
|
|
|
PO=itm.PO, |
|
|
PO=itm.PO, |
|
@ -250,16 +251,18 @@ namespace Win.Sfs.SettleAccount.Entities.BQ |
|
|
VendorCode = itm.VendorCode, |
|
|
VendorCode = itm.VendorCode, |
|
|
VendorName = itm.VendorName, |
|
|
VendorName = itm.VendorName, |
|
|
// PurchaseOrderNumber = itm.PurchaseOrderNumber,
|
|
|
// PurchaseOrderNumber = itm.PurchaseOrderNumber,
|
|
|
DeliveryIndexNumber = itm.DeliveryIndexNumber, |
|
|
DeliveryIndexNumber = itm.DeliveryIndexNumber , |
|
|
Extend1 = itm.Extend1, |
|
|
Extend1 = itm.Extend1, |
|
|
BeginDate = itm.BeginDate, |
|
|
BeginDate = itm.BeginDate, |
|
|
EndDate = itm.EndDate, |
|
|
EndDate = itm.EndDate, |
|
|
RealAmt=itm.RealAmt, |
|
|
RealAmt=itm.RealAmt, |
|
|
TaxAmt=itm.TaxAmt, |
|
|
TaxAmt=itm.TaxAmt, |
|
|
SettleDate = itm.SettleDate, |
|
|
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(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|