<commit_before>{* Extend our master template *}
{extends file="../../../master.tpl"}

{block name=content}
        <div class="panel panel-default">

            <div class="panel-heading"><h6 class="panel-title">Laporan Pinjam Bendera</h6></div>

            <div class="panel-body">
                <div class="block-inner">
                    <h6 class="heading-hr">
                        <i class="icon-coin"></i> Daftar Penjualan<small class="display-block">Daftar penjualan pinjam bendera dengan id proposal  {$id_proposal}</small>
                    </h6>
                </div>

                <form action="{current_url()}" method="post" role="form">
                    <div class="form-group">
                        <label>Daftar Penjualan</label>
                        <div class="row">
                            <div class="col-md-4">
                                <input type="text" class="from-date form-control" name="date_from" placeholder="From" {if isset($from)}value="{$from}"{/if}>
                            </div>
                            <div class="col-md-4">
                                <input type="text" class="to-date form-control" name="date_to" placeholder="To" {if isset($to)}value="{$to}"{/if}>
                            </div>
                            <div class="col-md-4">
                                <input type="submit" value="Pilih" class="btn btn-success">
                                <a href="{base_url('report')}/{$array_type[$type]}" class="btn btn-warning">Reset</a>
                            </div>
                        </div>
                    </div>
                </form>

                <hr>

                <div class="datatable-tools">
                    <table class="table">
                        <thead>
                            <tr>
                                <th>No</th>
                                <th>No Faktur</th>
                                <th>Customer</th>
                                <th>Nama Staff</th>
                                <th>Tanggal Transaksi</th>
                                <th>Jatuh Tempo</th>
                                <th>Total</th>
                                <th>DPP</th>
                                <th>PPN</th>
                                <th>Discount</th>
                                <th>Grand Total</th>
                                <th>Paid</th>
                                <th>Detail</th>
                            </tr>
                        </thead>
                        <tbody>

                        {assign var=total value=0}
                        {assign var=val value=1}
                        {foreach $penjualan as $key }

                            <tr>
                                <td>{$val}</td>
                                <td>{$key->id_sales_order}</td>
                                <td>{$key->customer_name}</td>
                                <td>{$key->staff_name}</td>
                                <td>{$key->date}</td>
                                <td>{$key->due_date}</td>
                                <td>Rp {$key->total|number_format:0}</td>
                                <td>Rp {$key->dpp|number_format:0}</td>
                                <td>Rp {$key->ppn|number_format:0}</td>
                                <td>Rp {$key->discount_price|number_format:0}</td>
                                <td>Rp {$key->grand_total|number_format:0}</td>
                                <td>Rp {$key->paid|number_format:0}</td>
                                <td>
                                    <div class="table-controls">
                                        <a href="{base_url('report/penjualan-detail/')}/{$key->id_sales_order}"
                                           class="btn btn-link btn-icon btn-xs tip" title="Detail">
                                            <i class="icon-list"></i>
                                        </a>

                                    </div>
                                </td>
                            </tr>
                            {assign var=val value=$val+1}
                            {assign var=total value=$total+$key->grand_total}
                        {/foreach}

                        </tbody>
                    </table>
                </div>

                <div class="col-sm-8">
                    <table class="table">
                        <tbody>
                        {if isset($from)}
                        <tr>
                            <th>Total {$title} Mulai "{$from} hingga {$to}":</th>
                            <td class="text-right">Rp {$total|number_format:0}</td>
                        </tr>
                        {/if}
                        <tr>
                            <th>Total {$title}:</th>
                            <td class="text-right"><h6>Rp {$total_penjualan|number_format:0}</h6></td>
                        </tr>
                        </tbody><commit_msg>report pinjam bendera<commit_after>{* Extend our master template *}
{extends file="../../../master.tpl"}

