lvhao пре 6 месеци
родитељ
комит
564af87391
1 измењених фајлова са 25 додато и 1 уклоњено
  1. 25 1
      core/CoreApp/controllers/Boss.php

+ 25 - 1
core/CoreApp/controllers/Boss.php

@@ -1245,6 +1245,16 @@ class Boss extends Start_Controller {
 							}else{
 							    $sp[$title[1]]['warehouse'][$val['type']] = $title[2];
 							}
+							//美仓
+							if($val['type'] == 5){
+								$sp[$title[1]]['mc'] =  $title[2];
+							}elseif($val['type'] == 13){//许昌仓
+								$sp[$title[1]]['xcc'] =  $title[2];
+							}elseif($val['type'] == 16){//定制仓
+								$sp[$title[1]]['dzc'] =  $title[2];
+							}else{
+								$sp[$title[1]]['qtc'] =  $title[2];
+							}
 						}
 						else
 						{
@@ -1253,7 +1263,17 @@ class Boss extends Start_Controller {
 							$whs = (isset($wsku[0]['sku']))?$wsku[0]['sku']:'';
 							$sp[$title[1]] = array('t'=>$title[1],'z'=>$zh,'w'=>$whs,'j'=>$jm,'n'=>$title[2],"warehouse"=>[
 							        $val['type'] =>$title[2],
-							    ],"warehouse_show"=>"");
+							    ],"warehouse_show"=>"","xcc"=>0,"mc"=>0,"dzc"=>0,"qtc"=>0);
+							//美仓
+							if($val['type'] == 5){
+								$sp[$title[1]]['mc'] =  $title[2];
+							}elseif($val['type'] == 13){//许昌仓
+								$sp[$title[1]]['xcc'] =  $title[2];
+							}elseif($val['type'] == 16){//定制仓
+								$sp[$title[1]]['dzc'] =  $title[2];
+							}else{
+								$sp[$title[1]]['qtc'] =  $title[2];
+							}
 						}
 					}
 				}
@@ -1275,6 +1295,10 @@ class Boss extends Start_Controller {
 			<td>用友料号</td>
             <td>数量</td>
 			<td>仓库</td>
+			<td>许昌仓订单销售发货量</td>
+			<td>美仓订单发货量</td>
+			<td>定制仓订单发货量</td>
+			<td>其他仓订单发货量</td>
             </tr>
             </table>"; 
             $filename = $title.".xls";