澜海账单增加票金额加手续费的合计金额

master
赵鹏 8 months ago
parent 2553b98ea0
commit 03b05ee7c8

@ -745,9 +745,9 @@ class api extends CI_Controller{
$arrRecord["griName"] = $orderData->griName;
}
$arrRecord["HandingFree"] = $handlingFee;
$arrRecord["HandingFree"] = $handlingFee;
$arrRecord["totalPrice"] = $record->price + $handlingFee; //票计算手续费后的总价
$arr[] = $arrRecord;
if (!empty($importht)) {

@ -9,7 +9,7 @@
<input type="text" name="to_date" class="date" value="<?php echo empty($to_date)?"":$to_date;?>" autocomplete="off" placeholder="结束日期">
显示列表:<input type="checkbox" <?php echo empty($examine)?"":"checked";?> name="examine" />&nbsp;&nbsp;|&nbsp;&nbsp;
导入汉特:<input type="checkbox" <?php echo empty($importht)?"":"checked";?> name="importht" />&nbsp; <a href="javascript:void(0);" title="勾选此项后,会以开始时间和结束时间为编码把数据导入汉特。&#10 注意:为了防止重复 请不要有同一时间段的导入。比如8月1日到30日导入然后8月1日到29日又导入一次。"><i
class="text-muted glyphicon glyphicon-question-sign"></i></a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;录入本次手续费:<input type="text" name="allHandleFree" value="0" />&nbsp; <a href="javascript:void(0);" title="录入的手续费会平均分配给每条导出的账单。"><i
class="text-muted glyphicon glyphicon-question-sign"></i></a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;录入本次手续费:<input type="text" name="allHandleFree" value="<?php echo empty($allHandleFree)?1000:$allHandleFree;?>" />&nbsp; <a href="javascript:void(0);" title="录入的手续费会平均分配给每条导出的账单。"><i
class="text-muted glyphicon glyphicon-question-sign"></i></a>&nbsp;&nbsp;|
<button type="submit" id="sub" class="btn btn-warning btn-sm"><span class="glyphicon glyphicon-download-alt"></span> 查看或下载账单 </button>
&nbsp;<a href="javascript:void(0);" title="什么都不选点击此按钮下载EXCEL账单选择显示列表就只显示数据。&#10 选择导入汉特后会单独另外进行一个导入的操作。"><i
@ -40,10 +40,11 @@
<th width="100px">日期</th>
<th width="100px">类型</th>
<th>金额</th>
<th width="80px">手续费</th>
<th width="80px">结算价</th>
<th>订单号</th>
<th width="80px">外联</th>
<th width="200px">团号</th>
<th width="80px">手续费</th>
<th width="200px">团号</th>
<th>乘客</th>
</tr>
</thead>
@ -51,11 +52,12 @@
<?php $total=0; $count=0; foreach ($data as $key => $value) {?>
<tr data-id="<?php echo $value["mainOrderId"];?>" title="Popover title" data-container="body" data-toggle="popover" data-placement="top" data-content="顶部的 Popover 中的一些内容">
<td><?php echo $value["saveDay"];?></td><td><?php echo $value["type"];?></td><td><?php echo $value["price"];?></td><td><?php echo $value["mainOrderId"];?></td>
<td><?php echo $value["wl"];?></td><td><?php echo $value["griName"];?></td><td><?php echo $value["HandingFree"];?></td><td><?php echo $value["passengerName"];?></td>
<td><?php echo $value["saveDay"];?></td><td><?php echo $value["type"];?></td><td><?php echo $value["price"];?></td><td><?php echo $value["HandingFree"];?></td>
<td><?php echo $value["totalPrice"];?></td><td><?php echo $value["mainOrderId"];?></td>
<td><?php echo $value["wl"];?></td><td><?php echo $value["griName"];?></td><td><?php echo $value["passengerName"];?></td>
</tr>
<?php $total += $value["price"]; $count+=1; }?>
<tr><td colspan="1">总额:</td><td colspan="2"><?php echo($total) ?></td><td>记录数:</td><td colspan="1"><?php echo($count) ?></td><td>手续费:</td><td colspan="2"><?php echo($allHandleFree) ?></td></tr>
<tr><td colspan="1">总额:</td><td colspan="2"><?php echo($total) ?></td><td>记录数:</td><td colspan="1"><?php echo($count) ?></td><td>手续费:</td><td colspan="2"><?php echo($allHandleFree) ?></td><td>结算总价:<?php echo($total+$allHandleFree) ?></td></tr>
</tbody>
</table>
</div>

@ -86,32 +86,34 @@
</Styles>
<Worksheet ss:Name="Sheet1">
<?php $num=count($arr);?>
<Table ss:ExpandedColumnCount="7" ss:ExpandedRowCount="<?php echo $num+7;?>" x:FullColumns="1"
<Table ss:ExpandedColumnCount="8" ss:ExpandedRowCount="<?php echo $num+7;?>" x:FullColumns="1"
x:FullRows="1" ss:DefaultColumnWidth="54" ss:DefaultRowHeight="13.5">
<Column ss:AutoFitWidth="0" ss:Width="115.5"/>
<Column ss:AutoFitWidth="0" ss:Width="111"/>
<Column ss:AutoFitWidth="0" ss:Width="111"/>
<Column ss:AutoFitWidth="0" ss:Width="100.5"/>
<Column ss:AutoFitWidth="0" ss:Width="62.25"/>
<Column ss:AutoFitWidth="0" ss:Width="111"/>
<Column ss:AutoFitWidth="0" ss:Width="100.5"/>
<Column ss:AutoFitWidth="0" ss:Width="62.25"/>
<Column ss:AutoFitWidth="0" ss:Width="100.5"/>
<Column ss:AutoFitWidth="0" ss:Width="203.25"/>
<Row ss:AutoFitHeight="0">
<Cell ss:MergeAcross="7" ss:MergeDown="1" ss:StyleID="m58993952"><Data
<Cell ss:MergeAcross="8" ss:MergeDown="1" ss:StyleID="m58993952"><Data
ss:Type="String">三亚澜海商旅服务有限公司&#10;地址海南省三亚市崖州区崖州湾科技城雅布伦产业园5号楼3楼310室&#10;开户银行:三亚惠民村镇银行&#10;银行账号2019 0379 3100 12&#10;</Data></Cell>
</Row>
<Row ss:AutoFitHeight="0" ss:Height="99.75"/>
<Row ss:AutoFitHeight="0" ss:Height="42">
<Cell ss:MergeAcross="7" ss:StyleID="m58993972"><Data ss:Type="String">桂林海纳国际旅行社有限公司火车票对账文件</Data></Cell>
<Cell ss:MergeAcross="8" ss:StyleID="m58993972"><Data ss:Type="String">桂林海纳国际旅行社有限公司火车票对账文件</Data></Cell>
</Row>
<Row ss:AutoFitHeight="0" ss:Height="16.5">
<Cell ss:StyleID="s78"><Data ss:Type="String">账单日期</Data></Cell>
<Cell ss:StyleID="s78"><Data ss:Type="String">账单类型</Data></Cell>
<Cell ss:StyleID="s78"><Data ss:Type="String">结算金额</Data></Cell>
<Cell ss:StyleID="s78"><Data ss:Type="String">票金额</Data></Cell>
<Cell ss:StyleID="s78"><Data ss:Type="String">手续费</Data></Cell>
<Cell ss:StyleID="s78"><Data ss:Type="String">结算价</Data></Cell>
<Cell ss:StyleID="s78"><Data ss:Type="String">订单号</Data></Cell>
<Cell ss:StyleID="s78"><Data ss:Type="String">外联</Data></Cell>
<Cell ss:StyleID="s78"><Data ss:Type="String">团号</Data></Cell>
<Cell ss:StyleID="s78"><Data ss:Type="String">手续费</Data></Cell>
<Cell ss:StyleID="s78"><Data ss:Type="String">乘客</Data></Cell>
</Row>
<?php for($i=$num-1;$i>=0;$i--){?>
@ -119,15 +121,16 @@
<Cell ss:StyleID="s79"><Data ss:Type="String"><?php echo $arr[$i]["saveDay"];?></Data></Cell>
<Cell ss:StyleID="s78"><Data ss:Type="String"><?php echo $arr[$i]["type"];?></Data></Cell>
<Cell ss:StyleID="s78"><Data ss:Type="String"><?php echo $arr[$i]["price"];?></Data></Cell>
<Cell ss:StyleID="s78"><Data ss:Type="String"><?php echo $arr[$i]["HandingFree"];?></Data></Cell>
<Cell ss:StyleID="s78"><Data ss:Type="String"><?php echo $arr[$i]["totalPrice"];?></Data></Cell>
<Cell ss:StyleID="s78"><Data ss:Type="String"><?php echo $arr[$i]["mainOrderId"];?></Data></Cell>
<Cell ss:StyleID="s78"><Data ss:Type="String"><?php echo $arr[$i]["wl"];?></Data></Cell>
<Cell ss:StyleID="s78"><Data ss:Type="String"><?php echo $arr[$i]["griName"];?></Data></Cell>
<Cell ss:StyleID="s78"><Data ss:Type="String"><?php echo $arr[$i]["HandingFree"];?></Data></Cell>
<Cell ss:StyleID="s78"><Data ss:Type="String"><?php echo $arr[$i]["griName"];?></Data></Cell>
<Cell ss:StyleID="s78"><Data ss:Type="String"><?php echo $arr[$i]["passengerName"];?></Data></Cell>
</Row>
<?php }?>
<Row ss:AutoFitHeight="0" ss:Height="36">
<Cell ss:MergeAcross="7" ss:StyleID="m58993992"><Data ss:Type="String"></Data></Cell>
<Cell ss:MergeAcross="8" ss:StyleID="m58993992"><Data ss:Type="String"></Data></Cell>
</Row>
</Table>
<WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">

Loading…
Cancel
Save