Files
OMS/app/tgstockcost/view/admin/cost/detial.html
2026-01-04 19:08:31 +08:00

47 lines
1.4 KiB
HTML

<!--
Copyright 2012-2026 ShopeX (https://www.shopex.cn)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<{if $setting_stockcost_cost == '4'}>
<div class="tableform">
<div class="division">
<table border="0" cellspacing="0" class="gridlist" cellpadding="0">
<thead>
<tr>
<th>原始单据号</th>
<th>当前数量</th>
<th>单位成本</th>
<th>当前成本</th>
</tr></thead>
<tbody>
<{foreach from=$fifo_data item=item}>
<tr>
<td><{if $item.is_sart==1}>期初<{else}><{if $item.bill_bn}><{$item.bill_bn}><{else}>调账<{/if}><{/if}></td>
<td><{$item.current_num}></td>
<td><{$item.current_unit_cost|cur}></td>
<td><{$item.current_inventory_cost}></td>
</tr>
<{/foreach}>
</tbody>
</table>
</div>
</div>
<{elseif $setting_stockcost_cost=="2" || $setting_stockcost_cost=="3"}>
<{foreach from=$daily_data item=item}>
<p><{$item.stock_date}> 单位平均成本:<{$item.unit_cost|cur}>
<{/foreach}>
<{else}>
不计成本!,没有数据
<{/if}>