|
|
@ -1,4 +1,4 @@ |
|
|
|
using System; |
|
|
|
using System; |
|
|
|
using System.Collections.Generic; |
|
|
|
using System.ComponentModel.DataAnnotations; |
|
|
|
using System.Linq; |
|
|
@ -189,9 +189,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ |
|
|
|
else if (invs.FirstOrDefault().BusinessType == EnumBusinessType.BeiJian) |
|
|
|
{ |
|
|
|
var B = await _wRepository.GetListByFilterAsync(input.Filters, input.Sorting, int.MaxValue, input.SkipCount).ConfigureAwait(false); |
|
|
|
|
|
|
|
B.OrderBy(p => p.LineCode); |
|
|
|
|
|
|
|
List<INVOICE_WAIT_DETAIL_BJ_DTO> BMap = new List<INVOICE_WAIT_DETAIL_BJ_DTO>(); |
|
|
|
foreach (var itm in B) |
|
|
|
{ |
|
|
@ -201,7 +199,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ |
|
|
|
bj.PRICE = itm.PRICE; |
|
|
|
bj.InvbillNum = itm.InvbillNum; |
|
|
|
bj.InvGroupNum = itm.InvGroupNum; |
|
|
|
bj.DeliveryNumber =itm.ExtraProperties["DeliveryIndexNumber"].ToSqlValue(); |
|
|
|
bj.DeliveryIndexNumber =itm.ExtraProperties["DeliveryIndexNumber"].ToSqlValue(); |
|
|
|
bj.Qty = itm.Qty; |
|
|
|
bj.PRICE = itm.PRICE; |
|
|
|
bj.Amt = Math.Round(itm.PRICE * itm.Qty, 2); |
|
|
@ -209,6 +207,8 @@ namespace Win.Sfs.SettleAccount.Entities.BQ |
|
|
|
bj.VendorCode = itm.ExtraProperties["VendorCode"].ToSqlValue();//供应商代码
|
|
|
|
bj.VendorName = itm.ExtraProperties["VendorName"].ToSqlValue();//供应商名称
|
|
|
|
bj.DeliveryNumber = itm.ExtraProperties["DeliveryNumber"].ToSqlValue();//交货号;
|
|
|
|
bj.BeginDate=itm.BeginDate; |
|
|
|
bj.EndDate = itm.EndDate; |
|
|
|
|
|
|
|
//bj.DeliveryNumber = itm.GetProperty("DeliveryNumber", "");//交货号
|
|
|
|
//bj.InvbillNum = itm.GetProperty("InvoiceNumber", "");//发票号
|
|
|
@ -240,11 +240,11 @@ namespace Win.Sfs.SettleAccount.Entities.BQ |
|
|
|
PRICE = itm.PRICE, |
|
|
|
Qty = itm.Qty, |
|
|
|
Amt = itm.Amt, |
|
|
|
DeliveryNumber = itm.DeliveryNumber , |
|
|
|
VendorCode = itm.VendorCode , |
|
|
|
VendorName = itm.VendorName , |
|
|
|
DeliveryNumber = itm.DeliveryNumber, |
|
|
|
VendorCode = itm.VendorCode, |
|
|
|
VendorName = itm.VendorName, |
|
|
|
// PurchaseOrderNumber = itm.PurchaseOrderNumber,
|
|
|
|
DeliveryIndexNumber =itm.DeliveryIndexNumber , |
|
|
|
DeliveryIndexNumber = itm.DeliveryIndexNumber, |
|
|
|
Extend1 = itm.Extend1, |
|
|
|
BeginDate = itm.BeginDate, |
|
|
|
EndDate = itm.EndDate, |
|
|
|