model_reseller->pembelian($this->session->id_reseller)->row_array();
$penjualan_perusahaan = $this->model_reseller->penjualan_perusahaan($this->session->id_reseller)->row_array();
$penjualan = $this->model_reseller->penjualan($this->session->id_reseller)->row_array();
$modal_perusahaan = $this->model_reseller->modal_perusahaan($this->session->id_reseller)->row_array();
$modal_pribadi = $this->model_reseller->modal_pribadi($this->session->id_reseller)->row_array();
$modal_pribadi2 = $this->model_reseller->modal_pribadi2()->row_array();
$set = $this->db->query("SELECT * FROM rb_setting where aktif='Y'")->row_array();
?>
No |
Kode Transaksi |
Kurir |
Status |
Total + Ongkir |
model_reseller->penjualan_list_pusat_top();
foreach ($record->result_array() as $row) {
if ($row['proses'] == '0') {
$proses = 'Pending';
$status = 'Menunggu Konfirmasi';
$icon = 'star-empty';
$ubah = 1;
} elseif ($row['proses'] == '1') {
$proses = 'Selesai';
$status = 'Selesai';
$icon = 'star text-yellow';
$ubah = 0;
} elseif ($row['proses'] == '2') {
$proses = 'Selesai';
$status = 'Selesai';
$icon = 'star text-yellow';
$ubah = 0;
}
$total = $this->db->query("SELECT sum((a.harga_jual*a.jumlah)-a.diskon) as total FROM `rb_penjualan_detail` a where a.id_penjualan='$row[id_penjualan]'")->row_array();
echo "$no |
$row[kode_transaksi] |
$row[kurir] - $row[service] |
$proses |
Rp " . rupiah($total['total'] + $row['ongkir']) . " |
";
$no++;
}
?>
Lihat
Semua
No |
Kode Transaksi |
Kurir |
Status |
Total + Ongkir |
model_reseller->penjualan_list_konsumen_top($this->session->id_reseller, 'reseller');
foreach ($record->result_array() as $row) {
if ($row['proses'] == '0') {
$proses = 'Pending';
$status = 'Proses';
$icon = 'star-empty';
$ubah = 1;
} elseif ($row['proses'] == '1') {
$proses = 'Proses';
$status = 'Pending';
$icon = 'star text-yellow';
$ubah = 0;
} elseif ($row['proses'] == '2') {
$proses = 'Konfirmasi';
$status = 'Proses';
$icon = 'star text-yellow';
$ubah = 0;
} elseif ($row['proses'] == '3') {
$proses = 'Selesai';
$status = 'Selesai';
$icon = 'star text-yellow';
$ubah = 0;
}
$total = $this->db->query("SELECT sum((a.harga_jual*a.jumlah)-a.diskon) as total FROM `rb_penjualan_detail` a where a.id_penjualan='$row[id_penjualan]'")->row_array();
echo "$no |
$row[kode_transaksi] |
$row[kurir] - $row[service] |
$proses |
Rp " . rupiah($total['total'] + $row['ongkir']) . " |
";
$no++;
}
?>
Lihat
Semua