|
|
|
|
@ -1,10 +1,12 @@
|
|
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 账单结算
|
|
|
|
|
*/
|
|
|
|
|
?>
|
|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html>
|
|
|
|
|
|
|
|
|
|
<head>
|
|
|
|
|
<title>Trippest & 地接账单结算</title>
|
|
|
|
|
<meta charset="utf-8">
|
|
|
|
|
@ -16,23 +18,77 @@
|
|
|
|
|
<link href="http://www.mycht.cn/css/webht/bootstrap.min.css" rel="stylesheet" type="text/css" />
|
|
|
|
|
<link href="http://www.mycht.cn/css/bootstrap-datetimepicker.min.css" rel="stylesheet" type="text/css" />
|
|
|
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/flatpickr/dist/flatpickr.min.css">
|
|
|
|
|
<!-- <?php // include 'flatpickr.css.php'; ?> -->
|
|
|
|
|
<!-- <?php // include 'flatpickr.css.php';
|
|
|
|
|
?> -->
|
|
|
|
|
<style type="text/css">
|
|
|
|
|
form{border-bottom: 1px solid #ccc;}
|
|
|
|
|
.navbar-header h1{display: inline-block;margin-left: 30px;margin-right: 30px;}
|
|
|
|
|
label {display: inline-block;max-width: none;margin-bottom: 5px;font-weight: bold; }
|
|
|
|
|
.form-check-label{font-weight: normal; margin-left: 5px;}
|
|
|
|
|
thead th {text-align: center;}
|
|
|
|
|
tbody td {text-align: right;}
|
|
|
|
|
.bg-grey {background-color: #f5f5f5;}
|
|
|
|
|
.text-left {text-align: left;}
|
|
|
|
|
.text-right {text-align: right;}
|
|
|
|
|
.text-bold {font-weight: bold;}
|
|
|
|
|
.text-red {color: red;}
|
|
|
|
|
.cell-right {float: right;}
|
|
|
|
|
td a {cursor: pointer;}
|
|
|
|
|
form {
|
|
|
|
|
border-bottom: 1px solid #ccc;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.navbar-header h1 {
|
|
|
|
|
display: inline-block;
|
|
|
|
|
margin-left: 30px;
|
|
|
|
|
margin-right: 30px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
label {
|
|
|
|
|
display: inline-block;
|
|
|
|
|
max-width: none;
|
|
|
|
|
margin-bottom: 5px;
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.form-check-label {
|
|
|
|
|
font-weight: normal;
|
|
|
|
|
margin-left: 5px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
thead th {
|
|
|
|
|
text-align: center;
|
|
|
|
|
min-width: 150px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
tbody td {
|
|
|
|
|
text-align: right;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.bg-grey {
|
|
|
|
|
background-color: #f5f5f5;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.text-left {
|
|
|
|
|
text-align: left;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.text-right {
|
|
|
|
|
text-align: right;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.text-bold {
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.text-red {
|
|
|
|
|
color: red;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.cell-right {
|
|
|
|
|
float: right;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
td a {
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.info-red {
|
|
|
|
|
color: lightcoral;
|
|
|
|
|
}
|
|
|
|
|
.info-primary{
|
|
|
|
|
color: #337ab7;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
</head>
|
|
|
|
|
|
|
|
|
|
<body>
|
|
|
|
|
<div id="wrapper" class="chkVisible print-none">
|
|
|
|
|
<div class="navbar-header" style="float:none;border-bottom: 1px solid #ccc;">
|
|
|
|
|
@ -40,14 +96,15 @@
|
|
|
|
|
<img width="150" style="height:40px;" src="/css/nav/img/6000.png">
|
|
|
|
|
</a>
|
|
|
|
|
<h1>Trippest & 地接账单结算</h1>
|
|
|
|
|
<a href="/webht.php/apps/trippestordersync/vendor_money/report_precheck">预审核»</a>
|
|
|
|
|
<a target="_blank" href="/webht.php/apps/trippestordersync/vendor_money/report_precheck">[ 审核账单从这里开始 ] 预审核»</a>
|
|
|
|
|
<ul class="nav navbar-nav navbar-right pull-right" style="margin:7.5px 0;">
|
|
|
|
|
<li class="dropdown">
|
|
|
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><?php $userdata=$this->session->userdata('admin_chtcdn'); echo $userdata['OPI_Name']; ?> <span class="caret"></span></a>
|
|
|
|
|
<ul class="dropdown-menu" role="menu">
|
|
|
|
|
<li><a href="<?php echo site_url('login/logout'); ?>">退出</a></li>
|
|
|
|
|
</ul>
|
|
|
|
|
</li>
|
|
|
|
|
<li class="dropdown">
|
|
|
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><?php $userdata = $this->session->userdata('admin_chtcdn');
|
|
|
|
|
echo $userdata['OPI_Name']; ?> <span class="caret"></span></a>
|
|
|
|
|
<ul class="dropdown-menu" role="menu">
|
|
|
|
|
<li><a href="<?php echo site_url('login/logout'); ?>">退出</a></li>
|
|
|
|
|
</ul>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
@ -57,9 +114,9 @@
|
|
|
|
|
<div class="form-group row">
|
|
|
|
|
<label for="" class="col-md-2">地接社</label>
|
|
|
|
|
<div class="">
|
|
|
|
|
<label class="form-check-label"><input type="checkbox" class="" name="vendors[]" id="" value="1343" <?php if(in_array(1343, $default_vendor)) { ?>checked<?php } ?> >北京图兰朵</label>
|
|
|
|
|
<label class="form-check-label"><input type="checkbox" class="" name="vendors[]" id="" value="29188" <?php if(in_array(29188, $default_vendor)) { ?>checked<?php } ?>>上海图兰朵</label>
|
|
|
|
|
<label class="form-check-label"><input type="checkbox" class="" name="vendors[]" id="" value="30548" <?php if(in_array(30548, $default_vendor)) { ?>checked<?php } ?>>西安图兰朵</label>
|
|
|
|
|
<label class="form-check-label"><input type="checkbox" class="" name="vendors[]" id="" value="1343" <?php if (in_array(1343, $default_vendor)) { ?>checked<?php } ?>>北京图兰朵</label>
|
|
|
|
|
<label class="form-check-label"><input type="checkbox" class="" name="vendors[]" id="" value="29188" <?php if (in_array(29188, $default_vendor)) { ?>checked<?php } ?>>上海图兰朵</label>
|
|
|
|
|
<label class="form-check-label"><input type="checkbox" class="" name="vendors[]" id="" value="30548" <?php if (in_array(30548, $default_vendor)) { ?>checked<?php } ?>>西安图兰朵</label>
|
|
|
|
|
<!-- <label class="form-check-label"><input type="checkbox" class="" name="vendors[]" id="" value="628">桂林地接</label> -->
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
@ -87,140 +144,142 @@
|
|
|
|
|
<th rowspan="2">⑧海纳应付地接</th>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<th >①海纳代收</th>
|
|
|
|
|
<th >②地接代收</th>
|
|
|
|
|
<th >①+②</th>
|
|
|
|
|
<th >③海纳成本</th>
|
|
|
|
|
<th >④地接成本</th>
|
|
|
|
|
<th>①海纳代收</th>
|
|
|
|
|
<th>②地接代收</th>
|
|
|
|
|
<th>①+②</th>
|
|
|
|
|
<th>③海纳成本</th>
|
|
|
|
|
<th>④地接成本</th>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
|
|
|
|
<?php if ( ! empty($money)) {
|
|
|
|
|
<?php if (!empty($money)) {
|
|
|
|
|
foreach ($money as $kt => $trippest) {
|
|
|
|
|
?>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="text-left"><?php echo $trippest['vendor_name'] ?>
|
|
|
|
|
<a onclick="detail_download(<?php echo $trippest['vendor_code'] ?>);" class="cell-right">导出账单明细 ⇓</a>
|
|
|
|
|
</td>
|
|
|
|
|
<td><?php echo $trippest['trippest']['trippest_sum'] ?></td>
|
|
|
|
|
<td><?php echo $trippest['trippest']['vendor_sum'] ?></td>
|
|
|
|
|
<td><?php echo bcadd($trippest['trippest']['trippest_sum'],$trippest['trippest']['vendor_sum']) ?></td>
|
|
|
|
|
<td><?php echo $trippest['trippest_cost'] ?></td>
|
|
|
|
|
<td><?php echo $trippest['vendor_cost'] ?></td>
|
|
|
|
|
<td><?php echo $trippest['trippest']['total_profit'] ?></td>
|
|
|
|
|
<td><?php echo $trippest['trippest']['trippest_profit'] ?></td>
|
|
|
|
|
<td><?php echo $trippest['trippest']['vendor_profit'] ?></td>
|
|
|
|
|
<td><?php echo $trippest['trippest']['payout'] ?></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<?php
|
|
|
|
|
if ($trippest['trippest']['other_sum'] > 0) {
|
|
|
|
|
?>
|
|
|
|
|
<tr class="bg-grey">
|
|
|
|
|
<td >非包价产品的收款 <br></td>
|
|
|
|
|
<td ><?php echo $trippest['trippest']['other_sum'] ?></td>
|
|
|
|
|
<td ></td>
|
|
|
|
|
<td ></td>
|
|
|
|
|
<td ><?php echo $trippest['trippest']['other_sum_cost'] ?></td>
|
|
|
|
|
<td ></td>
|
|
|
|
|
<td colspan="4"></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<?php
|
|
|
|
|
}
|
|
|
|
|
?>
|
|
|
|
|
<?php
|
|
|
|
|
if ($trippest['trippest']['other_vendor_sum'] > 0) {
|
|
|
|
|
?>
|
|
|
|
|
<tr class="bg-grey">
|
|
|
|
|
<td >已扣减的其他地接的团款 <br></td>
|
|
|
|
|
<td ><?php echo $trippest['trippest']['other_vendor_sum'] ?></td>
|
|
|
|
|
<td ></td>
|
|
|
|
|
<td ></td>
|
|
|
|
|
<td ></td>
|
|
|
|
|
<td ></td>
|
|
|
|
|
<td colspan="4"></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<?php
|
|
|
|
|
}
|
|
|
|
|
?>
|
|
|
|
|
?>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="text-left"><?php echo $trippest['vendor_name'] ?>
|
|
|
|
|
<a onclick="detail_download(<?php echo $trippest['vendor_code'] ?>);" class="cell-right">导出账单明细 ⇓</a>
|
|
|
|
|
</td>
|
|
|
|
|
<td><?php echo $trippest['trippest']['trippest_sum'] ?></td>
|
|
|
|
|
<td><?php echo $trippest['trippest']['vendor_sum'] ?></td>
|
|
|
|
|
<td><?php echo bcadd($trippest['trippest']['trippest_sum'], $trippest['trippest']['vendor_sum']) ?></td>
|
|
|
|
|
<td><?php echo $trippest['trippest_cost'] ?></td>
|
|
|
|
|
<td><?php echo $trippest['vendor_cost'] ?></td>
|
|
|
|
|
<td><?php echo $trippest['trippest']['total_profit'] ?></td>
|
|
|
|
|
<td><?php echo $trippest['trippest']['trippest_profit'] ?></td>
|
|
|
|
|
<td><?php echo $trippest['trippest']['vendor_profit'] ?></td>
|
|
|
|
|
<td><?php echo $trippest['trippest']['payout'] ?></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<?php
|
|
|
|
|
if ($trippest['trippest']['other_sum'] > 0) {
|
|
|
|
|
?>
|
|
|
|
|
<tr class="bg-grey">
|
|
|
|
|
<td>非包价产品的收款 <br></td>
|
|
|
|
|
<td><?php echo $trippest['trippest']['other_sum'] ?></td>
|
|
|
|
|
<td></td>
|
|
|
|
|
<td></td>
|
|
|
|
|
<td><?php echo $trippest['trippest']['other_sum_cost'] ?></td>
|
|
|
|
|
<td></td>
|
|
|
|
|
<td colspan="4"></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<?php
|
|
|
|
|
}
|
|
|
|
|
?>
|
|
|
|
|
<?php
|
|
|
|
|
if ($trippest['trippest']['other_vendor_sum'] > 0) {
|
|
|
|
|
?>
|
|
|
|
|
<tr class="bg-grey">
|
|
|
|
|
<td>已扣减的其他地接的团款 <br></td>
|
|
|
|
|
<td><?php echo $trippest['trippest']['other_vendor_sum'] ?></td>
|
|
|
|
|
<td></td>
|
|
|
|
|
<td></td>
|
|
|
|
|
<td></td>
|
|
|
|
|
<td></td>
|
|
|
|
|
<td colspan="4"></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<?php
|
|
|
|
|
}
|
|
|
|
|
?>
|
|
|
|
|
<?php
|
|
|
|
|
}
|
|
|
|
|
} ?>
|
|
|
|
|
<?php if ( ! empty($col_sum)) {
|
|
|
|
|
?>
|
|
|
|
|
<tr class="text-bold">
|
|
|
|
|
<td class="text-left">合计(仅包价产品)</td>
|
|
|
|
|
<td><?php echo $col_sum['trippest']['sum_trippest_sum'] ?></td>
|
|
|
|
|
<td><?php echo $col_sum['trippest']['sum_vendor_sum'] ?></td>
|
|
|
|
|
<td><?php echo bcadd($col_sum['trippest']['sum_trippest_sum'],$col_sum['trippest']['sum_vendor_sum']); ?></td>
|
|
|
|
|
<td><?php echo $col_sum['trippest']['sum_trippest_cost'] ?></td>
|
|
|
|
|
<td><?php echo $col_sum['trippest']['sum_vendor_cost'] ?></td>
|
|
|
|
|
<td><?php echo $col_sum['trippest']['sum_profit'] ?></td>
|
|
|
|
|
<td><?php echo $col_sum['trippest']['sum_trippest_profit'] ?></td>
|
|
|
|
|
<td><?php echo $col_sum['trippest']['sum_vendor_profit'] ?></td>
|
|
|
|
|
<td><?php echo $col_sum['trippest']['sum_payout'] ?></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<?php if (!empty($col_sum)) {
|
|
|
|
|
?>
|
|
|
|
|
<tr class="text-bold">
|
|
|
|
|
<td class="text-left">合计(仅包价产品)</td>
|
|
|
|
|
<td><?php echo $col_sum['trippest']['sum_trippest_sum'] ?></td>
|
|
|
|
|
<td><?php echo $col_sum['trippest']['sum_vendor_sum'] ?></td>
|
|
|
|
|
<td><?php echo bcadd($col_sum['trippest']['sum_trippest_sum'], $col_sum['trippest']['sum_vendor_sum']); ?></td>
|
|
|
|
|
<td><?php echo $col_sum['trippest']['sum_trippest_cost'] ?></td>
|
|
|
|
|
<td><?php echo $col_sum['trippest']['sum_vendor_cost'] ?></td>
|
|
|
|
|
<td><?php echo $col_sum['trippest']['sum_profit'] ?></td>
|
|
|
|
|
<td><?php echo $col_sum['trippest']['sum_trippest_profit'] ?></td>
|
|
|
|
|
<td><?php echo $col_sum['trippest']['sum_vendor_profit'] ?></td>
|
|
|
|
|
<td><?php echo $col_sum['trippest']['sum_payout'] ?></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<?php } ?>
|
|
|
|
|
<?php if ( ! empty($trippest_order_multi_city)) {
|
|
|
|
|
?>
|
|
|
|
|
<tr class="text-bold bg-grey">
|
|
|
|
|
<th >多地预订的团号</th>
|
|
|
|
|
<th >拼团号</th>
|
|
|
|
|
<th >总报价/USD</th>
|
|
|
|
|
<th >总收款/RMB</th>
|
|
|
|
|
<th >计入上表海纳收团款</th>
|
|
|
|
|
<th colspan="5">应扣除的其他地接收款: (实时计算, 存在汇率误差)</th>
|
|
|
|
|
</tr>
|
|
|
|
|
<?php foreach ($trippest_order_multi_city as $ko => $order) {
|
|
|
|
|
?>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="text-left"><?php echo $order['COLI_GroupCode'] ?></td>
|
|
|
|
|
<td class="text-left"><?php echo $order['gci_no'] ?></td>
|
|
|
|
|
<td ><?php echo $order['COLI_Price'] ?></td>
|
|
|
|
|
<td ><?php echo $order['money_sum'] ?></td>
|
|
|
|
|
<td ><?php echo bcsub($order['money_sum'],$order["other_vendorprice_RMB"]) ?>
|
|
|
|
|
<br> <?php echo ($order["vendor_name"]) ?>
|
|
|
|
|
</td>
|
|
|
|
|
<td colspan="5" class="text-left"><?php echo $order["other_vendorprice_RMB"] ?></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<?php } } ?>
|
|
|
|
|
<?php if ( ! empty($trippest_order_cost_debug)) {
|
|
|
|
|
?>
|
|
|
|
|
<tr class="text-bold">
|
|
|
|
|
<td colspan="10"></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr class="text-bold bg-grey">
|
|
|
|
|
<th ><span class="text-red">成本异常,建议重新审核:</span> 订单号</th>
|
|
|
|
|
<th >拼团成本总额</th>
|
|
|
|
|
<th >拼团人等</th>
|
|
|
|
|
<th >订单: 成人数 + 儿童数</th>
|
|
|
|
|
<th >订单成本</th>
|
|
|
|
|
<th colspan="5">财务表备注</th>
|
|
|
|
|
</tr>
|
|
|
|
|
<?php foreach ($trippest_order_cost_debug as $ko => $order) {
|
|
|
|
|
?>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="text-left"><?php echo $order['ordernumber'] ?></td>
|
|
|
|
|
<td ><?php echo $order['RPT_Total'] ?></td>
|
|
|
|
|
<td ><?php echo $order['RPT_PersonGrade'] ?></td>
|
|
|
|
|
<td ><?php echo $order['tourRSd'] ?> + <?php echo $order['tourRSx'] ?></td>
|
|
|
|
|
<td ><?php echo $order['tourcost'] ?></td>
|
|
|
|
|
<td colspan="5" class="text-left"> <?php echo ($order["tourBZ"]) ?></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<?php } } ?>
|
|
|
|
|
<?php if (!empty($trippest_order_multi_city)) {
|
|
|
|
|
?>
|
|
|
|
|
<tr class="text-bold bg-grey">
|
|
|
|
|
<th>多地预订的团号</th>
|
|
|
|
|
<th>拼团号</th>
|
|
|
|
|
<th>总报价/USD</th>
|
|
|
|
|
<th>总收款/RMB</th>
|
|
|
|
|
<th>计入上表海纳收团款</th>
|
|
|
|
|
<th colspan="5">应扣除的其他地接收款: (实时计算, 存在汇率误差)</th>
|
|
|
|
|
</tr>
|
|
|
|
|
<?php foreach ($trippest_order_multi_city as $ko => $order) {
|
|
|
|
|
?>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="text-left"><?php echo $order['COLI_GroupCode'] ?></td>
|
|
|
|
|
<td class="text-left"><?php echo $order['gci_no'] ?></td>
|
|
|
|
|
<td><?php echo $order['COLI_Price'] ?></td>
|
|
|
|
|
<td><?php echo $order['money_sum'] ?></td>
|
|
|
|
|
<td><?php echo bcsub($order['money_sum'], $order["other_vendorprice_RMB"]) ?>
|
|
|
|
|
<br> <?php echo ($order["vendor_name"]) ?>
|
|
|
|
|
</td>
|
|
|
|
|
<td colspan="5" class="text-left"><?php echo $order["other_vendorprice_RMB"] ?></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<?php }
|
|
|
|
|
} ?>
|
|
|
|
|
<?php if (!empty($trippest_order_cost_debug)) {
|
|
|
|
|
?>
|
|
|
|
|
<tr class="text-bold">
|
|
|
|
|
<td colspan="10"></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr class="text-bold bg-grey">
|
|
|
|
|
<th><span class="text-red">成本异常,建议重新审核:</span> 订单号</th>
|
|
|
|
|
<th>拼团成本总额</th>
|
|
|
|
|
<th>拼团人等</th>
|
|
|
|
|
<th>订单: 成人数 + 儿童数</th>
|
|
|
|
|
<th>订单成本</th>
|
|
|
|
|
<th colspan="5">财务表备注</th>
|
|
|
|
|
</tr>
|
|
|
|
|
<?php foreach ($trippest_order_cost_debug as $ko => $order) {
|
|
|
|
|
?>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="text-left"><?php echo $order['ordernumber'] ?></td>
|
|
|
|
|
<td><?php echo $order['RPT_Total'] ?></td>
|
|
|
|
|
<td><?php echo $order['RPT_PersonGrade'] ?></td>
|
|
|
|
|
<td><?php echo $order['tourRSd'] ?> + <?php echo $order['tourRSx'] ?></td>
|
|
|
|
|
<td><?php echo $order['tourcost'] ?></td>
|
|
|
|
|
<td colspan="5" class="text-left"> <?php echo ($order["tourBZ"]) ?></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<?php }
|
|
|
|
|
} ?>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
|
<p>同步数据:</p>
|
|
|
|
|
<p>同步数据: 账单批量保存后, 下表应与地接社提供的汇总表数据一致, 否则需 [ 第四步 ] ⇓</p>
|
|
|
|
|
<table class="table table-bordered table-hover">
|
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
|
|
|
|
<th >目的地</th>
|
|
|
|
|
<th >总营收:①海纳代收+②地接代收</th>
|
|
|
|
|
<th >总成本:③海纳成本+④地接成本</th>
|
|
|
|
|
<th >⑤利润</th>
|
|
|
|
|
<th >⑥海纳利润</th>
|
|
|
|
|
<th >⑦地接利润</th>
|
|
|
|
|
<th >⑧海纳应付地接</th>
|
|
|
|
|
<th>目的地</th>
|
|
|
|
|
<th>总营收:①海纳代收+②地接代收</th>
|
|
|
|
|
<th>总成本:③海纳成本+④地接成本</th>
|
|
|
|
|
<th>⑤利润</th>
|
|
|
|
|
<th>⑥海纳利润</th>
|
|
|
|
|
<th>⑦地接利润</th>
|
|
|
|
|
<th>⑧海纳应付地接</th>
|
|
|
|
|
</tr>
|
|
|
|
|
<!-- <tr>
|
|
|
|
|
<th >①海纳代收</th>
|
|
|
|
|
@ -230,54 +289,76 @@
|
|
|
|
|
</tr> -->
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
|
|
|
|
<?php if ( ! empty($money)) {
|
|
|
|
|
foreach ($money as $kv => $sync) {
|
|
|
|
|
?>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="text-left"><?php echo $sync['vendor_name'] ?></td>
|
|
|
|
|
<!-- <td><?php //echo $sync['sync']['trippest_sum'] ?></td> -->
|
|
|
|
|
<td><?php echo $sync['sync']['price_sum'] ?></td>
|
|
|
|
|
<td><?php echo $sync['sync']['cost_sum'] ?></td>
|
|
|
|
|
<td><?php // echo $sync['vendor_cost'] ?></td>
|
|
|
|
|
<td><?php // echo $sync['sync']['total_profit'] ?></td>
|
|
|
|
|
<td><?php // echo $sync['sync']['trippest_profit'] ?></td>
|
|
|
|
|
<td><?php // echo $sync['sync']['vendor_profit'] ?></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<?php } }?>
|
|
|
|
|
<?php if ( ! empty($col_sum)) {
|
|
|
|
|
?>
|
|
|
|
|
<tr class="text-bold">
|
|
|
|
|
<td class="text-left">合计</td>
|
|
|
|
|
<!-- <td><?php //echo $col_sum['sync']['sum_trippest_sum'] ?></td> -->
|
|
|
|
|
<td><?php echo $col_sum['sync']['sum_price_sum'] ?></td>
|
|
|
|
|
<td><?php echo $col_sum['sync']['sum_cost_sum'] ?></td>
|
|
|
|
|
<td><?php // echo $col_sum['sync']['sum_vendor_cost'] ?></td>
|
|
|
|
|
<td><?php // echo $col_sum['sync']['sum_profit'] ?></td>
|
|
|
|
|
<td><?php // echo $col_sum['sync']['sum_trippest_profit'] ?></td>
|
|
|
|
|
<td><?php // echo $col_sum['sync']['sum_vendor_profit'] ?></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<?php if (!empty($money)) {
|
|
|
|
|
foreach ($money as $kv => $sync) {
|
|
|
|
|
?>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="text-left"><?php echo $sync['vendor_name'] ?></td>
|
|
|
|
|
<!-- <td><?php //echo $sync['sync']['trippest_sum']
|
|
|
|
|
?></td> -->
|
|
|
|
|
<td><?php echo $sync['sync']['price_sum'] ?></td>
|
|
|
|
|
<td><?php echo $sync['sync']['cost_sum'] ?></td>
|
|
|
|
|
<td><?php // echo $sync['vendor_cost']
|
|
|
|
|
?></td>
|
|
|
|
|
<td><?php // echo $sync['sync']['total_profit']
|
|
|
|
|
?></td>
|
|
|
|
|
<td><?php // echo $sync['sync']['trippest_profit']
|
|
|
|
|
?></td>
|
|
|
|
|
<td><?php // echo $sync['sync']['vendor_profit']
|
|
|
|
|
?></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<?php }
|
|
|
|
|
} ?>
|
|
|
|
|
<?php if (!empty($col_sum)) {
|
|
|
|
|
?>
|
|
|
|
|
<tr class="text-bold">
|
|
|
|
|
<td class="text-left">合计</td>
|
|
|
|
|
<!-- <td><?php //echo $col_sum['sync']['sum_trippest_sum']
|
|
|
|
|
?></td> -->
|
|
|
|
|
<td><?php echo $col_sum['sync']['sum_price_sum'] ?></td>
|
|
|
|
|
<td><?php echo $col_sum['sync']['sum_cost_sum'] ?></td>
|
|
|
|
|
<td><?php // echo $col_sum['sync']['sum_vendor_cost']
|
|
|
|
|
?></td>
|
|
|
|
|
<td><?php // echo $col_sum['sync']['sum_profit']
|
|
|
|
|
?></td>
|
|
|
|
|
<td><?php // echo $col_sum['sync']['sum_trippest_profit']
|
|
|
|
|
?></td>
|
|
|
|
|
<td><?php // echo $col_sum['sync']['sum_vendor_profit']
|
|
|
|
|
?></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<?php } ?>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
<?php if ( ! empty($diff_cost)) { ?>
|
|
|
|
|
<p>财务表成本与实际成本不一致, 检查是否需要重新生成账单:</p>
|
|
|
|
|
<?php if (!empty($diff_cost)) { ?>
|
|
|
|
|
<p>财务表成本与实际成本不一致, <span class="info-red"> [ 第四步 ] </span>检查是否需要重新生成账单:</p>
|
|
|
|
|
<table class="table table-bordered table-hover">
|
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
|
|
|
|
<th >拼团号</th>
|
|
|
|
|
<th >实际总成本</th>
|
|
|
|
|
<th >财务表总成本</th>
|
|
|
|
|
<th>拼团号</th>
|
|
|
|
|
<th class="text-left">
|
|
|
|
|
<p class="text-center"> 实际总成本</p>
|
|
|
|
|
</th>
|
|
|
|
|
<th class="text-left">
|
|
|
|
|
<p class="text-center"> 财务表总成本</p>
|
|
|
|
|
<ol class="info-primary">
|
|
|
|
|
<li> 数据为空: 虚拟订单没有团号, 无法计算. 如:
|
|
|
|
|
<ul>
|
|
|
|
|
<li> TA导游奖励计入成本的虚拟订单. 人工检查金额正确之后, 此处可忽略该团. </li>
|
|
|
|
|
</ul>
|
|
|
|
|
</li>
|
|
|
|
|
</ol>
|
|
|
|
|
</th>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
|
|
|
|
<?php foreach ($diff_cost as $kdc => $diff) { ?>
|
|
|
|
|
<tr>
|
|
|
|
|
<td><?php echo $diff['gci_no'] ?></td>
|
|
|
|
|
<td><?php echo $diff['total_cost'] ?></td>
|
|
|
|
|
<td><?php echo $diff['report_total_cost0'] ?></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<?php } ?>
|
|
|
|
|
</tbody>
|
|
|
|
|
<?php foreach ($diff_cost as $kdc => $diff) { ?>
|
|
|
|
|
<tr>
|
|
|
|
|
<td><?php echo $diff['gci_no'] ?></td>
|
|
|
|
|
<td><?php echo $diff['total_cost'] ?></td>
|
|
|
|
|
<td><?php echo $diff['report_total_cost0'] ?></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<?php } ?>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
<?php } ?>
|
|
|
|
|
</div>
|
|
|
|
|
@ -288,17 +369,19 @@
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
$(document).ready(function() {
|
|
|
|
|
$("#date_range").flatpickr({
|
|
|
|
|
dateFormat: 'Y-m-d'
|
|
|
|
|
,mode: 'range'
|
|
|
|
|
,allowInput: true
|
|
|
|
|
,defaultDate:['<?php echo $default_date1 ?>', '<?php echo $default_date2 ?>']
|
|
|
|
|
dateFormat: 'Y-m-d',
|
|
|
|
|
mode: 'range',
|
|
|
|
|
allowInput: true,
|
|
|
|
|
defaultDate: ['<?php echo $default_date1 ?>', '<?php echo $default_date2 ?>']
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
function detail_download(vendor) {
|
|
|
|
|
document.request_form.action = "/webht.php/apps/trippestordersync/vendor_money/index" + "/" + vendor;
|
|
|
|
|
document.querySelector('#request_form').submit();
|
|
|
|
|
document.request_form.action = "/webht.php/apps/trippestordersync/vendor_money/index";
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
</html>
|
|
|
|
|
|