1111
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user