This commit is contained in:
余宇波 2025-08-23 15:44:50 +08:00
parent 5b029f6179
commit 100cdea76b

View File

@ -620,18 +620,18 @@ namespace MyCode.Project.Services.Implementation
throw new BaseException("不能跨收料组织创建发货通知单");
}
if (loginInfo.IfForeign == 1 && string.IsNullOrWhiteSpace(act.F_VHUB_Text))
{
throw new BaseException("国外的供应商发票号和发票日期是必填.");
}
if (loginInfo.IfForeign == 1)
{
if (_invoiceOrderRepository.IsExist(t => t.F_VHUB_Text == act.F_VHUB_Text && t.SupplierId == loginInfo.SupplierId))
{
throw new BaseException("发票号重复");
}
}
//2025-08-18 小廖要求取消这个限制需求
//if (loginInfo.IfForeign == 1 && string.IsNullOrWhiteSpace(act.F_VHUB_Text))
// {
// throw new BaseException("国外的供应商发票号和发票日期是必填.");
// }
// if (loginInfo.IfForeign == 1)
// {
// if (_invoiceOrderRepository.IsExist(t => t.F_VHUB_Text == act.F_VHUB_Text && t.SupplierId == loginInfo.SupplierId))
// {
// throw new BaseException("发票号重复");
// }
// }
//string ReceiveorgCode = SystemConfig.ReceiveorgCode;
//List<string> ReceiveorgCodeList = ReceiveorgCode.Split(',').ToList();