|
@@ -103,6 +103,9 @@ class CouponConfig extends Controller
|
|
protected function _form_filter(&$data)
|
|
protected function _form_filter(&$data)
|
|
{
|
|
{
|
|
if($this->request->isPost()){
|
|
if($this->request->isPost()){
|
|
|
|
+ if($data['coupon_type'] == 1) $data['amount'] = 0;
|
|
|
|
+ if($data['coupon_type'] == 1) $data['low_amount'] = 0;
|
|
|
|
+
|
|
if( $data['low_amount']<=0){
|
|
if( $data['low_amount']<=0){
|
|
$data['low_amount']= 0;
|
|
$data['low_amount']= 0;
|
|
}
|
|
}
|