Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
liexin_supplier
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
594e90ee
authored
2 years ago
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
开票资料判断
parent
2a2b9283
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
app/Http/Validators/SupplierValidator.php
app/Http/Validators/SupplierValidator.php
View file @
594e90ee
...
...
@@ -76,8 +76,8 @@ class SupplierValidator
/**
* --->>附件必填要求:
* 如果供应商类别为正式供应商,营业执照、开票资料必须上传,供应商性质为现货商,则品质保证协议必须上传;
* 如果供应商类别为临时供应商,营业执照、开票资料必须上传,品质保证协议不需要上传
* 如果供应商类别为正式供应商,营业执照、开票资料必须上传
(结算币种为人民币)
,供应商性质为现货商,则品质保证协议必须上传;
* 如果供应商类别为临时供应商,营业执照、开票资料必须上传
(结算币种为人民币)
,品质保证协议不需要上传
**/
//只有在提交供应商是正式的时候,才会去校验附件
//校验附件这块,新增和修改判断的逻辑不一样
...
...
@@ -97,8 +97,8 @@ class SupplierValidator
$errorMessageList
[]
=
'营业执照必须上传'
;
}
if
(
!
in_array
(
'billing_information'
,
$attachmentFields
))
{
$errorMessageList
[]
=
'开票资料必须上传'
;
if
(
!
in_array
(
'billing_information'
,
$attachmentFields
)
&&
$validateData
[
'currency'
]
==
1
)
{
$errorMessageList
[]
=
'
如果选择币种为人民币,
开票资料必须上传'
;
}
if
(
$validateData
[
'supplier_type'
]
==
1
&&
$validateData
[
'supplier_group'
]
==
2
)
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment