|
@@ -469,7 +469,8 @@ class ReceiptController extends DooController {
|
|
$itineraryObj = new itinerary ();
|
|
$itineraryObj = new itinerary ();
|
|
|
|
|
|
if(empty($itinerary)){
|
|
if(empty($itinerary)){
|
|
- return false;
|
|
|
|
|
|
+ header ( 'Content-Type:text/html;charset=utf-8' );
|
|
|
|
+ die ( '请填写行程单' );
|
|
}
|
|
}
|
|
|
|
|
|
$itineraryJson=json_decode($itinerary,true);
|
|
$itineraryJson=json_decode($itinerary,true);
|
|
@@ -478,6 +479,10 @@ class ReceiptController extends DooController {
|
|
foreach ($itineraryJson as $k=>$v){
|
|
foreach ($itineraryJson as $k=>$v){
|
|
foreach ($v as $kk=>$vv){
|
|
foreach ($v as $kk=>$vv){
|
|
foreach ($vv as $key=>$value){
|
|
foreach ($vv as $key=>$value){
|
|
|
|
+ if(empty($value['departuredate'])||empty($value['arrivalsdate'])){
|
|
|
|
+ header ( 'Content-Type:text/html;charset=utf-8' );
|
|
|
|
+ die ( '有行程的日期未设置' );
|
|
|
|
+ }
|
|
if($key==0){
|
|
if($key==0){
|
|
array_push($itineraryDate, $value['departuredate']);
|
|
array_push($itineraryDate, $value['departuredate']);
|
|
array_push($itineraryDate, substr($value['arrivalsdate'],1));
|
|
array_push($itineraryDate, substr($value['arrivalsdate'],1));
|
|
@@ -505,7 +510,11 @@ class ReceiptController extends DooController {
|
|
// }
|
|
// }
|
|
// array_push($itineraryDate, $this->staff [0] ['sid']);
|
|
// array_push($itineraryDate, $this->staff [0] ['sid']);
|
|
// $sql=implode(',',$sql);
|
|
// $sql=implode(',',$sql);
|
|
-
|
|
|
|
|
|
+ if(empty($sql)){
|
|
|
|
+ header ( 'Content-Type:text/html;charset=utf-8' );
|
|
|
|
+ die ( '请填写行程单-2' );
|
|
|
|
+ }
|
|
|
|
+
|
|
$qualification=array(
|
|
$qualification=array(
|
|
'where' => 'itineraryDate in ('.$sql.') and sid=? ',
|
|
'where' => 'itineraryDate in ('.$sql.') and sid=? ',
|
|
'param' => $itineraryDate,
|
|
'param' => $itineraryDate,
|
|
@@ -12215,6 +12224,7 @@ class ReceiptController extends DooController {
|
|
die ( 'illegal request-bank' );
|
|
die ( 'illegal request-bank' );
|
|
|
|
|
|
|
|
|
|
|
|
+ //TODO -存款功能 提取
|
|
if($accountType == 11 || $accountType == 12){
|
|
if($accountType == 11 || $accountType == 12){
|
|
|
|
|
|
if($accountType == 11){
|
|
if($accountType == 11){
|
|
@@ -12250,34 +12260,6 @@ class ReceiptController extends DooController {
|
|
);
|
|
);
|
|
$accountBookStatistics->setAccountBookStatistics ( $item );
|
|
$accountBookStatistics->setAccountBookStatistics ( $item );
|
|
|
|
|
|
- //流水支出
|
|
|
|
-// 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,
|
|
|
|
-// 'accountPriceShow' => $receivedPrice,
|
|
|
|
-// 'accountPrice' => - $receivedPrice,
|
|
|
|
-// 'dataID' => $inComeId,
|
|
|
|
-// '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 );
|
|
|
|
-
|
|
|
|
// 添加收入流水
|
|
// 添加收入流水
|
|
if($accountType == 11){
|
|
if($accountType == 11){
|
|
$accountBank = 'CGBDeposit';
|
|
$accountBank = 'CGBDeposit';
|
|
@@ -12297,15 +12279,18 @@ class ReceiptController extends DooController {
|
|
'cid' => $this->staff [0] ['cid'],
|
|
'cid' => $this->staff [0] ['cid'],
|
|
'name' => $this->staff [0] ['username'],
|
|
'name' => $this->staff [0] ['username'],
|
|
'sid' => $this->staff [0] ['sid'],
|
|
'sid' => $this->staff [0] ['sid'],
|
|
- 'inputDate' => date ( "Y-m-d H:i:s" )
|
|
|
|
|
|
+ 'inputDate' => $receivedDate,
|
|
|
|
+ 'createAt'=>date ( "Y-m-d H:i:s" ),
|
|
|
|
+ 'synPaymentDate'=>1,
|
|
);
|
|
);
|
|
$wasteBook->setAccountBookStatistics ( $itemWaste );
|
|
$wasteBook->setAccountBookStatistics ( $itemWaste );
|
|
|
|
|
|
|
|
+ //TODO --移除理财相关
|
|
}elseif($accountType == 7 || $accountType == 9) { // 收入为理财时特殊处理
|
|
}elseif($accountType == 7 || $accountType == 9) { // 收入为理财时特殊处理
|
|
|
|
|
|
- if ($receivedBank == '个人广发') {
|
|
|
|
- die ( '个人广发 illegal request' );
|
|
|
|
- }
|
|
|
|
|
|
+ // if ($receivedBank == '个人广发') {
|
|
|
|
+ // die ( '个人广发 illegal request' );
|
|
|
|
+ // }
|
|
// 添加一条收入
|
|
// 添加一条收入
|
|
$accountBook = new accountBook ();
|
|
$accountBook = new accountBook ();
|
|
$accountBook->accountType = 10;
|
|
$accountBook->accountType = 10;
|
|
@@ -12475,7 +12460,9 @@ class ReceiptController extends DooController {
|
|
'cid' => $this->staff [0] ['cid'],
|
|
'cid' => $this->staff [0] ['cid'],
|
|
'name' => $this->staff [0] ['username'],
|
|
'name' => $this->staff [0] ['username'],
|
|
'sid' => $this->staff [0] ['sid'],
|
|
'sid' => $this->staff [0] ['sid'],
|
|
- 'inputDate' => date ( "Y-m-d H:i:s" )
|
|
|
|
|
|
+ 'inputDate' => $receivedDate,
|
|
|
|
+ 'createAt'=>date ( "Y-m-d H:i:s" ),
|
|
|
|
+ 'synPaymentDate'=>1,
|
|
);
|
|
);
|
|
$wasteBook->setAccountBookStatistics ( $itemWaste );
|
|
$wasteBook->setAccountBookStatistics ( $itemWaste );
|
|
} else { // 普通日常收入处理
|
|
} else { // 普通日常收入处理
|
|
@@ -12536,7 +12523,9 @@ class ReceiptController extends DooController {
|
|
'cid' => $this->staff [0] ['cid'],
|
|
'cid' => $this->staff [0] ['cid'],
|
|
'name' => $this->staff [0] ['username'],
|
|
'name' => $this->staff [0] ['username'],
|
|
'sid' => $this->staff [0] ['sid'],
|
|
'sid' => $this->staff [0] ['sid'],
|
|
- 'inputDate' => date ( "Y-m-d H:i:s" )
|
|
|
|
|
|
+ 'inputDate' => $receivedDate,
|
|
|
|
+ 'createAt'=>date ( "Y-m-d H:i:s" ),
|
|
|
|
+ 'synPaymentDate'=>1,
|
|
);
|
|
);
|
|
$wasteBook->setAccountBookStatistics ( $itemWaste );
|
|
$wasteBook->setAccountBookStatistics ( $itemWaste );
|
|
}
|
|
}
|