mirror of
https://gitee.com/ShopeX/OMS
synced 2026-03-22 18:35:35 +08:00
38 lines
1.1 KiB
PHP
38 lines
1.1 KiB
PHP
<?php
|
||
/**
|
||
* Copyright © ShopeX (http://www.shopex.cn). All rights reserved.
|
||
* See LICENSE file for license details.
|
||
*/
|
||
|
||
class finance_ctl_verification extends desktop_controller{
|
||
var $name = "核销日志";
|
||
|
||
/**
|
||
* index
|
||
* @return mixed 返回值
|
||
*/
|
||
public function index(){
|
||
$this->finder('finance_mdl_verification',array(
|
||
'title'=>app::get('finance')->_('核销日志'),
|
||
'use_buildin_recycle'=>false,
|
||
'use_view_tab'=>true,
|
||
'use_buildin_selectrow'=>true,
|
||
'use_buildin_filter'=>true,
|
||
'finder_cols'=>'column_edit,log_bn,type,op_name,op_time,money,content',
|
||
));
|
||
}
|
||
|
||
/*
|
||
**取消核销
|
||
*/
|
||
|
||
public function do_cancel(){
|
||
$url = 'index.php?app=finance&ctl=verification&act=index';
|
||
$log_id = $_POST['log_id'];
|
||
$rs = kernel::single('finance_verification')->do_cancel($log_id);
|
||
if($rs == 'false'){
|
||
$this->splash('error',$url,'撤销失败');
|
||
}
|
||
$this->splash('success',$url,'撤销成功');
|
||
}
|
||
} |