{block name=content}
        <div class="panel panel-default">

            <div class="panel-heading"><h6 class="panel-title">Laporan Pinjam Bendera</h6></div>

            <div class="panel-body">
                <div class="block-inner">
                    <h6 class="heading-hr">
                        <i class="icon-coin"></i> Daftar Penjualan<small class="display-block">Daftar penjualan pinjam bendera dengan id proposal  {$id_proposal}</small>
                    </h6>
                </div>

                <form action="{current_url()}" method="post" role="form">
                    <div class="form-group">
                        <label>Daftar Penjualan</label>
                        <div class="row">
                            <div class="col-md-4">
                                <input type="text" class="from-date form-control" name="date_from" placeholder="From" {if isset($from)}value="{$from}"{/if}>
                            </div>
                            <div class="col-md-4">
                                <input type="text" class="to-date form-control" name="date_to" placeholder="To" {if isset($to)}value="{$to}"{/if}>
                            </div>
                            <div class="col-md-4">
                                <input type="submit" value="Pilih" class="btn btn-success">
                                <a href="{base_url('report/pinjam-bendera/detail')}/{$id_proposal}" class="btn btn-warning">Reset</a>
                            </div>
                        </div>
                    </div>
                </form>

                <hr>

                <div class="datatable-tools">
                    <table class="table">
                        <thead>
                            <tr>
                                <th>No</th>
                                <th>No Faktur</th>
                                <th>Customer</th>
                                <th>Nama Staff</th>
                                <th>Tanggal Transaksi</th>
                                <th>Jatuh Tempo</th>
                                <th>Total</th>
                                <th>DPP</th>
                                <th>PPN</th>
                                <th>Discount</th>
                                <th>Grand Total</th>
                                <th>Paid</th>
                                <th>Detail</th>
                            </tr>
                        </thead>
                        <tbody>

                        {assign var=total value=0}
                        {assign var=val value=1}
                        {foreach $penjualan as $key }

                            <tr>
                                <td>{$val}</td>
                                <td>{$key->id_sales_order}</td>
                                <td>{$key->customer_name}</td>
                                <td>{$key->staff_name}</td>
                                <td>{$key->date}</td>
                                <td>{$key->due_date}</td>
                                <td>Rp {$key->total|number_format:0}</td>
                                <td>Rp {$key->dpp|number_format:0}</td>
                                <td>Rp {$key->ppn|number_format:0}</td>
                                <td>Rp {$key->discount_price|number_format:0}</td>
                                <td>Rp {$key->grand_total|number_format:0}</td>
                                <td>Rp {$key->paid|number_format:0}</td>
                                <td>
                                    <div class="table-controls">
                                        <a href="{base_url('report/penjualan-detail/')}/{$key->id_sales_order}"
                                           class="btn btn-link btn-icon btn-xs tip" title="Detail">
                                            <i class="icon-list"></i>
                                        </a>

                                    </div>
                                </td>
                            </tr>
                            {assign var=val value=$val+1}
                            {assign var=total value=$total+$key->grand_total}
                        {/foreach}

                        </tbody>
                    </table>
                </div>

                <div class="col-sm-8">
                    <table class="table">
                        <tbody>
                        {if isset($from)}
                        <tr>
                            <th>Total {$title} Mulai "{$from} hingga {$to}":</th>
                            <td class="text-right">Rp {$total|number_format:0}</td>
                        </tr>
                        {/if}
                        <tr>
                            <th>Total :</th>
                            <td class="text-right"><h6>Rp {$total_penjualan|number_format:0}</h6></td>
                        </tr>
                        </tbody>
{'fraction_non_alphanumeric': 0.13316831683168318, 'fraction_numerical': 0.004158415841584159, 'mean_word_length': 0.8102150537634408, 'pattern_counts': {'":': 2, '<': 247, '<?xml version=': 0, '>': 273, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 22, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4891267', 'n_tokens_mistral': 2609, 'n_tokens_neox': 2435, 'n_words': 391}