|
Server : Apache/2.4.18 (Ubuntu) System : Linux canvaswebdesign 3.13.0-71-generic #114-Ubuntu SMP Tue Dec 1 02:34:22 UTC 2015 x86_64 User : oppastar ( 1041) PHP Version : 7.0.33-0ubuntu0.16.04.15 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, Directory : /var/www/indolok.id/application/views/ |
Upload File : |
<!DOCTYPE html>
<html>
<head>
<title><?= $title ?></title>
<style>
body {font-family:arial !important; font-size:12px;}
table {
border-collapse: collapse;
width: 100%;
font-family:arial; font-size:12px;
}
table th{
padding: 3px;
font-weight: bold;
text-align:left;
}
table td{
padding: 3px;
vertical-align: top;
font-family:arial; font-size:12px;
}
table.bordered {
border-collapse: collapse;
width: 100%;
}
table.bordered th{
border:1px solid #000;
padding: 3px;
font-weight: bold;
}
table.bordered td{
border:1px solid #000;
padding: 3px;
vertical-align: top;
}
table#productTable tr td span {
float:right;
}
.topTD {
width:210px;
}
.bottomTD {
width:265px;
}
</style>
</head>
<body>
<table>
<tr>
<td style="display: none;">
Kepada Yth.<br>
<?php if(!empty($customer->company_name)) : ?>
<?= ucwords($customer->company_name); ?><br>
<?= ucwords($customer->address); ?><br>
Mr/Mrs <?= ucwords($customer->name); ?>
<?php else : ?>
Mr/Mrs <?= ucwords($customer->name); ?><br>
<?= ucwords($customer->address); ?><br>
<?php endif; ?>
</td>
<td style="text-align: right;">
<img style="width:150px;" src="assets/admin/img/logo.png">
</td>
<tr>
</table>
<br />
<table style="margin-top: 20px;">
<tr>
<td>
<h2 style="text-align: center">
<span style="text-decoration: underline;"><?= $title ?></span><br>
<span style="font-size:13px;">ORDER ID : <?=$order->id_orders;?></span><br>
</h2>
</td>
<tr>
</table>
<br />
<table style="margin-top: 20px;">
<tr>
<td class="topTD">Status Pembayaran</td>
<td>
<?php
if($order->payment_status == 3 || $order->payment_status == 4 || $order->payment_status == 5) {
echo ': LUNAS';
} elseif($order->payment_status == 1) {
echo ': BELUM LUNAS';
} else {
echo ': BATAL';
}
?>
</td>
</tr>
<tr>
<td class="topTD">Tanggal Order</td>
<td>: <?=date('d F Y', strtotime($order->order_date));?></td>
</tr>
<?php
$customer = $this->db->select('*')->from('customers')->where('id_customers',$order->customer_id)->get()->row();
?>
<tr>
<td class="topTD">Kontak Pelanggan</td>
<td> : Name: <?php echo ucwords($order->recipient_name); ?><br>
Email: <a href="mailto:<?php echo $order->email; ?>"><?php echo $order->email; ?></a><br>
Phone: <?php echo $order->phone; ?><br>
KTP: <?php echo $customer->ktp; ?><br>
NPWP: <?php echo $customer->npwp; ?><br>
<?php if($customer->type=="corporate") : ?>
Company Name: <?= ucwords($customer->company_name) ?><br>
Address: <?= ucwords($customer->address) ?>
<?php endif ?>
</td>
</tr>
<tr>
<td class="topTD">Detail Pengiriman</td>
<td>: <?= ucwords($order->address); ?><br>
<?php
//get subdistrict
echo ucwords($order->subdistrict) . '. ';
//get district
echo ucwords($order->district) . '. ';
echo ucwords($order->province);
?>
</td>
</tr>
</table>
<br />
<table id="productTable" class="bordered" style="margin-top: 10px;">
<tr>
<th>Nama Barang</th>
<th>Qty</th>
<th>Harga</th>
<!-- <th>Ongkos Kirim</th> -->
<th>Sub Total</th>
<th>Dikirim Dari</th>
</tr>
<?php $count = 0; ?>
<?php $total_amount = 0; ?>
<?php foreach($orders_detail as $item) : ?>
<?php $count++; ?>
<tr>
<?php
$product = $this->db->select('*')->from('products')->where('id_products',$item->item_id)->get()->row();
?>
<td>
<?php if($item->is_backorder === 'yes') : ?>
Indent DP 100%
<br>
<?php endif; ?>
<?=$item->item_name;?><br>Item No : <?= $product->product_code?></td>
<td><?=$item->quantity;?> Pcs</td>
<td>IDR <?= number_format($item->item_price / 1.11);?></td>
<!-- <td>IDR <?php echo number_format($item->shipping_fee); ?></td> -->
<td>IDR <?= number_format($item->quantity * $item->item_price / 1.11);?></td>
<td>
<?php
$warehouse_name = $this->db->select('name')->from('warehouse')->where('id',$item->warehouse_id)->get()->row()->name;
$shipping_method= $this->db->select('name')->from('shipment_method')->where('id',$item->chosen_shipping_id)->get()->row()->name;
//echo ucfirst($warehouse_name.', '.ucfirst($shipping_method));
echo ucfirst($warehouse_name);
?>
<br />
<?php if($item->is_backorder === 'yes') : ?>
(Indent)
<?php else : ?>
(In Stock)
<?php endif; ?>
</td>
</tr>
<?php $total_amount = $total_amount + ($item->item_price / 1.11 * $item->quantity); endforeach; ?>
</table>
<table style="margin-top: 20px;">
<tr>
<td class="bottomTD">Total Produk</td>
<td>: IDR <?= number_format($total_amount);?></td>
</tr>
<tr>
<td class="bottomTD">PPN</td>
<td>: IDR <?= number_format($total_amount * 11/100);?></td>
</tr>
<?php if($order->birthday_promo_amount > 0) : ?>
<tr>
<td class="bottomTD">Birthday Promo <?= $order->birthday_promo_percentage;?>%</td>
<td>: -IDR <?= number_format($order->birthday_promo_amount);?></td>
</tr>
<tr>
<td class="bottomTD">Kode Voucher</td>
<td>: <?= $order->redeemed_voucher_code; ?></td>
</tr>
<?php endif; ?>
<?php if($order->redeemed_voucher_amount > 0) : ?>
<tr>
<td class="bottomTD">Voucher</td>
<td>: -IDR <?= number_format($order->redeemed_voucher_amount);?></td>
</tr>
<tr>
<td class="bottomTD">Kode Voucher</td>
<td>: <?= $order->redeemed_voucher_code; ?></td>
</tr>
<?php endif; ?>
<tr>
<td class="bottomTD">Total Ongkos Kirim</td>
<td>: IDR <?= number_format($order->shipping_fee);?></td>
</tr>
<?php if($order->free_shipping_fee > 0) : ?>
<tr>
<td class="bottomTD">Diskon Biaya Pengiriman</td>
<td>: -IDR <?= number_format($order->free_shipping_fee);?></td>
</tr>
<?php endif; ?>
<tr>
<td class="bottomTD"><b>Grand Total</b></td>
<td>: IDR <?php
$final_grand_total = 0;
$grand_total = ($total_amount + $order->shipping_fee) + ($total_amount * 11/100) - ($order->free_shipping_fee + $order->redeemed_voucher_amount + $order->birthday_promo_amount + $order->minus_reward_amount) + $order->ppn;;
if($grand_total > 0){
$final_grand_total = $grand_total;
}
echo number_format($final_grand_total);
if($final_grand_total == 0){
echo " (Free Order)";
}
?>
</td>
</tr>
</table>
<table style="margin-top: 20px;">
<tr>
<td class="bottomTD">Metode Pembayaran</td>
<td>: <?php echo ucfirst($order->payment_type),' ',ucfirst($order->payment_method); ?></td>
</tr>
<!-- <tr>
<td class="bottomTD">Informasi Tambahan</td>
<td>: <?php if($order->payment_type == 'Bank transfer') : ?>
<?php
if($order->payment_confirm == 1 ) {
echo 'Cust pay confirm: Yes';
} else {
echo 'Cust pay confirm: Not Yet';
}
?>
<?php elseif($order->payment_type == 'midtrans') : ?>
<?= ucfirst($order->payment_status_message); ?>
<?php endif; ?></td>
</tr> -->
<?php if ($customer->sales_id == NULL): ?>
<?php else: ?>
<tr>
<td>Sales ID</td>
<td>: <?= $customer->sales_id?></td>
</tr>
<?php endif ?>
</table>
<table style="margin-top: 20px;">
<tr>
<td>
<center><p><b>TERIMA KASIH TELAH BERBELANJA DI INDOLOK.ID</b></p><center>
</td>
</tr>
</table>
<table style="margin-top: 20px;">
<tr>
<td style="text-align: center;">
<p style="font-style: italic"><strong>This document is system generated, signature is not required</strong></p>
</td>
</tr>
</table>
<div style="position: absolute; top:950px; width: 100%">
<table>
<tr>
<td>
<img src="assets/admin/img/logo2.png">
</td>
<td>
<p>PT Indolok Bakti Utama<br>
Jalan Salemba Raya No. 32 <br>
Jakarta 10430<br>
Indonesia</p>
</td>
<td>
<p>Phone +62 21 314 8383 (Hunting)<br>
Fax +62 21 314 3737 (Hunting)<br>
24-hour Contact Center 0 804 1 338383<br>
VAT no ID 01.303.768.4-073.000 info@indolok.id<br>
www.indolok.id</p>
</td>
</tr>
</table>
</div>
</body>
</html>