|
|
@ -139,11 +139,11 @@ public class CustomerProductionReturnNoteAppService : |
|
|
|
on itm.ItemCode equals itm1.ItemCode |
|
|
|
select itm1; |
|
|
|
|
|
|
|
var custErr= checkCustomer.Select(x => x.CustomerCode).Distinct().ToList(); |
|
|
|
if (custErr.Count > 1) |
|
|
|
{ |
|
|
|
throw new UserFriendlyException($"提交客户退货物品{string.Join(",", custErr)}存在多个客户,不能退货!"); |
|
|
|
} |
|
|
|
//var custErr= checkCustomer.Select(x => x.CustomerCode).Distinct().ToList();
|
|
|
|
//if (custErr.Count > 1)
|
|
|
|
//{
|
|
|
|
// throw new UserFriendlyException($"提交客户退货物品{string.Join(",", custErr)}存在多个客户,不能退货!");
|
|
|
|
//}
|
|
|
|
if(entity.Details.Count>0) |
|
|
|
{ |
|
|
|
entity.CustomerCode = checkCustomer.FirstOrDefault().CustomerCode; |
|
|
|