mirror of
https://gitee.com/ShopeX/OMS
synced 2026-03-31 21:25:33 +08:00
49 lines
1.4 KiB
PHP
49 lines
1.4 KiB
PHP
<?php
|
|
/**
|
|
* Copyright 2012-2026 ShopeX (https://www.shopex.cn)
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
class wms_print_tmpl_logi_amazon extends wms_print_tmpl_express{
|
|
|
|
public function __construct($controller){
|
|
$this->smarty = $controller;
|
|
}
|
|
|
|
public function setParams( $params = array() ){
|
|
|
|
if(!$params['order_bn']) return $this;
|
|
|
|
$order_Mdl = app::get('ome')->model('orders');
|
|
|
|
$filter = array('self_delivery'=>'false','shop_type'=>'amazon');
|
|
|
|
$filter['order_bn'] = implode(',',$params['order_bn']);
|
|
|
|
$orders = $order_Mdl->getList('order_bn',$filter);
|
|
|
|
if($orders){
|
|
foreach ($orders as $v) {
|
|
$order_bns[] = $v['order_bn'];
|
|
}
|
|
|
|
$extend_message = '订单为'.implode(',',$order_bns).'属于亚马逊配送,请去亚马逊后台进行打印。打印完后,将运单号录入到淘管对应的发货单上。';
|
|
|
|
$this->smarty->pagedata['extend_message'] = $extend_message;
|
|
}
|
|
|
|
return $this;
|
|
}
|
|
|
|
} |