Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
黄成意
/
php_frq_api
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
15498a38
authored
Mar 25, 2021
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
调整报价导入
parent
b36e06d3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
app/Model/QuoteModel.php
app/Model/QuoteModel.php
View file @
15498a38
...
@@ -475,12 +475,12 @@ class QuoteModel extends Model
...
@@ -475,12 +475,12 @@ class QuoteModel extends Model
return
;
return
;
}
}
if
(
$val
[
'price_rmb'
]
<=
0
)
{
if
(
$val
[
'
currency'
]
==
'RMB'
&&
$val
[
'
price_rmb'
]
<=
0
)
{
$err
[]
=
'第'
.
(
$key
+
1
)
.
'行,含税价格等于或小于0'
;
$err
[]
=
'第'
.
(
$key
+
1
)
.
'行,含税价格等于或小于0'
;
return
;
return
;
}
}
if
(
!
preg_match
(
'/^\d{0,9}(\.\d{0,6})?$/'
,
$val
[
'price_rmb'
]))
{
if
(
$val
[
'currency'
]
==
'RMB'
&&
!
preg_match
(
'/^\d{0,9}(\.\d{0,6})?$/'
,
$val
[
'price_rmb'
]))
{
$err
[]
=
'第'
.
(
$key
+
1
)
.
'行,含税价格格式错误'
;
$err
[]
=
'第'
.
(
$key
+
1
)
.
'行,含税价格格式错误'
;
return
;
return
;
}
}
...
...
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