From 100cdea76b069558872a8e9164e55a94227e0d2f Mon Sep 17 00:00:00 2001 From: yuyubo <1870149533@qq.com> Date: Sat, 23 Aug 2025 15:44:50 +0800 Subject: [PATCH] 332 --- .../PurchaseOrder/PurchaseOrderService.cs | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/MyCode.Project.Services/Implementation/PurchaseOrder/PurchaseOrderService.cs b/MyCode.Project.Services/Implementation/PurchaseOrder/PurchaseOrderService.cs index e6346c6..1ddd56e 100644 --- a/MyCode.Project.Services/Implementation/PurchaseOrder/PurchaseOrderService.cs +++ b/MyCode.Project.Services/Implementation/PurchaseOrder/PurchaseOrderService.cs @@ -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 ReceiveorgCodeList = ReceiveorgCode.Split(',').ToList();