|
@@ -2097,6 +2097,7 @@ class ReceiptController extends DooController {
|
|
|
$trainStartDate = $this->get_args ( 'trainStartDate' ) ? $this->get_args ( 'trainStartDate' ) : "";
|
|
|
$trainEndDate = $this->get_args ( 'trainEndDate' ) ? $this->get_args ( 'trainEndDate' ) : "";
|
|
|
$participants = $this->get_args ( 'participants' ) && is_numeric ( $this->get_args ( 'participants' ) ) ? $this->get_args ( 'participants' ) : 0;
|
|
|
+ $freeParticipants = $this->get_args ( 'freeParticipants' ) && is_numeric ( $this->get_args ( 'freeParticipants' ) ) ? $this->get_args ( 'freeParticipants' ) : 0;
|
|
|
$trainAddress = $this->get_args ( 'trainAddress' ) ? $this->get_args ( 'trainAddress' ) : "";
|
|
|
$trainRemarks = $this->get_args ( 'trainRemarks' ) ? $this->get_args ( 'trainRemarks' ) : "";
|
|
|
// 发票信息
|
|
@@ -2141,6 +2142,7 @@ class ReceiptController extends DooController {
|
|
|
'trainStartDate' => $trainStartDate,
|
|
|
'trainEndDate' => $trainEndDate,
|
|
|
'participants' => $participants,
|
|
|
+ 'freeParticipants'=>$freeParticipants,
|
|
|
'trainAddress' => $trainAddress,
|
|
|
'trainRemarks' => $trainRemarks,
|
|
|
'creator' => $this->staff [0] ['sid'],
|
|
@@ -2423,6 +2425,7 @@ class ReceiptController extends DooController {
|
|
|
$trainStartDate = $this->get_args ( 'trainStartDate' ) ? $this->get_args ( 'trainStartDate' ) : "";
|
|
|
$trainEndDate = $this->get_args ( 'trainEndDate' ) ? $this->get_args ( 'trainEndDate' ) : "";
|
|
|
$participants = $this->get_args ( 'participants' ) && is_numeric ( $this->get_args ( 'participants' ) ) ? $this->get_args ( 'participants' ) : 0;
|
|
|
+ $freeParticipants = $this->get_args ( 'freeParticipants' ) && is_numeric ( $this->get_args ( 'freeParticipants' ) ) ? $this->get_args ( 'freeParticipants' ) : 0;
|
|
|
$trainAddress = $this->get_args ( 'trainAddress' ) ? $this->get_args ( 'trainAddress' ) : "";
|
|
|
$trainRemarks = $this->get_args ( 'trainRemarks' ) ? $this->get_args ( 'trainRemarks' ) : "";
|
|
|
// 发票信息
|
|
@@ -2463,6 +2466,7 @@ class ReceiptController extends DooController {
|
|
|
'trainStartDate' => $trainStartDate,
|
|
|
'trainEndDate' => $trainEndDate,
|
|
|
'participants' => $participants,
|
|
|
+ 'freeParticipants'=>$freeParticipants,
|
|
|
'trainAddress' => $trainAddress,
|
|
|
'trainRemarks' => $trainRemarks
|
|
|
);
|
|
@@ -6778,10 +6782,12 @@ class ReceiptController extends DooController {
|
|
|
if ($cidKey != 'ALL')
|
|
|
$cidString = " and cid=" . $cid;
|
|
|
|
|
|
+ //汇款信息需要提取出来
|
|
|
if(!empty($receiptOrder)){
|
|
|
$receiptList = $receipt->find ( array (
|
|
|
'where' => $statusCon.' and receiptOrder like "%' . $receiptOrder . '%"',
|
|
|
'desc' => 'rid',
|
|
|
+
|
|
|
'asArray' => true
|
|
|
) );
|
|
|
|
|
@@ -6795,6 +6801,7 @@ class ReceiptController extends DooController {
|
|
|
$receiptList = $receipt->find ( array (
|
|
|
'where' => $statusCon . $condition . $dateCondition . $sopString . $cidString,
|
|
|
'desc' => 'rid',
|
|
|
+
|
|
|
'asArray' => true
|
|
|
) );
|
|
|
|
|
@@ -16418,8 +16425,8 @@ class ReceiptController extends DooController {
|
|
|
|
|
|
// 备用金
|
|
|
$sum = 0;
|
|
|
- if (! empty ( $value ['trainLoanRid'] )) {
|
|
|
- $receiptLoanDetailBak = $receipt->getReceiptByRid ( trainLoanRid );
|
|
|
+ if (! empty ( $trainLoanRid )) {
|
|
|
+ $receiptLoanDetailBak = $receipt->getReceiptByRid ( $trainLoanRid );
|
|
|
$sum = $receiptLoanDetailBak ['sum'];
|
|
|
}
|
|
|
|