This commit is contained in:
2025-06-17 09:32:06 +08:00
parent 2202cf0605
commit 7828dcc618
14 changed files with 1204 additions and 61 deletions

View File

@@ -595,19 +595,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))
if (loginInfo.IfForeign == 1 && string.IsNullOrWhiteSpace(act.F_VHUB_Text))
{
throw new BaseException("发票号重复");
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();
@@ -773,7 +772,5 @@ namespace MyCode.Project.Services.Implementation
}
#endregion
}
}