初始版本

This commit is contained in:
2026-04-19 01:39:41 +08:00
commit 2b4d3e9880
1272 changed files with 389959 additions and 0 deletions

View File

@@ -0,0 +1,56 @@
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');?>
<table width="1440px" class="list">
<tr><td class='H' align="center" colspan="12"><h3>商品采购明细表<h3></td></tr>
<tr><td colspan="12">日期:<?php echo $beginDate?>至<?php echo $endDate?></td></tr>
</table>
<table width="1440px" class="list" border="1">
<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>
</tr>
</thead>
<tbody>
<?php
$sum1 = $sum2 = $sum3 = 0;
foreach($list as $arr=>$row){
?>
<tr>
<td><?php echo $row['billDate']?></td>
<td><?php echo $row['billNo']?></td>
<td><?php echo $row['transTypeName']?></td>
<td><?php echo $row['contactName']?></td>
<td><?php echo $row['invNumber']?></td>
<td><?php echo $row['invName']?></td>
<td><?php echo $row['invSpec']?></td>
<td><?php echo $row['mainUnit']?></td>
<td><?php echo $row['locationName']?></td>
<td class="R"><?php echo str_money($row['qty'],$this->systems['qtyPlaces'])?></td>
<td class="R"><?php echo str_money($row['price'],$this->systems['qtyPlaces'])?></td>
<td class="R"><?php echo str_money($row['amount'],2)?></td>
</tr>
<?php
$sum1 += $row['qty'];
$sum2 += $row['price'];
$sum3 += $row['amount'];
}
?>
<tr>
<td colspan="9" class="R B">合计:</td>
<td class="R B"><?php echo str_money($sum1,$this->systems['qtyPlaces'])?></td>
<td class="R B"><?php echo $sum1>0 ? str_money($sum3/$sum1,$this->systems['qtyPlaces']) : 0?></td>
<td class="R B"><?php echo str_money($sum3,2)?></td>
</tr>
</tbody>
</table>