lvhao пре 1 недеља
родитељ
комит
b5dfe49a6b
2 измењених фајлова са 7 додато и 1 уклоњено
  1. 5 0
      core/CoreApp/controllers/Fullorder.php
  2. 2 1
      template/erp/fullorder.html

+ 5 - 0
core/CoreApp/controllers/Fullorder.php

@@ -309,6 +309,7 @@ class Fullorder extends Start_Controller {
 			$paypal = $this->input->post('paypal',true);
 			$pay = $this->input->post('pay',true);
 			$klarna = $this->input->post('klarna',true);
+			$orderremarks = $this->input->post('orderremarks',true);
 			$zf = $this->input->post('zf',true);
 			$where = "1=1 and (".rtrim($fgshop,'or').")";
 			if($warehouse)
@@ -435,6 +436,10 @@ class Fullorder extends Start_Controller {
 					$where  .= " and paypal like '%-%-%-%'";
 				}
             }
+
+			if($orderremarks){
+				$where  .= " and orderremarks like '%$orderremarks%'";
+			}
 			if($plorder)
             {
 				$plorderinfo = '';$plnumber = '';$pln = 0;

+ 2 - 1
template/erp/fullorder.html

@@ -57,7 +57,7 @@
 <li>客户名称:<input value="" name="name" type="text"  style="width:160px"></li>
 <li>邮箱:<input value="" name="email" type="text" style="width:200px"></li>
 <li>电话:<input value="" name="phone" type="text" style="width:100px"></li>
-<li>交易号:<input value="" name="paypal" type="text" style="width:250px"></li>
+<li>订单备注:<input value="" name="orderremarks" type="text" style="width:250px"></li>
 <li>支付方式:<select name="pay" class="select" style="width:90px">
 <option value="">请选择</option>
 {loop typeclass(4,3) as $val}
@@ -65,6 +65,7 @@
 {/loop}
 </select>
 </li>
+<li>交易号:<input value="" name="paypal" type="text" style="width:250px"></li>
 <li>Capture:<select name="klarna" class="select" style="width:90px">
 <option value="">请选择</option>
 <option value="0">未捕获</option>