|
@@ -2764,7 +2764,7 @@ class ReceiptController extends DooController {
|
|
|
|
|
|
$receipt->receiptClass=$receiptClass;
|
|
|
if($receiptClass==2){
|
|
|
- $receipt->itinerary=$itinerary;
|
|
|
+ $receipt->itinerary2=$itinerary;
|
|
|
|
|
|
$this->_storageItinerary($itinerary, $rid);
|
|
|
|
|
@@ -3146,6 +3146,9 @@ class ReceiptController extends DooController {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
$data ['category'] = $Lcategory->find ( array (
|
|
|
'asArray' => true
|
|
|
) );
|
|
@@ -3167,6 +3170,9 @@ class ReceiptController extends DooController {
|
|
|
if($receiptDetail['receiptClass']==1){
|
|
|
$this->render ( "/receipt/feeLoanReceiptAgencyEdi", $data );
|
|
|
}elseif($receiptDetail['receiptClass']==2){
|
|
|
+ Doo::loadModel ( 'itinerary' );
|
|
|
+ $itinerary = new itinerary ();
|
|
|
+ $itinerary->delete(array('where' => 'rid=' . $receiptDetail['rid'] ));
|
|
|
$this->render ( "/receipt/feeLoanReceiptTraveEdi", $data );
|
|
|
}elseif($receiptDetail['receiptClass']==3){
|
|
|
$this->render ( "/receipt/feeLoanReceiptITEdi", $data );
|
|
@@ -3322,6 +3328,8 @@ class ReceiptController extends DooController {
|
|
|
die ('illegal request--status');
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+
|
|
|
//如有已入账已收款的发票,自动取消办事处已收款
|
|
|
// Doo::loadModel ( 'RIExtend' );
|
|
|
// $RIExtend = new RIExtend ();
|
|
@@ -3574,6 +3582,8 @@ class ReceiptController extends DooController {
|
|
|
$coupletNumber = $this->get_args ( 'coupletNumber' ) ? $this->get_args ( 'coupletNumber' ) : "";
|
|
|
$remittanceBankType = $this->get_args ( 'remittanceBankType' ) && is_numeric ( $this->get_args ( 'remittanceBankType' ) ) ? $this->get_args ( 'remittanceBankType' ) : 0;
|
|
|
|
|
|
+
|
|
|
+
|
|
|
//&& ! empty ( $participants )
|
|
|
if (! empty ( $verify ) && ! empty ( $cid ) && ! empty ( $remittanceName ) && ! empty ( $bankName ) && ! empty ( $bankNumber ) && ! empty ( $trainName ) && ! empty ( $trainStartDate ) && ! empty ( $trainEndDate ) && ! empty ( $trainAddress )) {
|
|
|
|
|
@@ -5173,13 +5183,10 @@ class ReceiptController extends DooController {
|
|
|
array_push ( $vidList, $value ['vid'] );
|
|
|
}
|
|
|
$vid = implode ( ",", $vidList );
|
|
|
- if (empty ( $verifyDetail ))
|
|
|
+ if (empty ( $verifyDetail )){
|
|
|
$vid = 0;
|
|
|
-
|
|
|
- // if ($status==0)
|
|
|
- // $dateCondition="";
|
|
|
- // else
|
|
|
-
|
|
|
+ }
|
|
|
+
|
|
|
$dateCondition = " ";
|
|
|
|
|
|
// if (! empty ( $month ))
|
|
@@ -5238,6 +5245,9 @@ class ReceiptController extends DooController {
|
|
|
if ($status == 'finish') {
|
|
|
$approvalCondition = " and (status=1 or status=8 or status=9 or status=10)";
|
|
|
}
|
|
|
+ if($status == 'loan'){
|
|
|
+ $approvalCondition = " and (status=8 or status=7) and Rtype=1";
|
|
|
+ }
|
|
|
|
|
|
$pageinfo ['page'] = array (
|
|
|
'previous' => ''
|
|
@@ -12311,123 +12321,126 @@ class ReceiptController extends DooController {
|
|
|
);
|
|
|
$wasteBook->setAccountBookStatistics ( $itemWaste );
|
|
|
|
|
|
- //TODO --移除理财相关
|
|
|
- }elseif($accountType == 7 || $accountType == 9) { // 收入为理财时特殊处理
|
|
|
+
|
|
|
+ }
|
|
|
+ //TODO --移除理财相关
|
|
|
+// elseif($accountType == 7 || $accountType == 9) { // 收入为理财时特殊处理
|
|
|
|
|
|
- // if ($receivedBank == '个人广发') {
|
|
|
- // die ( '个人广发 illegal request' );
|
|
|
- // }
|
|
|
+// // if ($receivedBank == '个人广发') {
|
|
|
+// // die ( '个人广发 illegal request' );
|
|
|
+// // }
|
|
|
|
|
|
- // echo $receivedBank;
|
|
|
- // die;
|
|
|
+// // echo $receivedBank;
|
|
|
+// die;
|
|
|
|
|
|
- // 添加一条收入
|
|
|
- $accountBook = new accountBook ();
|
|
|
- $accountBook->accountType = 10;
|
|
|
- $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" );
|
|
|
- $accountBook->inputStaff = $this->staff [0] ['sid'];
|
|
|
- $inComeId = $accountBook->insert ();
|
|
|
- // 收支汇总-添加一条收入日常汇总
|
|
|
- $abDetail = $accountBook->getAccountBookByAid ( $inComeId );
|
|
|
- $accountBookStatistics = new accountBookStatistics ();
|
|
|
- $item = array (
|
|
|
- 'date' => date ( "Y-m-d" ),
|
|
|
- 'accountType' => $abDetail ['accountType'],
|
|
|
- 'accountMsg' => $abDetail ['accountMsg'],
|
|
|
- 'aid' => $abDetail ['aid'],
|
|
|
- 'inComePrice' => $abDetail ['receivedPrice'],
|
|
|
- 'expensesType' => $abDetail ['expensesType']
|
|
|
- );
|
|
|
- $accountBookStatistics->setAccountBookStatistics ( $item );
|
|
|
+// // 添加一条收入
|
|
|
+// $accountBook = new accountBook ();
|
|
|
+// $accountBook->accountType = 10;
|
|
|
+// $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" );
|
|
|
+// $accountBook->inputStaff = $this->staff [0] ['sid'];
|
|
|
+// $inComeId = $accountBook->insert ();
|
|
|
+// // 收支汇总-添加一条收入日常汇总
|
|
|
+// $abDetail = $accountBook->getAccountBookByAid ( $inComeId );
|
|
|
+// $accountBookStatistics = new accountBookStatistics ();
|
|
|
+// $item = array (
|
|
|
+// 'date' => date ( "Y-m-d" ),
|
|
|
+// 'accountType' => $abDetail ['accountType'],
|
|
|
+// 'accountMsg' => $abDetail ['accountMsg'],
|
|
|
+// 'aid' => $abDetail ['aid'],
|
|
|
+// 'inComePrice' => $abDetail ['receivedPrice'],
|
|
|
+// 'expensesType' => $abDetail ['expensesType']
|
|
|
+// );
|
|
|
+// $accountBookStatistics->setAccountBookStatistics ( $item );
|
|
|
|
|
|
- // 添加收入流水
|
|
|
- $wasteBook = new wasteBook ();
|
|
|
- $itemWaste = array (
|
|
|
- 'accountPriceShow' => $receivedPrice,
|
|
|
- 'accountPrice' => $receivedPrice,
|
|
|
- 'expensesType' => 1,
|
|
|
- 'accountType' => 6, // 流水类型
|
|
|
- 'dataID' => $inComeId,
|
|
|
- 'dailyIncomeType' => $accountType, // $dailyIncomeType,
|
|
|
- 'accountBank' => $accountBank,
|
|
|
- 'category' => $this->staff [0] ['category'],
|
|
|
- 'cid' => $this->staff [0] ['cid'],
|
|
|
- 'name' => $this->staff [0] ['username'],
|
|
|
- 'sid' => $this->staff [0] ['sid'],
|
|
|
- 'inputDate' => date ( "Y-m-d H:i:s" )
|
|
|
- );
|
|
|
- $wasteBook->setAccountBookStatistics ( $itemWaste );
|
|
|
- // 添加一条理财支出
|
|
|
- $accountBank = 'CGBDeposit';
|
|
|
- $expenditureBank = '纵横广发';
|
|
|
- if($accountMsg=='个人(GR)'){
|
|
|
- $expenditureBank = '个人广发';
|
|
|
- }
|
|
|
- $dailyExpenditureType = 4;
|
|
|
- if ($accountType == 9) {
|
|
|
- $accountBank = 'ICBCDeposit';
|
|
|
- $expenditureBank = '纵横工行';
|
|
|
- $dailyExpenditureType = 6;
|
|
|
- }
|
|
|
- $accountBook = new accountBook ();
|
|
|
- $accountBook->expensesType = 2;
|
|
|
- $accountBook->expenditureType = $dailyExpenditureType;
|
|
|
- $accountBook->expenditureMsg = $accountMsg;
|
|
|
- $accountBook->expenditurePrice = $receivedPrice;
|
|
|
- $accountBook->expenditureBank = $expenditureBank;
|
|
|
- $accountBook->expenditureDate = $receivedDate;
|
|
|
- $accountBook->remarks = $remarks;
|
|
|
- $accountBook->bookSerial = "#IN" . date ( "Ymd" ) . mt_rand ( 1000, 9999 );
|
|
|
- $accountBook->inputDate = date ( "Y-m-d H:i:s" );
|
|
|
- $accountBook->inputStaff = $this->staff [0] ['sid'];
|
|
|
- $id = $accountBook->insert ();
|
|
|
- // 收支汇总-添加一条理财支出汇总
|
|
|
- $abDetail = $accountBook->getAccountBookByAid ( $id );
|
|
|
- $accountBookStatistics = new accountBookStatistics ();
|
|
|
- $item = array (
|
|
|
- 'date' => date ( "Y-m-d" ),
|
|
|
- 'accountType' => $abDetail ['accountType'],
|
|
|
- 'accountMsg' => $abDetail ['accountMsg'],
|
|
|
- 'aid' => $abDetail ['aid'],
|
|
|
- 'financingPrice' => - $receivedPrice,
|
|
|
- 'expensesType' => 3
|
|
|
- );
|
|
|
- $accountBookStatistics->setAccountBookStatistics ( $item );
|
|
|
+// // 添加收入流水
|
|
|
+// $wasteBook = new wasteBook ();
|
|
|
+// $itemWaste = array (
|
|
|
+// 'accountPriceShow' => $receivedPrice,
|
|
|
+// 'accountPrice' => $receivedPrice,
|
|
|
+// 'expensesType' => 1,
|
|
|
+// 'accountType' => 6, // 流水类型
|
|
|
+// 'dataID' => $inComeId,
|
|
|
+// 'dailyIncomeType' => $accountType, // $dailyIncomeType,
|
|
|
+// 'accountBank' => $accountBank,
|
|
|
+// 'category' => $this->staff [0] ['category'],
|
|
|
+// 'cid' => $this->staff [0] ['cid'],
|
|
|
+// 'name' => $this->staff [0] ['username'],
|
|
|
+// 'sid' => $this->staff [0] ['sid'],
|
|
|
+// 'inputDate' => date ( "Y-m-d H:i:s" )
|
|
|
+// );
|
|
|
+// $wasteBook->setAccountBookStatistics ( $itemWaste );
|
|
|
+// // 添加一条理财支出
|
|
|
+// $accountBank = 'CGBDeposit';
|
|
|
+// $expenditureBank = '纵横广发';
|
|
|
+// if($accountMsg=='个人(GR)'){
|
|
|
+// $expenditureBank = '个人广发';
|
|
|
+// }
|
|
|
+// $dailyExpenditureType = 4;
|
|
|
+// if ($accountType == 9) {
|
|
|
+// $accountBank = 'ICBCDeposit';
|
|
|
+// $expenditureBank = '纵横工行';
|
|
|
+// $dailyExpenditureType = 6;
|
|
|
+// }
|
|
|
+// $accountBook = new accountBook ();
|
|
|
+// $accountBook->expensesType = 2;
|
|
|
+// $accountBook->expenditureType = $dailyExpenditureType;
|
|
|
+// $accountBook->expenditureMsg = $accountMsg;
|
|
|
+// $accountBook->expenditurePrice = $receivedPrice;
|
|
|
+// $accountBook->expenditureBank = $expenditureBank;
|
|
|
+// $accountBook->expenditureDate = $receivedDate;
|
|
|
+// $accountBook->remarks = $remarks;
|
|
|
+// $accountBook->bookSerial = "#IN" . date ( "Ymd" ) . mt_rand ( 1000, 9999 );
|
|
|
+// $accountBook->inputDate = date ( "Y-m-d H:i:s" );
|
|
|
+// $accountBook->inputStaff = $this->staff [0] ['sid'];
|
|
|
+// $id = $accountBook->insert ();
|
|
|
+// // 收支汇总-添加一条理财支出汇总
|
|
|
+// $abDetail = $accountBook->getAccountBookByAid ( $id );
|
|
|
+// $accountBookStatistics = new accountBookStatistics ();
|
|
|
+// $item = array (
|
|
|
+// 'date' => date ( "Y-m-d" ),
|
|
|
+// 'accountType' => $abDetail ['accountType'],
|
|
|
+// 'accountMsg' => $abDetail ['accountMsg'],
|
|
|
+// 'aid' => $abDetail ['aid'],
|
|
|
+// 'financingPrice' => - $receivedPrice,
|
|
|
+// 'expensesType' => 3
|
|
|
+// );
|
|
|
+// $accountBookStatistics->setAccountBookStatistics ( $item );
|
|
|
|
|
|
- //TODO -新增理财为个人时的情况 添加一条支出理财流水
|
|
|
- $accountTypeWaste = 5;
|
|
|
- if ($accountMsg == '公司固定') {
|
|
|
- $accountTypeWaste = 9;
|
|
|
- } elseif ($accountMsg == '公司活期') {
|
|
|
- $accountTypeWaste = 10;
|
|
|
- } elseif ($receivedBank == '个人广发') {
|
|
|
- $accountTypeWaste = 9;
|
|
|
- $accountBank = 'ICBCDeposit';
|
|
|
- }
|
|
|
- $itemWaste = array (
|
|
|
- 'expensesType' => 2,
|
|
|
- 'accountType' => $accountTypeWaste,
|
|
|
- 'accountPriceShow' => $receivedPrice,
|
|
|
- 'accountPrice' => - $receivedPrice,
|
|
|
- 'dataID' => $id,
|
|
|
- 'dailyExpenditureType' => $dailyExpenditureType,
|
|
|
- 'accountBank' => $accountBank,
|
|
|
- 'category' => $this->staff [0] ['category'],
|
|
|
- 'cid' => $this->staff [0] ['cid'],
|
|
|
- 'name' => $this->staff [0] ['username'],
|
|
|
- 'sid' => $this->staff [0] ['sid'],
|
|
|
- 'inputDate' => date ( "Y-m-d H:i:s" )
|
|
|
- );
|
|
|
- $wasteBook->setAccountBookStatistics ( $itemWaste );
|
|
|
- } elseif ($accountType == 1) {
|
|
|
+// //TODO -新增理财为个人时的情况 添加一条支出理财流水
|
|
|
+// $accountTypeWaste = 5;
|
|
|
+// if ($accountMsg == '公司固定') {
|
|
|
+// $accountTypeWaste = 9;
|
|
|
+// } elseif ($accountMsg == '公司活期') {
|
|
|
+// $accountTypeWaste = 10;
|
|
|
+// } elseif ($receivedBank == '个人广发') {
|
|
|
+// $accountTypeWaste = 9;
|
|
|
+// $accountBank = 'ICBCDeposit';
|
|
|
+// }
|
|
|
+// $itemWaste = array (
|
|
|
+// 'expensesType' => 2,
|
|
|
+// 'accountType' => $accountTypeWaste,
|
|
|
+// 'accountPriceShow' => $receivedPrice,
|
|
|
+// 'accountPrice' => - $receivedPrice,
|
|
|
+// 'dataID' => $id,
|
|
|
+// 'dailyExpenditureType' => $dailyExpenditureType,
|
|
|
+// 'accountBank' => $accountBank,
|
|
|
+// 'category' => $this->staff [0] ['category'],
|
|
|
+// 'cid' => $this->staff [0] ['cid'],
|
|
|
+// 'name' => $this->staff [0] ['username'],
|
|
|
+// 'sid' => $this->staff [0] ['sid'],
|
|
|
+// 'inputDate' => date ( "Y-m-d H:i:s" )
|
|
|
+// );
|
|
|
+// $wasteBook->setAccountBookStatistics ( $itemWaste );
|
|
|
+// }
|
|
|
+ elseif ($accountType == 1) {
|
|
|
// if ($receivedBank == '个人广发')
|
|
|
// die ( 'illegal request--no man' );
|
|
|
// 添加一条收入
|
|
@@ -12537,17 +12550,18 @@ class ReceiptController extends DooController {
|
|
|
$accountBookStatistics->setAccountBookStatistics ( $item );
|
|
|
|
|
|
// 添加收入流水
|
|
|
- $itemWaste = array (
|
|
|
- 'accountPrice' => $receivedPrice
|
|
|
- );
|
|
|
- if ($receivedBank == '个人广发') {
|
|
|
- $itemWaste = array (
|
|
|
- 'accountPrice' => - $receivedPrice
|
|
|
- );
|
|
|
- }
|
|
|
+// $itemWaste = array (
|
|
|
+// 'accountPrice' => $receivedPrice
|
|
|
+// );
|
|
|
+// if ($receivedBank == '个人广发') {
|
|
|
+// $itemWaste = array (
|
|
|
+// 'accountPrice' => - $receivedPrice
|
|
|
+// );
|
|
|
+// }
|
|
|
$wasteBook = new wasteBook ();
|
|
|
- $itemWaste += array (
|
|
|
+ $itemWaste = array (
|
|
|
'accountPriceShow' => $receivedPrice,
|
|
|
+ 'accountPrice' => $receivedPrice,
|
|
|
'expensesType' => 1,
|
|
|
'accountType' => 6, // 流水类型
|
|
|
'dailyIncomeType' => $accountType, // $dailyIncomeType,
|
|
@@ -12596,74 +12610,74 @@ class ReceiptController extends DooController {
|
|
|
|
|
|
if($expenditureType == 8 || $expenditureType == 9){
|
|
|
|
|
|
- if($expenditureType == 8 ){
|
|
|
- $expenditureBank='纵横广发';
|
|
|
- }elseif($expenditureType == 9){
|
|
|
- $expenditureBank='纵横工行';
|
|
|
- }
|
|
|
+// if($expenditureType == 8 ){
|
|
|
+// $expenditureBank='纵横广发';
|
|
|
+// }elseif($expenditureType == 9){
|
|
|
+// $expenditureBank='纵横工行';
|
|
|
+// }
|
|
|
|
|
|
- // 添加一笔日常支出
|
|
|
- $accountBook = new accountBook ();
|
|
|
- $accountBook->expensesType = 2;
|
|
|
- $accountBook->expenditureType = $expenditureType;
|
|
|
- $accountBook->expenditureMsg = $expenditureMsg;
|
|
|
- $accountBook->expenditurePrice = $expenditurePrice;
|
|
|
- $accountBook->expenditureBank = $expenditureBank;
|
|
|
- $accountBook->expenditureDate = $expenditureDate;
|
|
|
- $accountBook->remarks = $remarks;
|
|
|
- $accountBook->bookSerial = "#IN" . date ( "Ymd" ) . mt_rand ( 1000, 9999 );
|
|
|
- $accountBook->inputDate = date ( "Y-m-d H:i:s" );
|
|
|
- $accountBook->inputStaff = $this->staff [0] ['sid'];
|
|
|
- $expenditureId = $accountBook->insert ();
|
|
|
+// // 添加一笔日常支出
|
|
|
+// $accountBook = new accountBook ();
|
|
|
+// $accountBook->expensesType = 2;
|
|
|
+// $accountBook->expenditureType = $expenditureType;
|
|
|
+// $accountBook->expenditureMsg = $expenditureMsg;
|
|
|
+// $accountBook->expenditurePrice = $expenditurePrice;
|
|
|
+// $accountBook->expenditureBank = $expenditureBank;
|
|
|
+// $accountBook->expenditureDate = $expenditureDate;
|
|
|
+// $accountBook->remarks = $remarks;
|
|
|
+// $accountBook->bookSerial = "#IN" . date ( "Ymd" ) . mt_rand ( 1000, 9999 );
|
|
|
+// $accountBook->inputDate = date ( "Y-m-d H:i:s" );
|
|
|
+// $accountBook->inputStaff = $this->staff [0] ['sid'];
|
|
|
+// $expenditureId = $accountBook->insert ();
|
|
|
|
|
|
- // 添加日常支出汇总
|
|
|
- $abDetail = $accountBook->getAccountBookByAid ( $expenditureId );
|
|
|
- $accountBookStatistics = new accountBookStatistics ();
|
|
|
- $item = array (
|
|
|
- 'date' => date ( "Y-m-d" ),
|
|
|
- 'expenditureType' => $abDetail ['expenditureType'],
|
|
|
- 'expenditureMsg' => $abDetail ['expenditureMsg'],
|
|
|
- 'aid' => $abDetail ['aid'],
|
|
|
- 'payPrice' => $abDetail ['expenditurePrice'],
|
|
|
- 'expensesType' => $abDetail ['expensesType']
|
|
|
- );
|
|
|
- $accountBookStatistics->setAccountBookStatistics ( $item );
|
|
|
+// // 添加日常支出汇总
|
|
|
+// $abDetail = $accountBook->getAccountBookByAid ( $expenditureId );
|
|
|
+// $accountBookStatistics = new accountBookStatistics ();
|
|
|
+// $item = array (
|
|
|
+// 'date' => date ( "Y-m-d" ),
|
|
|
+// 'expenditureType' => $abDetail ['expenditureType'],
|
|
|
+// 'expenditureMsg' => $abDetail ['expenditureMsg'],
|
|
|
+// 'aid' => $abDetail ['aid'],
|
|
|
+// 'payPrice' => $abDetail ['expenditurePrice'],
|
|
|
+// 'expensesType' => $abDetail ['expensesType']
|
|
|
+// );
|
|
|
+// $accountBookStatistics->setAccountBookStatistics ( $item );
|
|
|
|
|
|
- // 公司日常支出流水
|
|
|
- if($expenditureType == 8 ){
|
|
|
- $accountBank = 'CGBDeposit';
|
|
|
- }elseif($expenditureType == 9){
|
|
|
- $accountBank = 'ICBCDeposit';
|
|
|
- }
|
|
|
+// // 公司日常支出流水
|
|
|
+// if($expenditureType == 8 ){
|
|
|
+// $accountBank = 'CGBDeposit';
|
|
|
+// }elseif($expenditureType == 9){
|
|
|
+// $accountBank = 'ICBCDeposit';
|
|
|
+// }
|
|
|
|
|
|
- if($accountBank=='CGBDeposit'){
|
|
|
- $dailyExpenditureType='8';
|
|
|
- }elseif($accountBank=='ICBCDeposit'){
|
|
|
- $dailyExpenditureType='9';
|
|
|
- }elseif($accountBank=='PersonalDeposit'){
|
|
|
- $dailyExpenditureType='10';
|
|
|
- }elseif($accountBank=='HUADeposit'){
|
|
|
- $dailyExpenditureType='11';
|
|
|
- }
|
|
|
+// if($accountBank=='CGBDeposit'){
|
|
|
+// $dailyExpenditureType='8';
|
|
|
+// }elseif($accountBank=='ICBCDeposit'){
|
|
|
+// $dailyExpenditureType='9';
|
|
|
+// }elseif($accountBank=='PersonalDeposit'){
|
|
|
+// $dailyExpenditureType='10';
|
|
|
+// }elseif($accountBank=='HUADeposit'){
|
|
|
+// $dailyExpenditureType='11';
|
|
|
+// }
|
|
|
|
|
|
|
|
|
- $wasteBook = new wasteBook ();
|
|
|
- $itemWaste = array (
|
|
|
- 'expensesType' => 2,
|
|
|
- 'accountType' => 5,
|
|
|
- 'dailyExpenditureType' => $dailyExpenditureType,
|
|
|
+// $wasteBook = new wasteBook ();
|
|
|
+// $itemWaste = array (
|
|
|
+// 'expensesType' => 2,
|
|
|
+// 'accountType' => 5,
|
|
|
+// 'dailyExpenditureType' => $dailyExpenditureType,
|
|
|
|
|
|
- 'accountPriceShow' => $expenditurePrice,
|
|
|
- 'accountPrice' => - $expenditurePrice,
|
|
|
- 'dataID' => $expenditureId,
|
|
|
- 'accountBank' => $accountBank,
|
|
|
- 'category' => $this->staff [0] ['category'],
|
|
|
- 'cid' => $this->staff [0] ['cid'],
|
|
|
- 'name' => $this->staff [0] ['username'],
|
|
|
- 'sid' => $this->staff [0] ['sid'],
|
|
|
- 'inputDate' => date ( "Y-m-d H:i:s" )
|
|
|
- );
|
|
|
- $wasteBook->setAccountBookStatistics ( $itemWaste );
|
|
|
+// 'accountPriceShow' => $expenditurePrice,
|
|
|
+// 'accountPrice' => - $expenditurePrice,
|
|
|
+// 'dataID' => $expenditureId,
|
|
|
+// 'accountBank' => $accountBank,
|
|
|
+// 'category' => $this->staff [0] ['category'],
|
|
|
+// 'cid' => $this->staff [0] ['cid'],
|
|
|
+// 'name' => $this->staff [0] ['username'],
|
|
|
+// 'sid' => $this->staff [0] ['sid'],
|
|
|
+// 'inputDate' => date ( "Y-m-d H:i:s" )
|
|
|
+// );
|
|
|
+// $wasteBook->setAccountBookStatistics ( $itemWaste );
|
|
|
|
|
|
//TODO 日常支出 个人理财情况的相关修改
|
|
|
}elseif ($expenditureType == 4 || $expenditureType == 6) {
|
|
@@ -12673,123 +12687,123 @@ class ReceiptController extends DooController {
|
|
|
// }
|
|
|
|
|
|
// echo $expenditureMsg;
|
|
|
- // die;
|
|
|
+ die;
|
|
|
|
|
|
- // 添加一笔日常支出
|
|
|
- $accountBook = new accountBook ();
|
|
|
- $accountBook->expensesType = 2;
|
|
|
- $accountBook->expenditureType = 7;
|
|
|
- $accountBook->expenditureMsg = $expenditureMsg;
|
|
|
- $accountBook->expenditurePrice = $expenditurePrice;
|
|
|
- $accountBook->expenditureBank = $expenditureBank;
|
|
|
- $accountBook->expenditureDate = $expenditureDate;
|
|
|
- $accountBook->remarks = $remarks;
|
|
|
- $accountBook->bookSerial = "#IN" . date ( "Ymd" ) . mt_rand ( 1000, 9999 );
|
|
|
- $accountBook->inputDate = date ( "Y-m-d H:i:s" );
|
|
|
- $accountBook->inputStaff = $this->staff [0] ['sid'];
|
|
|
- $expenditureId = $accountBook->insert ();
|
|
|
+// // 添加一笔日常支出
|
|
|
+// $accountBook = new accountBook ();
|
|
|
+// $accountBook->expensesType = 2;
|
|
|
+// $accountBook->expenditureType = 7;
|
|
|
+// $accountBook->expenditureMsg = $expenditureMsg;
|
|
|
+// $accountBook->expenditurePrice = $expenditurePrice;
|
|
|
+// $accountBook->expenditureBank = $expenditureBank;
|
|
|
+// $accountBook->expenditureDate = $expenditureDate;
|
|
|
+// $accountBook->remarks = $remarks;
|
|
|
+// $accountBook->bookSerial = "#IN" . date ( "Ymd" ) . mt_rand ( 1000, 9999 );
|
|
|
+// $accountBook->inputDate = date ( "Y-m-d H:i:s" );
|
|
|
+// $accountBook->inputStaff = $this->staff [0] ['sid'];
|
|
|
+// $expenditureId = $accountBook->insert ();
|
|
|
|
|
|
- // 添加日常支出汇总
|
|
|
- $abDetail = $accountBook->getAccountBookByAid ( $expenditureId );
|
|
|
- $accountBookStatistics = new accountBookStatistics ();
|
|
|
- $item = array (
|
|
|
- 'date' => date ( "Y-m-d" ),
|
|
|
- 'expenditureType' => $abDetail ['expenditureType'],
|
|
|
- 'expenditureMsg' => $abDetail ['expenditureMsg'],
|
|
|
- 'aid' => $abDetail ['aid'],
|
|
|
- 'payPrice' => $abDetail ['expenditurePrice'],
|
|
|
- 'expensesType' => $abDetail ['expensesType']
|
|
|
- );
|
|
|
- $accountBookStatistics->setAccountBookStatistics ( $item );
|
|
|
+// // 添加日常支出汇总
|
|
|
+// $abDetail = $accountBook->getAccountBookByAid ( $expenditureId );
|
|
|
+// $accountBookStatistics = new accountBookStatistics ();
|
|
|
+// $item = array (
|
|
|
+// 'date' => date ( "Y-m-d" ),
|
|
|
+// 'expenditureType' => $abDetail ['expenditureType'],
|
|
|
+// 'expenditureMsg' => $abDetail ['expenditureMsg'],
|
|
|
+// 'aid' => $abDetail ['aid'],
|
|
|
+// 'payPrice' => $abDetail ['expenditurePrice'],
|
|
|
+// 'expensesType' => $abDetail ['expensesType']
|
|
|
+// );
|
|
|
+// $accountBookStatistics->setAccountBookStatistics ( $item );
|
|
|
|
|
|
- // 公司日常支出流水
|
|
|
- $wasteBook = new wasteBook ();
|
|
|
- $itemWaste = array (
|
|
|
- 'accountPrice' => - $expenditurePrice
|
|
|
- );
|
|
|
- if($expenditureMsg!='个人(GR)'){
|
|
|
- if ($expenditureBank == '个人广发') {
|
|
|
- $itemWaste = array (
|
|
|
- 'accountPrice' => $expenditurePrice
|
|
|
- );
|
|
|
- }
|
|
|
- }
|
|
|
+// // 公司日常支出流水
|
|
|
+// $wasteBook = new wasteBook ();
|
|
|
+// $itemWaste = array (
|
|
|
+// 'accountPrice' => - $expenditurePrice
|
|
|
+// );
|
|
|
+// if($expenditureMsg!='个人(GR)'){
|
|
|
+// if ($expenditureBank == '个人广发') {
|
|
|
+// $itemWaste = array (
|
|
|
+// 'accountPrice' => $expenditurePrice
|
|
|
+// );
|
|
|
+// }
|
|
|
+// }
|
|
|
|
|
|
- $itemWaste += array (
|
|
|
- 'expensesType' => 2,
|
|
|
- 'accountType' => 5,
|
|
|
- 'dailyExpenditureType' => $expenditureType,
|
|
|
- 'accountPriceShow' => $expenditurePrice,
|
|
|
- 'accountPrice' => - $expenditurePrice,
|
|
|
- 'dataID' => $expenditureId,
|
|
|
- 'accountBank' => $accountBank,
|
|
|
- 'category' => $this->staff [0] ['category'],
|
|
|
- 'cid' => $this->staff [0] ['cid'],
|
|
|
- 'name' => $this->staff [0] ['username'],
|
|
|
- 'sid' => $this->staff [0] ['sid'],
|
|
|
- 'inputDate' => date ( "Y-m-d H:i:s" )
|
|
|
- );
|
|
|
- $wasteBook->setAccountBookStatistics ( $itemWaste );
|
|
|
- // 添加一笔理财收入
|
|
|
- $accountBank = 'CGBDeposit';
|
|
|
- $dailyIncomeType = 7;
|
|
|
- $receivedBank = '纵横广发';
|
|
|
- if ($expenditureType == 6) {
|
|
|
- $accountBank = 'ICBCDeposit';
|
|
|
- $receivedBank = '纵横工行';
|
|
|
- $dailyIncomeType = 9;
|
|
|
- }elseif($expenditureMsg=='个人(GR)'){
|
|
|
- $receivedBank = '个人广发';
|
|
|
- }
|
|
|
- $accountBook = new accountBook ();
|
|
|
- $accountBook->expensesType = 1;
|
|
|
- $accountBook->accountType = $dailyIncomeType;
|
|
|
- $accountBook->accountMsg = $expenditureMsg;
|
|
|
- $accountBook->receivedPrice = $expenditurePrice;
|
|
|
- $accountBook->receivedBank = $receivedBank;
|
|
|
- $accountBook->receivedDate = $expenditureDate;
|
|
|
- $accountBook->remarks = $remarks;
|
|
|
- $accountBook->bookSerial = "#IN" . date ( "Ymd" ) . mt_rand ( 1000, 9999 );
|
|
|
- $accountBook->inputDate = date ( "Y-m-d H:i:s" );
|
|
|
- $accountBook->inputStaff = $this->staff [0] ['sid'];
|
|
|
- $id = $accountBook->insert ();
|
|
|
- // 添加日常理财收入汇总
|
|
|
- $abDetail = $accountBook->getAccountBookByAid ( $expenditureId );
|
|
|
- $accountBookStatistics = new accountBookStatistics ();
|
|
|
- $item = array (
|
|
|
- 'date' => date ( "Y-m-d" ),
|
|
|
- 'expenditureType' => $abDetail ['expenditureType'],
|
|
|
- 'expenditureMsg' => $abDetail ['expenditureMsg'],
|
|
|
- 'aid' => $abDetail ['aid'],
|
|
|
- 'financingPrice' => $expenditurePrice,
|
|
|
- 'expensesType' => 3
|
|
|
- );
|
|
|
- $accountBookStatistics->setAccountBookStatistics ( $item );
|
|
|
- //TODO 修改理财收入 添加一笔收入流水
|
|
|
- if ($expenditureMsg == '公司固定') {
|
|
|
- $accountTypeWaste = 9;
|
|
|
- } elseif ($expenditureMsg == '公司活期') {
|
|
|
- $accountTypeWaste = 10;
|
|
|
- } elseif ($expenditureMsg == '个人(GR)') {
|
|
|
- $accountTypeWaste = 9;
|
|
|
- $accountBank = 'ICBCDeposit';
|
|
|
- }
|
|
|
- $itemWaste = array (
|
|
|
- 'expensesType' => 1,
|
|
|
- 'accountType' => $accountTypeWaste,
|
|
|
- 'accountPriceShow' => $expenditurePrice,
|
|
|
- 'accountPrice' => $expenditurePrice,
|
|
|
- 'dataID' => $id,
|
|
|
+// $itemWaste += array (
|
|
|
+// 'expensesType' => 2,
|
|
|
+// 'accountType' => 5,
|
|
|
+// 'dailyExpenditureType' => $expenditureType,
|
|
|
+// 'accountPriceShow' => $expenditurePrice,
|
|
|
+// 'accountPrice' => - $expenditurePrice,
|
|
|
+// 'dataID' => $expenditureId,
|
|
|
+// 'accountBank' => $accountBank,
|
|
|
+// 'category' => $this->staff [0] ['category'],
|
|
|
+// 'cid' => $this->staff [0] ['cid'],
|
|
|
+// 'name' => $this->staff [0] ['username'],
|
|
|
+// 'sid' => $this->staff [0] ['sid'],
|
|
|
+// 'inputDate' => date ( "Y-m-d H:i:s" )
|
|
|
+// );
|
|
|
+// $wasteBook->setAccountBookStatistics ( $itemWaste );
|
|
|
+// // 添加一笔理财收入
|
|
|
+// $accountBank = 'CGBDeposit';
|
|
|
+// $dailyIncomeType = 7;
|
|
|
+// $receivedBank = '纵横广发';
|
|
|
+// if ($expenditureType == 6) {
|
|
|
+// $accountBank = 'ICBCDeposit';
|
|
|
+// $receivedBank = '纵横工行';
|
|
|
+// $dailyIncomeType = 9;
|
|
|
+// }elseif($expenditureMsg=='个人(GR)'){
|
|
|
+// $receivedBank = '个人广发';
|
|
|
+// }
|
|
|
+// $accountBook = new accountBook ();
|
|
|
+// $accountBook->expensesType = 1;
|
|
|
+// $accountBook->accountType = $dailyIncomeType;
|
|
|
+// $accountBook->accountMsg = $expenditureMsg;
|
|
|
+// $accountBook->receivedPrice = $expenditurePrice;
|
|
|
+// $accountBook->receivedBank = $receivedBank;
|
|
|
+// $accountBook->receivedDate = $expenditureDate;
|
|
|
+// $accountBook->remarks = $remarks;
|
|
|
+// $accountBook->bookSerial = "#IN" . date ( "Ymd" ) . mt_rand ( 1000, 9999 );
|
|
|
+// $accountBook->inputDate = date ( "Y-m-d H:i:s" );
|
|
|
+// $accountBook->inputStaff = $this->staff [0] ['sid'];
|
|
|
+// $id = $accountBook->insert ();
|
|
|
+// // 添加日常理财收入汇总
|
|
|
+// $abDetail = $accountBook->getAccountBookByAid ( $expenditureId );
|
|
|
+// $accountBookStatistics = new accountBookStatistics ();
|
|
|
+// $item = array (
|
|
|
+// 'date' => date ( "Y-m-d" ),
|
|
|
+// 'expenditureType' => $abDetail ['expenditureType'],
|
|
|
+// 'expenditureMsg' => $abDetail ['expenditureMsg'],
|
|
|
+// 'aid' => $abDetail ['aid'],
|
|
|
+// 'financingPrice' => $expenditurePrice,
|
|
|
+// 'expensesType' => 3
|
|
|
+// );
|
|
|
+// $accountBookStatistics->setAccountBookStatistics ( $item );
|
|
|
+// //TODO 修改理财收入 添加一笔收入流水
|
|
|
+// if ($expenditureMsg == '公司固定') {
|
|
|
+// $accountTypeWaste = 9;
|
|
|
+// } elseif ($expenditureMsg == '公司活期') {
|
|
|
+// $accountTypeWaste = 10;
|
|
|
+// } elseif ($expenditureMsg == '个人(GR)') {
|
|
|
+// $accountTypeWaste = 9;
|
|
|
+// $accountBank = 'ICBCDeposit';
|
|
|
+// }
|
|
|
+// $itemWaste = array (
|
|
|
+// 'expensesType' => 1,
|
|
|
+// 'accountType' => $accountTypeWaste,
|
|
|
+// 'accountPriceShow' => $expenditurePrice,
|
|
|
+// 'accountPrice' => $expenditurePrice,
|
|
|
+// 'dataID' => $id,
|
|
|
|
|
|
- 'dailyIncomeType' => $dailyIncomeType,
|
|
|
- 'accountBank' => $accountBank,
|
|
|
- 'category' => $this->staff [0] ['category'],
|
|
|
- 'cid' => $this->staff [0] ['cid'],
|
|
|
- 'name' => $this->staff [0] ['username'],
|
|
|
- 'sid' => $this->staff [0] ['sid'],
|
|
|
- 'inputDate' => date ( "Y-m-d H:i:s" )
|
|
|
- );
|
|
|
- $wasteBook->setAccountBookStatistics ( $itemWaste );
|
|
|
+// 'dailyIncomeType' => $dailyIncomeType,
|
|
|
+// 'accountBank' => $accountBank,
|
|
|
+// 'category' => $this->staff [0] ['category'],
|
|
|
+// 'cid' => $this->staff [0] ['cid'],
|
|
|
+// 'name' => $this->staff [0] ['username'],
|
|
|
+// 'sid' => $this->staff [0] ['sid'],
|
|
|
+// 'inputDate' => date ( "Y-m-d H:i:s" )
|
|
|
+// );
|
|
|
+// $wasteBook->setAccountBookStatistics ( $itemWaste );
|
|
|
} else {
|
|
|
// 添加一笔日常支出
|
|
|
$accountBook = new accountBook ();
|
|
@@ -13291,7 +13305,7 @@ class ReceiptController extends DooController {
|
|
|
if (empty ( $abDetail ))
|
|
|
die ( 'illegal request' );
|
|
|
|
|
|
- // 删除收支
|
|
|
+ // 删除收支
|
|
|
Doo::loadModel ( "accountBookStatistics" );
|
|
|
$accountBookStatistics = new accountBookStatistics ();
|
|
|
$item = array (
|
|
@@ -13354,6 +13368,7 @@ class ReceiptController extends DooController {
|
|
|
) );
|
|
|
|
|
|
// 删除收入流水
|
|
|
+ //TODO 2020-07-23 删除新增理财和银行存款流水
|
|
|
if (! empty ( $accountType )) {
|
|
|
Doo::loadModel ( 'wasteBook' );
|
|
|
$wasteBook = new wasteBook ();
|
|
@@ -13665,9 +13680,115 @@ class ReceiptController extends DooController {
|
|
|
include './protected/config/wasteBook.conf.php';
|
|
|
Doo::loadModel ( 'wasteBook' );
|
|
|
$wasteBook = new wasteBook ();
|
|
|
-
|
|
|
+ $data ['store']=$waste;
|
|
|
$inComeStatistics = $wasteBook->getWasteBookStatisticsByIncome ();
|
|
|
+ //print_r($waste);
|
|
|
+ //1-收入支出流水金额合计
|
|
|
$waste = $this->getWasteBookStatistics ( $waste, $inComeStatistics );
|
|
|
+ //echo $waste['bank']['CGBDeposit'].'</br>';
|
|
|
+ //2020-07-20 -理财相关-面板数据
|
|
|
+ Doo::loadClass ( 'wasteBook.finances.func' );
|
|
|
+ $financesStatistics=$wasteBook->getFinancesStatistics();
|
|
|
+ //print_r($waste);
|
|
|
+ // 展示使用
|
|
|
+ //收入
|
|
|
+ //print_r($inComeStatistics);
|
|
|
+ $wasteStatistics['CGBDeposit']=0;
|
|
|
+ $wasteStatistics['ICBCDeposit']=0;
|
|
|
+ $wasteStatistics['HUADeposit']=0;
|
|
|
+ $wasteStatistics['PersonalDeposit']=0;
|
|
|
+ foreach ($inComeStatistics['incomeStatistics'] as $value ){
|
|
|
+ if($value['accountBank']=='CGBDeposit'){
|
|
|
+ $wasteStatistics['CGBDeposit']+=$value['accountPrice'];
|
|
|
+ }
|
|
|
+ if($value['accountBank']=='ICBCDeposit'){
|
|
|
+ $wasteStatistics['ICBCDeposit']+=$value['accountPrice'];
|
|
|
+ }
|
|
|
+ if($value['accountBank']=='HUADeposit'){
|
|
|
+ $wasteStatistics['HUADeposit']+=$value['accountPrice'];
|
|
|
+ }
|
|
|
+ if($value['accountBank']=='PersonalDeposit'){
|
|
|
+ $wasteStatistics['PersonalDeposit']+=$value['accountPrice'];
|
|
|
+ }
|
|
|
+ }
|
|
|
+ $data ['wasteStatistics']=$wasteStatistics;
|
|
|
+ //支出
|
|
|
+ $wasteStatistics['CGBDeposit']=0;
|
|
|
+ $wasteStatistics['ICBCDeposit']=0;
|
|
|
+ $wasteStatistics['HUADeposit']=0;
|
|
|
+ $wasteStatistics['PersonalDeposit']=0;
|
|
|
+ foreach ($inComeStatistics['expenditureStatistics'] as $value ){
|
|
|
+ if($value['accountBank']=='CGBDeposit'){
|
|
|
+ $wasteStatistics['CGBDeposit']+=$value['accountPrice'];
|
|
|
+ }
|
|
|
+ if($value['accountBank']=='ICBCDeposit'){
|
|
|
+ $wasteStatistics['ICBCDeposit']+=$value['accountPrice'];
|
|
|
+ }
|
|
|
+ if($value['accountBank']=='HUADeposit'){
|
|
|
+ $wasteStatistics['HUADeposit']+=$value['accountPrice'];
|
|
|
+ }
|
|
|
+ if($value['accountBank']=='PersonalDeposit'){
|
|
|
+ $wasteStatistics['PersonalDeposit']+=$value['accountPrice'];
|
|
|
+ }
|
|
|
+ }
|
|
|
+ $data ['wastePay']=$wasteStatistics;
|
|
|
+ //理财公司账号部分
|
|
|
+ $wasteStatistics['CGBDeposit']=0;
|
|
|
+ $wasteStatistics['ICBCDeposit']=0;
|
|
|
+ $wasteStatistics['HUADeposit']=0;
|
|
|
+ $wasteStatistics['PersonalDeposit']=0;
|
|
|
+ foreach ($financesStatistics['companyAccount'] as $value ){
|
|
|
+
|
|
|
+ //(纵横广发)广发存款
|
|
|
+ if ($value['operatingBankType'] == 2 && $value['accountBank'] == 'CGBDeposit') {
|
|
|
+ $wasteStatistics['CGBDeposit']+=$value['accountPrice'];
|
|
|
+ }
|
|
|
+ //工行存款
|
|
|
+ if ($value['operatingBankType'] == 2 && $value['accountBank'] == 'ICBCDeposit') {
|
|
|
+ $wasteStatistics['ICBCDeposit']+=$value['accountPrice'];
|
|
|
+ }
|
|
|
+ //个人存款
|
|
|
+ if ($value['operatingBankType'] == 2 && $value['accountBank'] == 'PersonalDeposit') {
|
|
|
+ $wasteStatistics['PersonalDeposit']+=$value['accountPrice'];
|
|
|
+ }
|
|
|
+ }
|
|
|
+ $data ['wasteCompanyAccount']=$wasteStatistics;
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ //理财部分的金额计算
|
|
|
+ $waste =_getFinancesWBS ( $waste, $financesStatistics );
|
|
|
+ //echo $waste['bank']['CGBDeposit'].'</br>';;
|
|
|
+ //存款面板数据--日常收支改变后的金额汇总
|
|
|
+ $bankSavingsStatistics=$wasteBook->getBankSavingsStatistics();
|
|
|
+ $waste =_getBankSavingsWBS ( $waste, $bankSavingsStatistics );
|
|
|
+
|
|
|
+ //展示调试BUG-使用
|
|
|
+ //print_r($bankSavingsStatistics);
|
|
|
+ $wasteStatistics['CGBDeposit']=0;
|
|
|
+ $wasteStatistics['ICBCDeposit']=0;
|
|
|
+ $wasteStatistics['PersonalDeposit']=0;
|
|
|
+ foreach ($bankSavingsStatistics as $value ){
|
|
|
+ //(纵横广发)广发存款
|
|
|
+ if ($value['operatingBankType'] == 2 && $value['accountBank'] == 'CGBDeposit') {
|
|
|
+ $wasteStatistics['CGBDeposit']+=$value['accountPrice'];
|
|
|
+ }
|
|
|
+ //工行存款
|
|
|
+ if ($value['operatingBankType'] == 2 && $value['accountBank'] == 'ICBCDeposit') {
|
|
|
+ $wasteStatistics['ICBCDeposit']+=$value['accountPrice'];
|
|
|
+ }
|
|
|
+ //个人存款
|
|
|
+ if ($value['operatingBankType'] == 2 && $value['accountBank'] == 'PersonalDeposit') {
|
|
|
+ $wasteStatistics['PersonalDeposit']+=$value['accountPrice'];
|
|
|
+ }
|
|
|
+ }
|
|
|
+ $data ['wasteNewPay']=$wasteStatistics;
|
|
|
+
|
|
|
+
|
|
|
+ //echo $waste['bank']['CGBDeposit'].'</br>';;
|
|
|
+
|
|
|
//
|
|
|
$total = $waste ['bank'] ['CGBDeposit'] + $waste ['bank'] ['ICBCDeposit']+ $waste ['bank'] ['HUADeposit'] + $waste ['bank'] ['PersonalDeposit'] + $waste ['financial'] ['current'] ['CGBDeposit'] + $waste ['financial'] ['current'] ['ICBCDeposit'] + $waste ['financial'] ['fixed'] ['CGBDeposit'] + $waste ['financial'] ['fixed'] ['ICBCDeposit'];
|
|
|
$CGBDeposit_total =$waste ['bank'] ['CGBDeposit']+$waste ['bank'] ['HUADeposit'];
|
|
@@ -13676,12 +13797,15 @@ class ReceiptController extends DooController {
|
|
|
|
|
|
// print_r($waste);
|
|
|
|
|
|
- $data ['waste'] = $waste;
|
|
|
- $data ['total'] = $total;
|
|
|
- $data ['CGBDeposit_total'] = $CGBDeposit_total;
|
|
|
- $data['cashBalance']= $CGBDeposit_total+$waste ['bank'] ['ICBCDeposit']+$waste ['bank'] ['PersonalDeposit']+$waste ['financial'] ['current'] ['CGBDeposit']+$waste ['financial'] ['current'] ['ICBCDeposit'];
|
|
|
|
|
|
+ $data ['total'] = number_format($total,2);
|
|
|
+ $data ['CGBDeposit_total'] = number_format($CGBDeposit_total,2);
|
|
|
+ $cashBalance=$CGBDeposit_total+$waste ['bank'] ['ICBCDeposit']+$waste ['bank'] ['PersonalDeposit']+$waste ['financial'] ['current'] ['CGBDeposit']+$waste ['financial'] ['current'] ['ICBCDeposit'];
|
|
|
+ $data['cashBalance']= number_format($cashBalance,2);
|
|
|
|
|
|
+ $waste ['bank'] ['CGBDeposit']=sprintf("%.2f", round($waste ['bank'] ['CGBDeposit'], 2));
|
|
|
+
|
|
|
+ $data ['waste'] = $waste;
|
|
|
|
|
|
// 月流水数据结构
|
|
|
$monthStatistics = array ();
|