修复bug

This commit is contained in:
18942506660
2024-02-29 15:56:51 +08:00
parent a2d30483c1
commit 93b949bf5e

View File

@@ -257,7 +257,7 @@ namespace WMS.Web.Repositories
if (!string.IsNullOrEmpty(dto.ReceiptCustomer))
{
var rec_type = dto.ReceiptCustomer.Substring(0, 1);
var rec_id = Convert.ToInt32(dto.ReceiptCustomer.Substring(2, dto.ReceiptCustomer.Length - 1));
var rec_id = Convert.ToInt32(dto.ReceiptCustomer.Substring(2, dto.ReceiptCustomer.Length - 2));
if (rec_type.Equals("c"))//差销售出库单(客户)
query = query.Where(w => rec_id == w.order.ReceiptCustomerId && w.order.Type == OutStockType.Sal);