?>
<tr>
                                <td><?php 
        echo $no;
        ?>
</td>
                                <td><?php 
        echo $value['so_deskripsi'];
        ?>
</td>
                                <td style="text-align: right;"><?php 
        echo format_idr($value['so_hpp']);
        ?>
</td>
                                <td style="text-align: right;"><?php 
        echo format_idr($value['so_harga']);
        ?>
</td>
                            </tr>
                            <?php 
        $no++;
        $total_harga += $value['so_harga'];
    }
}
?>
                    <tr>
                        <td colspan="3" style="text-align: right;">TOTAL</td>
                        <td style="text-align: right;">
                            <?php 
echo number_format($total_harga, 2);
?>
        if ($data['spp_cetak_harga'] == '1') {
            ?>
                                    <td style="text-align: right;"><?php 
            echo format_idr($value['dsupp_harga']);
            ?>
</td>
                                    <td style="text-align: right;"><?php 
            echo format_idr($value['dsupp_diskon']);
            ?>
</td>
                                    <td style="text-align: right;"><?php 
            echo format_idr($value['dsupp_hpp']);
            ?>
</td>
                                    <td style="text-align: right;"><?php 
            echo format_idr($value['dsupp_subtotal']);
            ?>
</td>
                                <?php 
        }
        ?>
                                <td><?php 
        echo $value['rak_deskripsi'];
        ?>
</td>
                            </tr>
                            <?php 
        $no++;
        $total_harga += $value['dsupp_subtotal'];
    }
}
Beispiel #3
0
}
//$keterangan = (!empty($faktur->spk_descrip)) ? $faktur->spk_descrip : "";
//$jum = strlen($keterangan);
//$ket1 = substr($keterangan, 0, 30);
//$ket2 = substr($keterangan, 30, 30);
//$ket3 = substr($keterangan, 60, 30);
//$ket4 = substr($keterangan, 90, 30);
//$ket5 = substr($keterangan, 120, 30);
//$bayar = $faktur->byr_accessories + $faktur->byr_asuransi + $faktur->byr_um + $faktur->byr_lain;
//dealer((!empty($dealer->cb_name)) ? $dealer->cb_name : "", (!empty($dealer->cb_addr1)) ? $dealer->cb_addr1 : "", (!empty($dealer->cit_name)) ? $dealer->cit_name : "", (!empty($dealer->cb_phone1)) ? $dealer->cb_phone1 : "", (!empty($faktur->spk_spksno)) ? $faktur->spk_spksno : "",$reprint);
?>
<table style="width: 15cm; margin-left: auto;margin-right: auto;" >
    <tr>
        <td style="font-size: 11px; padding-left: 200px;">
            <?php 
echo "No.SPK:" . $data['spk_no'] . "," . date("d-m-Y", strtotime($data['spk_tgl'])) . ", OTR: " . format_idr($data['fpt_total']);
?>
 
        </td>
    </tr>
    <tr>
        <td style="font-size: 11px; padding-left: 200px;">
            <?php 
echo "No.kontrak:" . $data['spk_nokontrak'] . ", Sales: " . $data['kr_nama'];
?>
 
        </td>
    </tr>
</table>
<script>
    window.print();