} $db->CompleteTrans(); exit; } //撤销发货 if ($_GET['action'] == "chexiao") { $Store = new Store($db); $CaiWu = new CaiWu($db); $db->StartTrans(); $fahuoinfo = returntablefield("fahuodan", "billid", $_GET['billid'], "yunfei,jiesuantype,dingdanbillid"); $yunfei = $fahuoinfo['yunfei']; $jiesuantype = $fahuoinfo['jiesuantype']; $dingdanbillid = $fahuoinfo['dingdanbillid']; //撤销运费 if ($yunfei != 0 && $jiesuantype == 1) { $CaiWu->insertFeiYongAccount(6, -$yunfei, 1, $_SESSION['LOGIN_USER_ID'], -1); } //撤销发货 $Store->cancelFaHuo($_GET['billid']); //是否事务出现错误 if ($db->HasFailedTrans()) { print "<script language=javascript>alert('错误:" . str_replace("'", "\\'", $db->ErrorMsg()) . "');window.history.back(-1);</script>"; } else { page_css("撤销发货"); $return = FormPageAction("action", "init_default"); print_infor("发货单撤销成功", 'trip', "location='?{$return}'", "?{$return}", 0); } $db->CompleteTrans(); exit; } if ($_GET['action'] == 'printKuaiDi') {
ini_set('display_errors', 1); ini_set('error_reporting', E_ALL); error_reporting(E_WARNING | E_ERROR); require_once 'lib.inc.php'; $GLOBAL_SESSION = returnsession(); validateMenuPriv("报销单审核"); if ($_GET['action'] == "shenhedan") { $CaiWu = new CaiWu($db); $db->StartTrans(); $billid = $_GET['单号']; $feiyonginfo = returntablefield("v_feiyong_sq", "单号", $billid, "金额,费用类型"); $jine = $feiyonginfo['金额']; $fytype = $feiyonginfo['费用类型']; $sql = "update crm_feiyong_sq set 是否审核='4',出纳员='" . $_SESSION['LOGIN_USER_ID'] . "',支付时间=now() where 单号='{$billid}'"; $rs = $db->Execute($sql); $CaiWu->insertFeiYongAccount($fytype, $jine, 1, $_SESSION['LOGIN_USER_ID'], -1); //是否事务出现错误 if ($db->HasFailedTrans()) { print "<script language=javascript>alert('错误:" . str_replace("'", "\\'", $db->ErrorMsg()) . "');window.history.back(-1);</script>"; } else { page_css("报销单审核"); $return = $return . "?" . FormPageAction("action", "init_default"); print_infor("已报销", 'trip', "location='?{$return}'", "{$return}", 0); } $db->CompleteTrans(); exit; } addShortCutByDate("创建时间", "申请时间"); $filetablename = 'v_feiyong_sq'; $parse_filename = 'v_feiyong_sq'; require_once 'include.inc.php';
<?php ini_set('display_errors', 1); ini_set('error_reporting', E_ALL); error_reporting(E_WARNING | E_ERROR); require_once 'lib.inc.php'; $GLOBAL_SESSION = returnsession(); validateMenuPriv("其他收入单"); if ($_GET['action'] == "add_default_data") { global $db; //开启事务 $db->StartTrans(); $CaiWu = new CaiWu($db); $CaiWu->insertFeiYongAccount($_POST['typeid'], $_POST['jine'], $_POST['accountid'], $_SESSION['LOGIN_USER_ID'], $_POST['kind'], $_POST['chanshengdate'], $_POST['beizhu']); //是否事务出现错误 if ($db->HasFailedTrans()) { print "<script language=javascript>alert('错误:" . str_replace("'", "\\'", $db->ErrorMsg()) . "');window.history.back(-1);</script>"; } else { page_css("其他收入单"); $return = FormPageAction("action", "init_default"); print_infor("其他收入单增加成功", 'trip', "location='?{$return}'", "?{$return}", 0); } $db->CompleteTrans(); exit; } if ($_GET['action'] == "delete_array") { $selectid = $_GET['selectid']; $selectid = explode(",", $selectid); //开启事务 $CaiWu = new CaiWu($db); $db->StartTrans();