|
|
@@ -187,9 +187,11 @@ class OrderIssue extends Model
|
|
|
foreach ($rejectedMap as $key => $map) {
|
|
|
if (isset($map['残次']) && $map['残次'] > 0) return "差异退回";
|
|
|
if (empty($orderIssueMap[$key])) return "差异退回";
|
|
|
- if ($rejectedMap[$key]['正品'] < $orderIssueMap[$key]) $portion += 1;
|
|
|
- if ($rejectedMap[$key]['正品'] > $orderIssueMap[$key]) return "超量退回"; // 超量退回
|
|
|
- if ($rejectedMap[$key]['正品'] == $orderIssueMap[$key]) $equal += 1;
|
|
|
+ if(isset($rejectedMap[$key]['正品']) && isset($orderIssueMap[$key]['正品'])){
|
|
|
+ if ( $rejectedMap[$key]['正品'] < $orderIssueMap[$key]) $portion += 1;
|
|
|
+ if ( $rejectedMap[$key]['正品'] > $orderIssueMap[$key]) return "超量退回"; // 超量退回
|
|
|
+ if ( $rejectedMap[$key]['正品'] == $orderIssueMap[$key]) $equal += 1;
|
|
|
+ }
|
|
|
}
|
|
|
if ($equal == count($orderIssueMap) && $equal == count($rejectedMap) && $portion == 0) return "全部退回"; // 全部退回
|
|
|
if ($portion > 0) return "部分退回"; // 部分退回
|