3 * @link https://datagram.co.jp/source/bksj for the canonical source repository
4 * @copyright Copyright (c) 2006-2019 Datagram Ltd. (https://datagram.co.jp)
5 * @license https://datagram.co.jp/source/bksj/license.txt
10 $val = number_format($ans['val']);
11 $rname = $view->str($ans['rname']);
13 <table class="my_table">
14 <tr><th>金額</th><td><?= $val ?></td></tr>
15 <tr><th>まるめ方式</th><td><?= $rname ?></td></tr>
19 <table class="my_table">
21 <th>方式</th><th>税抜金額</th><th>消費税</th><th>外税金額</th>
24 foreach ($ans['otax'] as $k => $d) {
25 $n = $view->str($d['name']);
26 $t = number_format($d['tax']);
27 $v = number_format($ans['val']);
28 $a = number_format($ans['val'] + $d['tax']);
32 <td style="text-align: right;"><?= $v ?></td>
33 <td style="text-align: right;"><?= $t ?></td>
34 <td style="text-align: right;"><?= $a ?></td>
45 <table class="my_table">
47 <th>方式</th><th>税抜金額</th><th>消費税</th><th>内税金額</th>
50 foreach ($ans['itax'] as $k => $d) {
51 $n = $view->str($d['name']);
52 $t = number_format($d['tax']);
53 $v = number_format($ans['val'] - $d['tax']);
54 $a = number_format($ans['val']);
58 <td style="text-align: right;"><?= $v ?></td>
59 <td style="text-align: right;"><?= $t ?></td>
60 <td style="text-align: right;"><?= $a ?></td>