This commit is contained in:
余宇波 2025-07-31 13:51:51 +08:00
parent 6f56e2f30f
commit 37859063e7

View File

@ -614,8 +614,14 @@ namespace MyCode.Project.Services.Implementation
{
throw new BaseException("不能跨采购组织创建发货通知单");
}
if (loginInfo.IfForeign == 1 && string.IsNullOrWhiteSpace(act.F_VHUB_Text))
FPurchaseOrgIdList = listAll.Select(t => t.ReceiveorgCode).Distinct().ToList();
if (FPurchaseOrgIdList.Count > 1)
{
throw new BaseException("不能跨收料组织创建发货通知单");
}
if (loginInfo.IfForeign == 1 && string.IsNullOrWhiteSpace(act.F_VHUB_Text))
{
throw new BaseException("国外的供应商发票号和发票日期是必填.");
}