修复bug

This commit is contained in:
18942506660
2024-02-29 16:00:10 +08:00
parent 93b949bf5e
commit 90d311ecfa

View File

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