Commit 15498a38 by 朱继来

调整报价导入

parent b36e06d3
Showing with 2 additions and 2 deletions
......@@ -475,12 +475,12 @@ class QuoteModel extends Model
return;
}
if ($val['price_rmb'] <= 0) {
if ($val['currency'] == 'RMB' && $val['price_rmb'] <= 0) {
$err[] = '第'.($key+1).'行,含税价格等于或小于0';
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).'行,含税价格格式错误';
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment