|
@@ -148,6 +148,12 @@ class ReceiptController extends DooController {
|
|
|
$this->verifyId = $list;
|
|
|
$this->staff = $staff->getUserByIdList ( $_COOKIE ["staff"] );
|
|
|
|
|
|
+ // 检测用户信息完成
|
|
|
+ $this->data ['isStaffCompleteMsg'] = false;
|
|
|
+ $detail = $staff->checkStaffInfoIsComplete ( $_COOKIE ["staff"] );
|
|
|
+ if (! empty ( $detail ))
|
|
|
+ $this->data ['isStaffCompleteMsg'] = true;
|
|
|
+
|
|
|
return "/";
|
|
|
}
|
|
|
}
|
|
@@ -366,6 +372,11 @@ class ReceiptController extends DooController {
|
|
|
$receipt->verify = $verify;
|
|
|
$receipt->executeCopy = $executeDetail ['staff'];
|
|
|
$receipt->receiptOrder = "#B" . date ( "Ymd" ) . mt_rand ( 1000, 9999 );
|
|
|
+
|
|
|
+
|
|
|
+ $order=array("\r\n","\n","\r");
|
|
|
+ $replace='<br/>';
|
|
|
+ $explanation=str_replace($order,$replace,$explanation);
|
|
|
$receipt->explanation = $explanation;
|
|
|
|
|
|
$receipt->remittanceName = $remittanceName;
|
|
@@ -606,6 +617,10 @@ class ReceiptController extends DooController {
|
|
|
if ($receiptDetail ['status'] != 4 && ! empty ( $verify ))
|
|
|
$receipt->verify = $verify;
|
|
|
$receipt->executeCopy = $executeDetail ['staff'];
|
|
|
+
|
|
|
+ $order=array("\r\n","\n","\r");
|
|
|
+ $replace='<br/>';
|
|
|
+ $explanation=str_replace($order,$replace,$explanation);
|
|
|
$receipt->explanation = $explanation;
|
|
|
|
|
|
$receipt->remittanceName = $remittanceName;
|
|
@@ -1072,6 +1087,16 @@ class ReceiptController extends DooController {
|
|
|
$loanReceipt->verify = $verify;
|
|
|
|
|
|
$receipt->receiptOrder = $receipt->receiptOrder;
|
|
|
+
|
|
|
+ //添加HTML换行符
|
|
|
+ //var_dump($explanation);
|
|
|
+ $order=array("\r\n","\n","\r");
|
|
|
+ $replace='<br/>';
|
|
|
+ $explanation=str_replace($order,$replace,$explanation);
|
|
|
+
|
|
|
+// $explanation=str_replace('\r',"<br/>",$explanation);
|
|
|
+// $explanation=str_replace('\r\n',"<br/>",$explanation);
|
|
|
+
|
|
|
$loanReceipt->explanation = $explanation;
|
|
|
$loanRid = $loanReceipt->insert ();
|
|
|
|
|
@@ -1255,6 +1280,10 @@ class ReceiptController extends DooController {
|
|
|
if ($receiptDetail ['status'] != 4)
|
|
|
$receipt->verify = $verify;
|
|
|
|
|
|
+
|
|
|
+ $order=array("\r\n","\n","\r");
|
|
|
+ $replace='<br/>';
|
|
|
+ $explanation=str_replace($order,$replace,$explanation);
|
|
|
$receipt->explanation = $explanation;
|
|
|
|
|
|
$receipt->remittanceName = $remittanceName;
|
|
@@ -2132,7 +2161,7 @@ class ReceiptController extends DooController {
|
|
|
'asArray' => true
|
|
|
) );
|
|
|
|
|
|
- $receiptLog->rolename = $roleInfo ['name'];
|
|
|
+ //$receiptLog->rolename = $roleInfo ['name'];
|
|
|
}
|
|
|
|
|
|
$receiptLog->username = $this->staff [0] ['username'];
|
|
@@ -3255,6 +3284,7 @@ class ReceiptController extends DooController {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ $FC = $rolename ['name'];
|
|
|
$rolename ['name'] = '';
|
|
|
if (! empty ( $roleId )) {
|
|
|
Doo::loadModel ( 'role' );
|
|
@@ -3329,7 +3359,7 @@ class ReceiptController extends DooController {
|
|
|
}
|
|
|
}
|
|
|
$receiptList [$key] ['executeCopy'] = $executeCopy;
|
|
|
-
|
|
|
+ // print_r($verifyList);
|
|
|
$receiptList [$key] ['verifyList'] = $verifyList;
|
|
|
$receiptList [$key] ['staffDetail'] = $staff->getOne ( array (
|
|
|
'where' => 'sid=' . $value ['staff'],
|
|
@@ -3369,6 +3399,22 @@ class ReceiptController extends DooController {
|
|
|
) );
|
|
|
}
|
|
|
|
|
|
+ $RN = json_decode ( $rolename ['staff'] );
|
|
|
+
|
|
|
+ //
|
|
|
+ foreach ( $rlList as $key => $value ) {
|
|
|
+ $rlList [$key] ['rolename'] = '';
|
|
|
+ foreach ( $RN as $k => $v ) {
|
|
|
+ $id = explode ( "_", $v );
|
|
|
+
|
|
|
+ if ($id [0] == $value ['uid']) {
|
|
|
+
|
|
|
+ $rlList [$key] ['rolename'] = $FC;
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
Doo::loadModel ( 'enclosur' );
|
|
|
$enclosur = new enclosur ();
|
|
|
$enclosurList = $enclosur->find ( array (
|
|
@@ -6095,6 +6141,11 @@ class ReceiptController extends DooController {
|
|
|
$receipt->executeCopy = $executeDetail ['staff'];
|
|
|
|
|
|
$receipt->receiptOrder = "#B" . date ( "Ymd" ) . mt_rand ( 1000, 9999 );
|
|
|
+
|
|
|
+
|
|
|
+ $order=array("\r\n","\n","\r");
|
|
|
+ $replace='<br/>';
|
|
|
+ $explanation=str_replace($order,$replace,$explanation);
|
|
|
$receipt->explanation = $explanation;
|
|
|
|
|
|
$receipt->remittanceName = $remittanceName;
|
|
@@ -6475,6 +6526,10 @@ class ReceiptController extends DooController {
|
|
|
$receipt->verify = $verify;
|
|
|
$receipt->executeCopy = $executeDetail ['staff'];
|
|
|
|
|
|
+
|
|
|
+ $order=array("\r\n","\n","\r");
|
|
|
+ $replace='<br/>';
|
|
|
+ $explanation=str_replace($order,$replace,$explanation);
|
|
|
$receipt->explanation = $explanation;
|
|
|
|
|
|
$receipt->remittanceName = $remittanceName;
|
|
@@ -6651,7 +6706,7 @@ class ReceiptController extends DooController {
|
|
|
'asArray' => true
|
|
|
) );
|
|
|
|
|
|
- $receiptLog->rolename = $roleInfo ['name'];
|
|
|
+ //$receiptLog->rolename = $roleInfo ['name'];
|
|
|
}
|
|
|
|
|
|
$receiptLog->username = $this->staff [0] ['username'];
|
|
@@ -9909,6 +9964,654 @@ class ReceiptController extends DooController {
|
|
|
|
|
|
$this->render ( "/admin/saeaStaffCollect", $data );
|
|
|
}
|
|
|
+ /**
|
|
|
+ * 日常收支
|
|
|
+ */
|
|
|
+ function payments() {
|
|
|
+ Doo::loadModel ( "accountBook" );
|
|
|
+ $accountBook = new accountBook ();
|
|
|
+
|
|
|
+ Doo::loadModel ( "accountBookStatistics" );
|
|
|
+ $accountBookStatistics = new accountBookStatistics ();
|
|
|
+
|
|
|
+ $statisticsList = $accountBookStatistics->getStatisticsByMonth ();
|
|
|
+
|
|
|
+ $list = $accountBook->getAccountBookByLimit ( 10 );
|
|
|
+
|
|
|
+ $data ['statisticsList'] = $statisticsList;
|
|
|
+ $data ['list'] = $list;
|
|
|
+ $data ['memu'] = "receipt";
|
|
|
+ $data ['staff'] = $this->staff;
|
|
|
+ $data ['receiptMemu'] = 'payments';
|
|
|
+ $data ['verifyId'] = $this->verifyId;
|
|
|
+ $data ['executeId'] = $this->executeId;
|
|
|
+ $this->render ( "/expenses/payments", $data );
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * 添加收入
|
|
|
+ * @return string
|
|
|
+ */
|
|
|
+ function paymentsIncomeDo() {
|
|
|
+ $accountType = $this->get_args ( 'accountType' ) ? $this->get_args ( 'accountType' ) : "";
|
|
|
+ $accountMsg = $this->get_args ( 'accountMsg' . $accountType ) ? $this->get_args ( 'accountMsg' . $accountType ) : "";
|
|
|
+ $receivedPrice = is_numeric ( $this->get_args ( 'receivedPrice' ) ) ? $this->get_args ( 'receivedPrice' ) : 0;
|
|
|
+
|
|
|
+ $receivedMsg = $this->get_args ( 'receivedMsg' ) ? $this->get_args ( 'receivedMsg' ) : '';
|
|
|
+ $receivedBank = $this->get_args ( 'receivedBank' ) ? $this->get_args ( 'receivedBank' ) : '';
|
|
|
+ $receivedDate = $this->get_args ( 'receivedDate' ) ? $this->get_args ( 'receivedDate' ) : '';
|
|
|
+
|
|
|
+ $remarks = $this->get_args ( 'remarks' ) ? $this->get_args ( 'remarks' ) : '';
|
|
|
+
|
|
|
+ if (! empty ( $accountType ) && ! empty ( $receivedPrice ) && ! empty ( $receivedMsg ) && ! empty ( $receivedBank ) && ! empty ( $receivedDate )) {
|
|
|
+
|
|
|
+ Doo::loadClass ( 'XDeode' );
|
|
|
+ $XDeode = new XDeode ( 5 );
|
|
|
+
|
|
|
+ Doo::loadModel ( "accountBook" );
|
|
|
+ $accountBook = new accountBook ();
|
|
|
+
|
|
|
+ $accountBook->accountType = $accountType;
|
|
|
+ $accountBook->accountMsg = $accountMsg;
|
|
|
+ $accountBook->receivedPrice = $receivedPrice;
|
|
|
+ $accountBook->receivedMsg = $receivedMsg;
|
|
|
+ $accountBook->receivedBank = $receivedBank;
|
|
|
+ $accountBook->receivedDate = $receivedDate;
|
|
|
+ $accountBook->remarks = $remarks;
|
|
|
+ $accountBook->expensesType = 1;
|
|
|
+
|
|
|
+ $accountBook->bookSerial = "#IN" . date ( "Ymd" ) . mt_rand ( 1000, 9999 );
|
|
|
+ $accountBook->inputDate = date ( "Y-m-d H:i:s" );
|
|
|
+ $id = $accountBook->insert ();
|
|
|
+
|
|
|
+ //
|
|
|
+ $abDetail = $accountBook->getAccountBookByAid ( $id );
|
|
|
+ Doo::loadModel ( "accountBookStatistics" );
|
|
|
+ $accountBookStatistics = new accountBookStatistics ();
|
|
|
+ $item = array (
|
|
|
+ 'date' => date ( "Y-m-d" ),
|
|
|
+ 'accountType' => $abDetail ['accountType'],
|
|
|
+ 'accountMsg' => $abDetail ['accountMsg'],
|
|
|
+ 'aid' => $abDetail ['aid']
|
|
|
+ );
|
|
|
+
|
|
|
+ if ($abDetail ['expensesType'] == 1) {
|
|
|
+ if ($abDetail ['accountType'] == 7) {
|
|
|
+ $item += array (
|
|
|
+ 'financingPrice' => - $receivedPrice,
|
|
|
+ 'expensesType' => 3
|
|
|
+ );
|
|
|
+ } else if ($abDetail ['accountType'] == 8) {
|
|
|
+ $item += array (
|
|
|
+ 'inComePrice' => - $abDetail ['receivedPrice'],
|
|
|
+ 'expensesType' => $abDetail ['expensesType']
|
|
|
+ );
|
|
|
+ } else {
|
|
|
+ $item += array (
|
|
|
+ 'inComePrice' => $abDetail ['receivedPrice'],
|
|
|
+ 'expensesType' => $abDetail ['expensesType']
|
|
|
+ );
|
|
|
+ }
|
|
|
+ }
|
|
|
+ $accountBookStatistics->setAccountBookStatistics ( $item );
|
|
|
+ }
|
|
|
+ return '/payments';
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * 添加支出
|
|
|
+ */
|
|
|
+ function paymentsExpenditureDo() {
|
|
|
+ $expenditureType = $this->get_args ( 'expenditureType' ) ? $this->get_args ( 'expenditureType' ) : "";
|
|
|
+ $expenditureMsg = $this->get_args ( 'expenditureMsg' . $expenditureType ) ? $this->get_args ( 'expenditureMsg' . $expenditureType ) : "";
|
|
|
+
|
|
|
+ $expenditurePrice = is_numeric ( $this->get_args ( 'expenditurePrice' ) ) ? $this->get_args ( 'expenditurePrice' ) : 0;
|
|
|
+ $expenditureBank = $this->get_args ( 'expenditureBank' ) ? $this->get_args ( 'expenditureBank' ) : '';
|
|
|
+
|
|
|
+ $remarks = $this->get_args ( 'remarks' ) ? $this->get_args ( 'remarks' ) : '';
|
|
|
+ $expenditureDate = $this->get_args ( 'expenditureDate' ) ? $this->get_args ( 'expenditureDate' ) : '';
|
|
|
+
|
|
|
+ if (! empty ( $expenditureType ) && ! empty ( $expenditurePrice ) && ! empty ( $expenditureBank ) && ! empty ( $expenditureDate )) {
|
|
|
+
|
|
|
+ Doo::loadModel ( "accountBook" );
|
|
|
+ $accountBook = new accountBook ();
|
|
|
+
|
|
|
+ $accountBook->expenditureType = $expenditureType;
|
|
|
+ $accountBook->expenditureMsg = $expenditureMsg;
|
|
|
+ $accountBook->expenditurePrice = $expenditurePrice;
|
|
|
+ $accountBook->expenditureBank = $expenditureBank;
|
|
|
+
|
|
|
+ $accountBook->expenditureDate = $expenditureDate;
|
|
|
+
|
|
|
+ $accountBook->remarks = $remarks;
|
|
|
+
|
|
|
+ $accountBook->expensesType = 2;
|
|
|
+
|
|
|
+ $accountBook->bookSerial = "#IN" . date ( "Ymd" ) . mt_rand ( 1000, 9999 );
|
|
|
+ $accountBook->inputDate = date ( "Y-m-d H:i:s" );
|
|
|
+
|
|
|
+ $id = $accountBook->insert ();
|
|
|
+
|
|
|
+ //
|
|
|
+ $abDetail = $accountBook->getAccountBookByAid ( $id );
|
|
|
+ Doo::loadModel ( "accountBookStatistics" );
|
|
|
+ $accountBookStatistics = new accountBookStatistics ();
|
|
|
+
|
|
|
+ $item = array (
|
|
|
+ 'date' => date ( "Y-m-d" ),
|
|
|
+ 'expenditureType' => $abDetail ['expenditureType'],
|
|
|
+ 'expenditureMsg' => $abDetail ['expenditureMsg'],
|
|
|
+ 'aid' => $abDetail ['aid']
|
|
|
+ );
|
|
|
+
|
|
|
+ if ($abDetail ['expensesType'] == 2) {
|
|
|
+
|
|
|
+ if ($abDetail ['expenditureType'] == 4) {
|
|
|
+ $item += array (
|
|
|
+ 'financingPrice' => $expenditurePrice,
|
|
|
+ 'expensesType' => 3
|
|
|
+ );
|
|
|
+ } elseif ($abDetail ['expenditureType'] == 5) {
|
|
|
+ $item += array (
|
|
|
+ 'payPrice' => $abDetail ['expenditurePrice'],
|
|
|
+ 'expensesType' => $abDetail ['expensesType']
|
|
|
+ );
|
|
|
+ } else {
|
|
|
+ $item += array (
|
|
|
+ 'payPrice' => $abDetail ['expenditurePrice'],
|
|
|
+ 'expensesType' => $abDetail ['expensesType']
|
|
|
+ );
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ $accountBookStatistics->setAccountBookStatistics ( $item );
|
|
|
+ }
|
|
|
+ return '/payments';
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 所有收支
|
|
|
+ */
|
|
|
+ function paymentsAchieve() {
|
|
|
+ $page_size = 12;
|
|
|
+ $page = isset ( $this->params ['page'] ) && is_numeric ( $this->params ['page'] ) ? $this->params ['page'] : 1;
|
|
|
+ $expensesType = isset ( $this->params ['expensesType'] ) ? $this->params ['expensesType'] : 'ALL';
|
|
|
+
|
|
|
+ $date = $this->get_args ( 'inputDate' ) ? $this->get_args ( 'inputDate' ) : "";
|
|
|
+ $price = $this->get_args ( 'price' ) ? $this->get_args ( 'price' ) : "";
|
|
|
+
|
|
|
+ $accountType = $this->get_args ( 'accountType' ) ? $this->get_args ( 'accountType' ) : "1";
|
|
|
+ $accountMsg = $this->get_args ( 'accountMsg' . $accountType ) ? $this->get_args ( 'accountMsg' . $accountType ) : "";
|
|
|
+
|
|
|
+ $expenditureType = $this->get_args ( 'expenditureType' ) ? $this->get_args ( 'expenditureType' ) : "1";
|
|
|
+ $submitType = $this->get_args ( 'submitType' ) ? $this->get_args ( 'submitType' ) : "";
|
|
|
+
|
|
|
+ Doo::loadModel ( "accountBookStatistics" );
|
|
|
+ $accountBookStatistics = new accountBookStatistics ();
|
|
|
+
|
|
|
+ $statisticsList = $accountBookStatistics->getStatisticsByMonth ();
|
|
|
+
|
|
|
+ $data ['statisticsList'] = $statisticsList;
|
|
|
+
|
|
|
+ Doo::loadModel ( "accountBook" );
|
|
|
+ $accountBook = new accountBook ();
|
|
|
+
|
|
|
+ $con = '';
|
|
|
+ if ($expensesType == 'INCOME')
|
|
|
+ $con = ' and expensesType=1 ';
|
|
|
+ elseif ($expensesType == 'PAY')
|
|
|
+ $con = ' and expensesType=2 ';
|
|
|
+
|
|
|
+ $dateArr = explode ( ':', $date );
|
|
|
+ $D1 = $dateString = '';
|
|
|
+ $D2 = '';
|
|
|
+ if (! empty ( $date )) {
|
|
|
+ $D1 = $dateArr [0];
|
|
|
+ if (isset ( $dateArr [1] ))
|
|
|
+ $D2 = $dateArr [1];
|
|
|
+ else
|
|
|
+ $D2 = '';
|
|
|
+ $dateString = $D1 . " : " . $D2;
|
|
|
+ }
|
|
|
+ if (! empty ( $D1 ) && ! empty ( $D2 ))
|
|
|
+ $con .= ' and inputDate BETWEEN "' . $D1 . '" AND "' . $D2 . '" ';
|
|
|
+ elseif (! empty ( $D1 ) && empty ( $D2 ))
|
|
|
+ $con .= ' and inputDate like "%' . $D1 . '%" ';
|
|
|
+
|
|
|
+ if (! empty ( $price ))
|
|
|
+ $con .= ' and (receivedPrice=' . $price . ' or expenditurePrice=' . $price . ')';
|
|
|
+
|
|
|
+ if ($submitType == 1) {
|
|
|
+ $expenditureType = '';
|
|
|
+ $con .= ' and accountType=' . $accountType;
|
|
|
+ if (! empty ( $accountMsg ))
|
|
|
+ $con .= ' and (accountType=' . $accountType . ' and accountMsg like "%' . $accountMsg . '%")';
|
|
|
+ } elseif ($submitType == 2) {
|
|
|
+ $accountType = $accountMsg = '';
|
|
|
+ $con .= ' and expenditureType=' . $expenditureType;
|
|
|
+ } else {
|
|
|
+ $accountType = $accountMsg = $expenditureType = '';
|
|
|
+ }
|
|
|
+
|
|
|
+ $sql = "" . $con;
|
|
|
+ $action = "paymentsAchieve";
|
|
|
+ $get = ''; // "?date=" . urlencode ( $date ) . "&MebSea=" . urlencode ( $MebSea );
|
|
|
+
|
|
|
+ $pageinfo = $this->get_page ( "CLD_accountBook", $sql, $page, $page_size, $action, $get, "" );
|
|
|
+ $limit = $pageinfo ['lower'] . ',' . $page_size;
|
|
|
+ $list = $accountBook->getAccountBookBySql ( $limit, $sql, 'desc' );
|
|
|
+
|
|
|
+ $data ['expenditureType'] = $expenditureType;
|
|
|
+ $data ['accountMsg'] = $accountMsg;
|
|
|
+ $data ['accountType'] = $accountType;
|
|
|
+ $data ['inputDate'] = $date;
|
|
|
+ $data ['price'] = $price;
|
|
|
+ $data ['expensesType'] = $expensesType;
|
|
|
+ $data ['page'] = $pageinfo;
|
|
|
+ $data ['list'] = $list;
|
|
|
+ $data ['memu'] = "receipt";
|
|
|
+ $data ['staff'] = $this->staff;
|
|
|
+ $data ['receiptMemu'] = 'payments';
|
|
|
+ $data ['verifyId'] = $this->verifyId;
|
|
|
+ $data ['executeId'] = $this->executeId;
|
|
|
+ $this->render ( "/expenses/paymentsAchieve", $data );
|
|
|
+ }
|
|
|
+ function paymentsIncomeUpdateDo() {
|
|
|
+ $aidKey = $this->get_args ( 'aidKey' ) ? $this->get_args ( 'aidKey' ) : "";
|
|
|
+
|
|
|
+ $accountType = $this->get_args ( 'accountType' ) ? $this->get_args ( 'accountType' ) : "";
|
|
|
+ $accountMsg = $this->get_args ( 'accountMsg' . $accountType ) ? $this->get_args ( 'accountMsg' . $accountType ) : "";
|
|
|
+ $receivedPrice = is_numeric ( $this->get_args ( 'receivedPrice' ) ) ? $this->get_args ( 'receivedPrice' ) : 0;
|
|
|
+
|
|
|
+ $receivedMsg = $this->get_args ( 'receivedMsg' ) ? $this->get_args ( 'receivedMsg' ) : '';
|
|
|
+ $receivedBank = $this->get_args ( 'receivedBank' ) ? $this->get_args ( 'receivedBank' ) : '';
|
|
|
+ $receivedDate = $this->get_args ( 'receivedDate' ) ? $this->get_args ( 'receivedDate' ) : '';
|
|
|
+
|
|
|
+ $remarks = $this->get_args ( 'remarks' ) ? $this->get_args ( 'remarks' ) : '';
|
|
|
+
|
|
|
+ if (! empty ( $aidKey ) && ! empty ( $accountType ) && ! empty ( $receivedPrice ) && ! empty ( $receivedMsg ) && ! empty ( $receivedBank ) && ! empty ( $receivedDate )) {
|
|
|
+
|
|
|
+ Doo::loadClass ( 'XDeode' );
|
|
|
+ $XDeode = new XDeode ( 5 );
|
|
|
+
|
|
|
+ $aid = $XDeode->decode ( $aidKey );
|
|
|
+
|
|
|
+ Doo::loadModel ( "accountBook" );
|
|
|
+ $accountBook = new accountBook ();
|
|
|
+
|
|
|
+ //
|
|
|
+ $abDetail = $accountBook->getAccountBookByAid ( $aid );
|
|
|
+
|
|
|
+ $price = $receivedPrice - $abDetail [inComePrice];
|
|
|
+ Doo::loadModel ( "accountBookStatistics" );
|
|
|
+ $accountBookStatistics = new accountBookStatistics ();
|
|
|
+
|
|
|
+ if ($abDetail ['accountType'] == 7) {
|
|
|
+ $item += array (
|
|
|
+ 'date' => date ( "Y-m-d" ),
|
|
|
+ 'financingPrice' => - $price,
|
|
|
+ 'expensesType' => 3,
|
|
|
+ 'aid' => $abDetail ['aid']
|
|
|
+ );
|
|
|
+ } elseif ($abDetail ['accountType'] == 8) {
|
|
|
+ $item += array (
|
|
|
+ 'date' => date ( "Y-m-d" ),
|
|
|
+ 'expensesType' => $abDetail ['expensesType'],
|
|
|
+ 'inComePrice' => - $price,
|
|
|
+ 'aid' => $abDetail ['aid']
|
|
|
+ );
|
|
|
+ } else {
|
|
|
+
|
|
|
+ $item = array (
|
|
|
+ 'date' => date ( "Y-m-d" ),
|
|
|
+ 'expensesType' => $abDetail ['expensesType'],
|
|
|
+ 'inComePrice' => $price,
|
|
|
+ 'aid' => $abDetail ['aid']
|
|
|
+ );
|
|
|
+ }
|
|
|
+ $accountBookStatistics->setAccountBookStatistics ( $item );
|
|
|
+
|
|
|
+ $accountBook->accountType = $accountType;
|
|
|
+ $accountBook->accountMsg = $accountMsg;
|
|
|
+ $accountBook->receivedPrice = $receivedPrice;
|
|
|
+ $accountBook->receivedMsg = $receivedMsg;
|
|
|
+ $accountBook->receivedBank = $receivedBank;
|
|
|
+ $accountBook->receivedDate = $receivedDate;
|
|
|
+ $accountBook->remarks = $remarks;
|
|
|
+
|
|
|
+ $accountBook->aid = $aid;
|
|
|
+
|
|
|
+ $accountBook->update ();
|
|
|
+ }
|
|
|
+ return '/paymentsAchieve';
|
|
|
+ }
|
|
|
+ function paymentsExpenditureEdiDo() {
|
|
|
+ $aidKey = $this->get_args ( 'aidKey' ) ? $this->get_args ( 'aidKey' ) : "";
|
|
|
+ $expenditureType = $this->get_args ( 'expenditureType' ) ? $this->get_args ( 'expenditureType' ) : "";
|
|
|
+ $expenditureMsg = $this->get_args ( 'expenditureMsg' . $expenditureType ) ? $this->get_args ( 'expenditureMsg' . $expenditureType ) : "";
|
|
|
+
|
|
|
+ $expenditurePrice = is_numeric ( $this->get_args ( 'expenditurePrice' ) ) ? $this->get_args ( 'expenditurePrice' ) : 0;
|
|
|
+ $expenditureBank = $this->get_args ( 'expenditureBank' ) ? $this->get_args ( 'expenditureBank' ) : '';
|
|
|
+
|
|
|
+ $remarks = $this->get_args ( 'remarks' ) ? $this->get_args ( 'remarks' ) : '';
|
|
|
+ $expenditureDate = $this->get_args ( 'expenditureDate' ) ? $this->get_args ( 'expenditureDate' ) : '';
|
|
|
+
|
|
|
+ if (! empty ( $aidKey ) && ! empty ( $expenditureType ) && ! empty ( $expenditurePrice ) && ! empty ( $expenditureBank ) && ! empty ( $expenditureDate )) {
|
|
|
+
|
|
|
+ Doo::loadClass ( 'XDeode' );
|
|
|
+ $XDeode = new XDeode ( 5 );
|
|
|
+
|
|
|
+ $aid = $XDeode->decode ( $aidKey );
|
|
|
+
|
|
|
+ Doo::loadModel ( "accountBook" );
|
|
|
+ $accountBook = new accountBook ();
|
|
|
+
|
|
|
+ // 汇总信息
|
|
|
+ $abDetail = $accountBook->getAccountBookByAid ( $aid );
|
|
|
+
|
|
|
+ $price = $expenditurePrice - $abDetail [expenditurePrice];
|
|
|
+ Doo::loadModel ( "accountBookStatistics" );
|
|
|
+ $accountBookStatistics = new accountBookStatistics ();
|
|
|
+
|
|
|
+ if ($abDetail ['expenditureType'] == 4) {
|
|
|
+ $item += array (
|
|
|
+ 'date' => date ( "Y-m-d" ),
|
|
|
+ 'financingPrice' => $price,
|
|
|
+ 'expensesType' => 3,
|
|
|
+ 'aid' => $abDetail ['aid']
|
|
|
+ );
|
|
|
+ } elseif ($abDetail ['expenditureType'] == 5) {
|
|
|
+ $item += array (
|
|
|
+ 'date' => date ( "Y-m-d" ),
|
|
|
+ 'expensesType' => $abDetail ['expensesType'],
|
|
|
+ 'payPrice' => $price,
|
|
|
+ 'aid' => $abDetail ['aid']
|
|
|
+ );
|
|
|
+ } else {
|
|
|
+
|
|
|
+ $item = array (
|
|
|
+ 'date' => date ( "Y-m-d" ),
|
|
|
+ 'expensesType' => $abDetail ['expensesType'],
|
|
|
+ 'payPrice' => $price,
|
|
|
+ 'aid' => $abDetail ['aid']
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
+ $accountBookStatistics->setAccountBookStatistics ( $item );
|
|
|
+
|
|
|
+ //
|
|
|
+ $accountBook->expenditureType = $expenditureType;
|
|
|
+ $accountBook->expenditureMsg = $expenditureMsg;
|
|
|
+ $accountBook->expenditurePrice = $expenditurePrice;
|
|
|
+ $accountBook->expenditureBank = $expenditureBank;
|
|
|
+
|
|
|
+ $accountBook->remarks = $remarks;
|
|
|
+ $accountBook->expenditureDate = $expenditureDate;
|
|
|
+
|
|
|
+ $accountBook->aid = $aid;
|
|
|
+
|
|
|
+ $id = $accountBook->update ();
|
|
|
+ }
|
|
|
+ return '/paymentsAchieve';
|
|
|
+ }
|
|
|
+ function paymentsDelDo() {
|
|
|
+ $aidKey = $this->get_args ( 'aidKey' ) ? $this->get_args ( 'aidKey' ) : "";
|
|
|
+ if (! empty ( $aidKey )) {
|
|
|
+
|
|
|
+ Doo::loadClass ( 'XDeode' );
|
|
|
+ $XDeode = new XDeode ( 5 );
|
|
|
+
|
|
|
+ $aid = $XDeode->decode ( $aidKey );
|
|
|
+
|
|
|
+ Doo::loadModel ( "accountBook" );
|
|
|
+ $accountBook = new accountBook ();
|
|
|
+
|
|
|
+ $abDetail = $accountBook->getAccountBookByAid ( $aid );
|
|
|
+
|
|
|
+ // 删除收支
|
|
|
+ Doo::loadModel ( "accountBookStatistics" );
|
|
|
+ $accountBookStatistics = new accountBookStatistics ();
|
|
|
+ $item = array (
|
|
|
+ 'date' => date ( "Y-m-d" ),
|
|
|
+ 'aid' => $abDetail ['aid']
|
|
|
+ );
|
|
|
+
|
|
|
+ if ($abDetail ['expensesType'] == 1) {
|
|
|
+
|
|
|
+ if ($abDetail ['accountType'] != 7) {
|
|
|
+ $item += array (
|
|
|
+ 'expensesType' => $abDetail ['expensesType'],
|
|
|
+ 'inComePrice' => - $abDetail ['receivedPrice']
|
|
|
+ );
|
|
|
+ } else {
|
|
|
+ $item += array (
|
|
|
+ 'financingPrice' => $abDetail ['receivedPrice'],
|
|
|
+ 'expensesType' => 3
|
|
|
+ );
|
|
|
+ }
|
|
|
+ } elseif ($abDetail ['expensesType'] == 2) {
|
|
|
+
|
|
|
+ if ($abDetail ['accountType'] != 7) {
|
|
|
+ $item += array (
|
|
|
+ 'expensesType' => $abDetail ['expensesType'],
|
|
|
+ 'payPrice' => - $abDetail ['expenditurePrice']
|
|
|
+ );
|
|
|
+ } else {
|
|
|
+ $item += array (
|
|
|
+ 'financingPrice' => - $abDetail ['expenditurePrice'],
|
|
|
+ 'expensesType' => 3
|
|
|
+ );
|
|
|
+ }
|
|
|
+ }
|
|
|
+ $accountBookStatistics->setAccountBookStatistics ( $item );
|
|
|
+
|
|
|
+ $accountBook->delete ( array (
|
|
|
+ 'where' => 'aid=' . $aid,
|
|
|
+ 'limit' => 1
|
|
|
+ ) );
|
|
|
+ }
|
|
|
+ return '/paymentsAchieve';
|
|
|
+ }
|
|
|
+ function paymentsCollect() {
|
|
|
+ $year = $this->get_args ( 'year' ) ? $this->get_args ( 'year' ) : date ( "Y" );
|
|
|
+ $moth = $this->get_args ( 'moth' ) ? $this->get_args ( 'moth' ) : "";
|
|
|
+
|
|
|
+ Doo::loadModel ( "accountBookStatistics" );
|
|
|
+ $accountBookStatistics = new accountBookStatistics ();
|
|
|
+
|
|
|
+ Doo::loadClass ( 'receipt.func' );
|
|
|
+ $statisticsIncome = $accountBookStatistics->getStatisticsByCollect ( $year );
|
|
|
+ $html = _getPaymentsCollectByYearHtml ( $statisticsIncome );
|
|
|
+ $data ['html'] = $html ['html'];
|
|
|
+ $data ['inSum'] = $html ['sum'];
|
|
|
+
|
|
|
+ $statisticsPay = $accountBookStatistics->getStatisticsByCollect ( $year, 2 );
|
|
|
+ $html = _getPaymentsCollectPayByYearHtml ( $statisticsPay );
|
|
|
+ $data ['payHtml'] = $html ['html'];
|
|
|
+ $data ['paySum'] = $html ['sum'];
|
|
|
+
|
|
|
+ // 余额
|
|
|
+ $inComePay = $accountBookStatistics->getStatisticsByBalance ( $year, 1 );
|
|
|
+ $pay = $accountBookStatistics->getStatisticsByBalance ( $year, 2 );
|
|
|
+
|
|
|
+ $inComeHtml = '<tr><th colspan="2">收入</th>';
|
|
|
+ $payHtml = '<tr class="colRed"><th colspan="2">支出</th>';
|
|
|
+ $BalanceHtml = '<tr><th colspan="2">余额</th>';
|
|
|
+ $inSum = $paySum = $balanceSum = 0;
|
|
|
+ $balanceC = 0;
|
|
|
+
|
|
|
+ for($i = 1; $i <= 12; $i ++) {
|
|
|
+ $inComeA = $payB = 0;
|
|
|
+ $falg = true;
|
|
|
+ foreach ( $inComePay as $key => $value ) {
|
|
|
+ if ($value ['month'] == $i) {
|
|
|
+ $falg = false;
|
|
|
+ $inComeHtml .= '<td class="taR">' . $value ['inComePrice'] . '</td>';
|
|
|
+ $inSum += $value ['inComePrice'];
|
|
|
+ $inComeA = $value ['inComePrice'];
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if ($falg)
|
|
|
+ $inComeHtml .= '<td class="taR">-</td>';
|
|
|
+
|
|
|
+ $payFalg = true;
|
|
|
+ foreach ( $pay as $key => $value ) {
|
|
|
+ if ($value ['month'] == $i) {
|
|
|
+ $payFalg = false;
|
|
|
+ $payHtml .= '<td class="taR">' . $value ['payPrice'] . '</td>';
|
|
|
+ $paySum += $value ['payPrice'];
|
|
|
+ $payB = $value ['payPrice'];
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if ($payFalg)
|
|
|
+ $payHtml .= '<td class="taR">-</td>';
|
|
|
+
|
|
|
+ $balanceC = $balanceC + $inComeA - $payB;
|
|
|
+ $balanceSum += $balanceC;
|
|
|
+ if (empty ( $balanceC ))
|
|
|
+ $BalanceHtml .= '<td class="taR">-</td>';
|
|
|
+ else
|
|
|
+ $BalanceHtml .= '<td class="taR">' . $balanceC . '</td>';
|
|
|
+ }
|
|
|
+ $inComeHtml .= '<td class="taR colGreen">¥' . $inSum . '</td></tr>';
|
|
|
+ $data ['inComeHtml'] = $inComeHtml;
|
|
|
+ $payHtml .= '<td class="taR ">¥' . $paySum . '</td></tr>';
|
|
|
+ $data ['payBalanceHtml'] = $payHtml;
|
|
|
+
|
|
|
+ $BalanceHtml .= '<td class="taR ">¥' . $balanceC . '</td></tr>';
|
|
|
+ $data ['BalanceHtml'] = $BalanceHtml;
|
|
|
+
|
|
|
+ $mothHtml = "";
|
|
|
+ for($i = 1; $i <= 12; $i ++) {
|
|
|
+ if ($moth == $i)
|
|
|
+ $mothHtml .= '<option selected value="' . $i . '">' . $i . '月</option>';
|
|
|
+ else
|
|
|
+ $mothHtml .= '<option value="' . $i . '">' . $i . '月</option>';
|
|
|
+ }
|
|
|
+
|
|
|
+ $data ['mothHtml'] = $mothHtml;
|
|
|
+
|
|
|
+ $data ['year'] = $year;
|
|
|
+
|
|
|
+ $data ['memu'] = "receipt";
|
|
|
+ $data ['staff'] = $this->staff;
|
|
|
+ $data ['receiptMemu'] = 'paymentsCollect';
|
|
|
+ $data ['verifyId'] = $this->verifyId;
|
|
|
+ $data ['executeId'] = $this->executeId;
|
|
|
+ $this->render ( "/expenses/paymentsCollect", $data );
|
|
|
+ }
|
|
|
+ function paymentsCollectDay() {
|
|
|
+ $year = $this->get_args ( 'year' ) ? $this->get_args ( 'year' ) : date ( "Y" );
|
|
|
+ $moth = $this->get_args ( 'month' ) ? $this->get_args ( 'month' ) : date ( "m" );
|
|
|
+
|
|
|
+ Doo::loadModel ( "accountBookStatistics" );
|
|
|
+ $accountBookStatistics = new accountBookStatistics ();
|
|
|
+
|
|
|
+ $i = 2;
|
|
|
+ $y = 2013;
|
|
|
+ $day = date ( "t", strtotime ( "$year-$moth" ) );
|
|
|
+
|
|
|
+ Doo::loadClass ( 'receipt.func' );
|
|
|
+ $statisticsIncome = $accountBookStatistics->getStatisticsByCollectDay ( $year, 1, $moth );
|
|
|
+
|
|
|
+ $html = _getPaymentsCollectByDayHtml ( $statisticsIncome, $day );
|
|
|
+ $data ['html'] = $html ['html'];
|
|
|
+ $data ['inSum'] = $html ['sum'];
|
|
|
+
|
|
|
+ $statisticsPay = $accountBookStatistics->getStatisticsByCollectDay ( $year, 2, $moth );
|
|
|
+ $html = _getPaymentsCollectPayByDayHtml ( $statisticsPay, $day );
|
|
|
+ $data ['payHtml'] = $html ['html'];
|
|
|
+ $data ['paySum'] = $html ['sum'];
|
|
|
+
|
|
|
+ $mothHtml = "";
|
|
|
+ for($i = 1; $i <= 12; $i ++) {
|
|
|
+ if ($moth == $i)
|
|
|
+ $mothHtml .= '<option selected value="' . $i . '">' . $i . '月</option>';
|
|
|
+ else
|
|
|
+ $mothHtml .= '<option value="' . $i . '">' . $i . '月</option>';
|
|
|
+ }
|
|
|
+ $data ['mothHtml'] = $mothHtml;
|
|
|
+ $data ['year'] = $year;
|
|
|
+
|
|
|
+
|
|
|
+ // 余额
|
|
|
+ $inComePay = $accountBookStatistics->getStatisticsByBalance ( $year, 1,$moth );
|
|
|
+ $pay = $accountBookStatistics->getStatisticsByBalance ( $year, 2,$moth );
|
|
|
+
|
|
|
+ $inComeHtml = '<tr><th colspan="2">收入</th>';
|
|
|
+ $payHtml = '<tr class="colRed"><th colspan="2">支出</th>';
|
|
|
+ $BalanceHtml = '<tr><th colspan="2">余额</th>';
|
|
|
+ $dayHtml='<tr><th class="taC" colspan="2">余额</th>';
|
|
|
+ $inSum = $paySum = $balanceSum = 0;
|
|
|
+ $balanceC = 0;
|
|
|
+
|
|
|
+ for($i = 1; $i <= $day; $i ++) {
|
|
|
+ $dayHtml.='<td class="taC">' . $i . '日</td>';
|
|
|
+ $inComeA = $payB = 0;
|
|
|
+ $falg = true;
|
|
|
+ foreach ( $inComePay as $key => $value ) {
|
|
|
+ if ($value ['day'] == $i) {
|
|
|
+ $falg = false;
|
|
|
+ $inComeHtml .= '<td class="taR">' . $value ['inComePrice'] . '</td>';
|
|
|
+ $inSum += $value ['inComePrice'];
|
|
|
+ $inComeA = $value ['inComePrice'];
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if ($falg)
|
|
|
+ $inComeHtml .= '<td class="taR">-</td>';
|
|
|
+
|
|
|
+ $payFalg = true;
|
|
|
+ foreach ( $pay as $key => $value ) {
|
|
|
+ if ($value ['day'] == $i) {
|
|
|
+ $payFalg = false;
|
|
|
+ $payHtml .= '<td class="taR">' . $value ['payPrice'] . '</td>';
|
|
|
+ $paySum += $value ['payPrice'];
|
|
|
+ $payB = $value ['payPrice'];
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if ($payFalg)
|
|
|
+ $payHtml .= '<td class="taR">-</td>';
|
|
|
+
|
|
|
+ $balanceC = $balanceC + $inComeA - $payB;
|
|
|
+ $balanceSum += $balanceC;
|
|
|
+ if (empty ( $balanceC ))
|
|
|
+ $BalanceHtml .= '<td class="taR">-</td>';
|
|
|
+ else
|
|
|
+ $BalanceHtml .= '<td class="taR">' . $balanceC . '</td>';
|
|
|
+ }
|
|
|
+ $inComeHtml .= '<td class="taR colGreen">¥' . $inSum . '</td></tr>';
|
|
|
+ $data ['inComeHtml'] = $inComeHtml;
|
|
|
+ $payHtml .= '<td class="taR ">¥' . $paySum . '</td></tr>';
|
|
|
+ $data ['payBalanceHtml'] = $payHtml;
|
|
|
+
|
|
|
+ $BalanceHtml .= '<td class="taR ">¥' . $balanceC . '</td></tr>';
|
|
|
+ $data ['BalanceHtml'] = $BalanceHtml;
|
|
|
+ $dayHtml.='<td class="taR ">总计</td></tr>';
|
|
|
+ $data['dayHtml']=$dayHtml;
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ $data ['memu'] = "receipt";
|
|
|
+ $data ['staff'] = $this->staff;
|
|
|
+ $data ['receiptMemu'] = 'paymentsCollect';
|
|
|
+ $data ['verifyId'] = $this->verifyId;
|
|
|
+ $data ['executeId'] = $this->executeId;
|
|
|
+ $this->render ( "/expenses/paymentsCollectDay", $data );
|
|
|
+ }
|
|
|
+ function ajaxGetPaymentsByAid() {
|
|
|
+ $serial = $this->get_args ( 'serial' ) ? $this->get_args ( 'serial' ) : "";
|
|
|
+ Doo::loadModel ( "accountBook" );
|
|
|
+ $accountBook = new accountBook ();
|
|
|
+
|
|
|
+ $detail = $accountBook->getAccountBookByAid ( $serial );
|
|
|
+
|
|
|
+ echo json_encode ( array (
|
|
|
+ 'status' => 1,
|
|
|
+ 'detail' => $detail
|
|
|
+ ) );
|
|
|
+ }
|
|
|
function lyt() {
|
|
|
Doo::loadModel ( "receiptDetail" );
|
|
|
$receiptDetail = new receiptDetail ();
|
|
@@ -10003,6 +10706,7 @@ class ReceiptController extends DooController {
|
|
|
$p7 = 0;
|
|
|
$p8 = 0;
|
|
|
$p9 = 0;
|
|
|
+ $p10 = 0;
|
|
|
$t1 = 0;
|
|
|
$t2 = 0;
|
|
|
$t3 = 0;
|
|
@@ -10167,7 +10871,9 @@ class ReceiptController extends DooController {
|
|
|
'餐饮费',
|
|
|
'办公费',
|
|
|
'公关费',
|
|
|
- '其他'
|
|
|
+ '其他',
|
|
|
+ '电话费',
|
|
|
+ '邮寄费'
|
|
|
);
|
|
|
foreach ( $item as $va ) {
|
|
|
$falg = true;
|
|
@@ -10193,6 +10899,11 @@ class ReceiptController extends DooController {
|
|
|
if ($va == '其他')
|
|
|
$p8 += $v ['price'];
|
|
|
|
|
|
+ if ($va == '电话费')
|
|
|
+ $p9 += $v ['price'];
|
|
|
+ if ($va == '邮寄费')
|
|
|
+ $p10 += $v ['price'];
|
|
|
+
|
|
|
$psum += $v ['price'];
|
|
|
$html .= '<td class="taR">' . $v ['price'] . '</td>';
|
|
|
$falg = false;
|
|
@@ -10286,7 +10997,7 @@ class ReceiptController extends DooController {
|
|
|
<td class="taR">-</td><td class="taR">-</td><td class="taR">-</td><td class="taR">-</td><td class="taR">-</td>';
|
|
|
$receiptL ['差旅相关费用'] = '<td class="colGreen taR">-</td><td class="taR">-</td>
|
|
|
<td class="taR">-</td><td class="taR">-</td><td class="taR">-</td><td class="taR">-</td>';
|
|
|
- $receiptL ['培训班费用'] = '<td class="colGreen taR">-</td><td class="taR">-</td><td class="taR">-</td><td class="taR">-</td><td class="taR">-</td>
|
|
|
+ $receiptL ['培训班费用'] = '<td class="colGreen taR">-</td><td class="taR">-</td><td class="taR">-</td><td class="taR">-</td><td class="taR">-</td><td class="taR">-</td><td class="taR">-</td>
|
|
|
<td class="taR">-</td><td class="taR">-</td><td class="taR">-</td><td class="taR">-</td>';
|
|
|
$receiptL ['其他'] = '<td class="colGreen taR">-</td><td class="taR">-</td><td class="taR">-</td><td class="taR">-</td><td class="taR">-</td>';
|
|
|
$receiptL ['报销金额调整'] = '<td class="taR colOrange">-</td>';
|
|
@@ -10315,7 +11026,7 @@ class ReceiptController extends DooController {
|
|
|
$receiptL ['差旅相关费用'] = '<td class="colGreen taR">' . $c6 . '</td><td class="taR">' . $c1 . '</td>
|
|
|
<td class="taR">' . $c2 . '</td><td class="taR">' . $c3 . '</td><td class="taR">' . $c4 . '</td><td class="taR">' . $c5 . '</td>';
|
|
|
$receiptL ['培训班费用'] = '<td class="colGreen taR">' . $p9 . '</td><td class="taR">' . $p1 . '</td><td class="taR">' . $p2 . '</td><td class="taR">' . $p3 . '</td><td class="taR">' . $p4 . '</td>
|
|
|
- <td class="taR">' . $p5 . '</td><td class="taR">' . $p6 . '</td><td class="taR">' . $p7 . '</td><td class="taR">' . $p8 . '</td>';
|
|
|
+ <td class="taR">' . $p5 . '</td><td class="taR">' . $p6 . '</td><td class="taR">' . $p7 . '</td><td class="taR">' . $p8 . '</td><td class="taR">' . $p9 . '</td><td class="taR">' . $p10 . '</td>';
|
|
|
$receiptL ['其他'] = '<td class="colGreen taR">' . $t5 . '</td><td class="taR">' . $t1 . '</td><td class="taR">' . $t2 . '</td><td class="taR">' . $t3 . '</td><td class="taR">' . $t4 . '</td>';
|
|
|
$receiptL ['报销金额调整'] = '<td class="taR colOrange">' . $s1 . '</td>';
|
|
|
$receiptL ['monthStaffPrice'] = '<td><b>¥' . $m1 . '</b></td>';
|
|
@@ -11642,7 +12353,10 @@ class ReceiptController extends DooController {
|
|
|
'广告费',
|
|
|
'团队建设费',
|
|
|
'物业管理费',
|
|
|
- '宽带费'
|
|
|
+ '宽带费',
|
|
|
+ '人员薪酬',
|
|
|
+ '公积金',
|
|
|
+ '社保'
|
|
|
);
|
|
|
foreach ( $item as $value ) {
|
|
|
$falg = true;
|
|
@@ -11710,7 +12424,9 @@ class ReceiptController extends DooController {
|
|
|
'餐饮费',
|
|
|
'办公费',
|
|
|
'公关费',
|
|
|
- '其他'
|
|
|
+ '其他',
|
|
|
+ '电话费',
|
|
|
+ '邮寄费'
|
|
|
);
|
|
|
foreach ( $item as $value ) {
|
|
|
$falg = true;
|
|
@@ -11783,12 +12499,30 @@ class ReceiptController extends DooController {
|
|
|
$receiptL ['报销金额调整'] = $psum . $html;
|
|
|
} else {
|
|
|
|
|
|
- $receiptL ['日常相关费用'] = '<td class="colGreen taR">-</td><td class="taR">-</td><td class="taR">-</td><td class="taR">-</td><td class="taR">-</td><td class="taR">-</td><td class="taR">-</td>
|
|
|
- <td class="taR">-</td><td class="taR">-</td><td class="taR">-</td><td class="taR">-</td><td class="taR">-</td><td class="taR">-</td>';
|
|
|
+ $receiptL ['日常相关费用'] = '<td class="colGreen taR">-</td>
|
|
|
+ <td class="taR">-</td>
|
|
|
+ <td class="taR">-</td>
|
|
|
+ <td class="taR">-</td>
|
|
|
+ <td class="taR">-</td>
|
|
|
+ <td class="taR">-</td>
|
|
|
+ <td class="taR">-</td>
|
|
|
+ <td class="taR">-</td>
|
|
|
+ <td class="taR">-</td>
|
|
|
+ <td class="taR">-</td>
|
|
|
+ <td class="taR">-</td>
|
|
|
+ <td class="taR">-</td>
|
|
|
+ <td class="taR">-</td>';
|
|
|
$receiptL ['差旅相关费用'] = '<td class="colGreen taR">-</td><td class="taR">-</td>
|
|
|
<td class="taR">-</td><td class="taR">-</td><td class="taR">-</td><td class="taR">-</td>';
|
|
|
- $receiptL ['培训班费用'] = '<td class="colGreen taR">-</td><td class="taR">-</td><td class="taR">-</td><td class="taR">-</td><td class="taR">-</td>
|
|
|
- <td class="taR">-</td><td class="taR">-</td><td class="taR">-</td><td class="taR">-</td>';
|
|
|
+ $receiptL ['培训班费用'] = '<td class="colGreen taR">-</td>
|
|
|
+ <td class="taR">-</td>
|
|
|
+ <td class="taR">-</td>
|
|
|
+ <td class="taR">-</td>
|
|
|
+ <td class="taR">-</td>
|
|
|
+ <td class="taR">-</td>
|
|
|
+ <td class="taR">-</td>
|
|
|
+ <td class="taR">-</td>
|
|
|
+ <td class="taR">-</td>';
|
|
|
$receiptL ['其他'] = '<td class="colGreen taR">-</td><td class="taR">-</td><td class="taR">-</td><td class="taR">-</td><td class="taR">-</td>';
|
|
|
$receiptL ['报销金额调整'] = '<td class="taR colOrange">-</td>';
|
|
|
}
|