| 
					
				 | 
			
			
				@@ -320,6 +320,106 @@ async def print_return(): 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     return None 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+@app.post("/ELPC/stock_in", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+response_model=shipping_details, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+summary="入庫", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+description= 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    """ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        回傳: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        - objtype: 配送類別 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        - channel_id: 通路代碼 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        - customer_contract_id: 倉庫 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        - shipment_type: 儲區 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        - ship_date: 配送號碼 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    """ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+async def stock_in(): 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    return None 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+@app.post("/ELPC/shelf", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+response_model=shipping_details, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+summary="上架", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+description= 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    """ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        回傳: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        - objtype: 配送類別 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        - channel_id: 通路代碼 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        - customer_contract_id: 倉庫 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        - shipment_type: 儲區 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        - ship_date: 配送號碼 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    """ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+async def shelf(): 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    return None 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+@app.post("/ELPC/stock_out", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+response_model=shipping_details, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+summary="出庫", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+description= 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    """ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        回傳: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        - customer_contract_id: 倉庫 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        - ship_date: 配送號碼 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    """ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+async def stock_out(): 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    return None 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+@app.post("/ELPC/stock_move", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+response_model=shipping_details, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+summary="移動儲位", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+description= 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    """ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        回傳: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        - customer_contract_id: 倉庫 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        - ship_date: 來源儲區 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        - ship_date: 目的儲區 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    """ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+async def stock_move(): 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    return None 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+@app.post("/ELPC/outstock", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+response_model=shipping_details, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+summary="下架", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+description= 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    """ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        回傳: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        - customer_contract_id: 下架營業站 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        - ship_date: 通路商 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        - ship_date: 倉別 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    """ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+async def outstock(): 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    return None 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+@app.post("/ELPC/stock_check", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+response_model=shipping_details, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+summary="出庫檢核", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+description= 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    """ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        回傳: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        - customer_contract_id: 出庫檢核 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    """ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+async def outstock(): 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    return None 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 if __name__ == "__main__": 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     uvicorn.run("main:app", host="0.0.0.0", port=9898) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 |