copy dari repo om Irfan
This commit is contained in:
@@ -0,0 +1,578 @@
|
||||
<?php
|
||||
if ($this->session->userdata('username') != null) {
|
||||
?>
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>MANAJEMEN KUARTAL</title>
|
||||
<meta name="keywords" content="HTML5 Admin Template" />
|
||||
<meta name="description" content="Porto Admin - Responsive HTML5 Template">
|
||||
<meta name="author" content="okler.net">
|
||||
|
||||
<!-- Mobile Metas -->
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
||||
|
||||
<!-- Vendor CSS -->
|
||||
<link rel="stylesheet" href="<?php echo base_url('') ?>assets/vendor/bootstrap/css/bootstrap.css" />
|
||||
<link rel="stylesheet" href="<?php echo base_url('') ?>assets/vendor/font-awesome/css/font-awesome.css" />
|
||||
<link rel="stylesheet" href="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.css" />
|
||||
<link rel="stylesheet" href="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/css/datepicker3.css" />
|
||||
|
||||
<!-- Specific Page Vendor CSS -->
|
||||
<link rel="stylesheet" href="<?php echo base_url('') ?>assets/vendor/select2/select2.css" />
|
||||
<link rel="stylesheet" href="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/css/datatables.css" />
|
||||
<link rel="stylesheet" href="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.css" />
|
||||
<link rel="stylesheet" href="<?php echo base_url('') ?>assets/vendor/bootstrap-multiselect/bootstrap-multiselect.css" />
|
||||
|
||||
<!-- Theme CSS -->
|
||||
<link rel="stylesheet" href="<?php echo base_url('') ?>assets/stylesheets/theme.css" />
|
||||
|
||||
<!-- Skin CSS -->
|
||||
<link rel="stylesheet" href="<?php echo base_url('') ?>assets/stylesheets/skins/default.css" />
|
||||
|
||||
<!-- Theme Custom CSS -->
|
||||
<link rel="stylesheet" href="<?php echo base_url('') ?>assets/stylesheets/theme-custom.css">
|
||||
|
||||
<!-- Head Libs -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/modernizr/modernizr.js"></script>
|
||||
|
||||
</head>
|
||||
<script src="<?= base_url() ?>assets/bower_components/jquery/jquery-3.3.1.min.js"></script>
|
||||
<script src="<?= base_url() ?>assets/bower_components/sweetalert2/sweetalert2.all.min.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
let base_url = '<?= base_url() ?>';
|
||||
</script>
|
||||
|
||||
<body>
|
||||
<section class="body">
|
||||
|
||||
<!-- start: header -->
|
||||
<?php $this->load->view('template/header'); ?>
|
||||
<!-- end: header -->
|
||||
|
||||
<div class="inner-wrapper">
|
||||
<!-- start: sidebar -->
|
||||
<?php $this->load->view('template/sidebar'); ?>
|
||||
<!-- end: sidebar -->
|
||||
|
||||
<section role="main" class="content-body">
|
||||
<header class="page-header">
|
||||
<h2><strong>Detail Perhitungan | </strong><strong class="text-warning"><?=$nama_kuartal?></strong> | <strong class="text-info"><?=$nama_panggilan_karyawan?></strong></h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>index.php">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li><span>Detail Perhitungan</span></li>
|
||||
</ol>
|
||||
|
||||
<a class="sidebar-right-toggle" data-open="sidebar-right"><i class="fa fa-chevron-left"></i></a>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<!-- start: page -->
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<section class="panel panel-featured panel-featured-quartenary">
|
||||
<header class="panel-heading">
|
||||
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('') ?>index.php/ManagePenjualan/dataManajemenKuartal_ICT_A1"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
<?php if ($status_kuartal==NULL) { ?>
|
||||
<h2 class="panel-title"><strong>DETAIL PERHITUNGAN</strong></h2>
|
||||
<?php } else { ?>
|
||||
<h2 class="panel-title"><strong>DETAIL PERHITUNGAN</strong> | <strong class="text-success">(Sudah Dikunci <?=$kunci_kuartal?>)</strong></h2>
|
||||
<?php } ?>
|
||||
</header>
|
||||
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="btn-group">
|
||||
<button type="button" class="btn btn-default text-primary"><strong>MASUK Rp <?=$uangMasukTotal?></strong></button>
|
||||
<button type="button" class="btn btn-default text-danger"><strong>KELUAR Rp <?=$uangKeluarTotal?></strong></button>
|
||||
<button type="button" class="btn btn-default text-dark"><strong>TOTAL GP Rp <?=$gpTotal?></strong></button>
|
||||
<?php if ($username!="fridho" AND $username!="ricky") { ?>
|
||||
<button type="button" class="btn btn-default text-quartenary"><strong>GP BARANG Rp <?=$subGpAm?></strong></button>
|
||||
<button type="button" class="btn btn-default text-info"><strong>GP JASA Rp <?=$subGpPs?></strong></button>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
<br><br>
|
||||
<div class="col-sm-12 text-right">
|
||||
<div class="btn-group">
|
||||
<button type="button" class="btn btn-default text-tertiary"><strong>AM Rp <?=$komisiAmTotal?> (<?=$komisiAm?>%)</strong></button>
|
||||
<button type="button" class="btn btn-default text-warning"><strong>PRESALES Rp <?=$komisiPsTotal?> (<?=$komisiPs?>%)</strong></button>
|
||||
</div>
|
||||
</div>
|
||||
<br><br><br>
|
||||
<?php if ($status_kuartal==NULL) { ?>
|
||||
<div class="col-sm-12">
|
||||
<div class="btn-group">
|
||||
<button type="button" class="btn btn-success" data-toggle="modal" data-target="#modal-tambah"><strong>Tambah Data <i class="fa fa-plus"></i></strong></button>
|
||||
<button type="button" class="btn btn-danger" data-toggle="modal" data-target="#modal-kurang"><strong>Kurangi Data <i class="fa fa-minus"></i></strong></button>
|
||||
<button type="button" class="btn btn-default text-quartenary" data-toggle="modal" data-target="#modal-cetak"><strong>Buat Excel <i class="fa fa-file-excel-o"></i></strong></button><br></br>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped mb-none" id="table1">
|
||||
<thead>
|
||||
|
||||
<th class="center dark">No</th>
|
||||
<th class="dark">Tanggal</th>
|
||||
<th class="dark">Nota Penjualan</th>
|
||||
<th class="dark">Kode Bukti</th>
|
||||
<th class="dark">Pelanggan</th>
|
||||
<th class="text-right dark">Nilai Penjualan</th>
|
||||
<th class="text-right dark">Biaya Barang</th>
|
||||
<th class="text-right dark">Biaya Proyek</th>
|
||||
<th class="text-right dark">Biaya Fee</th>
|
||||
<th class="dark">Kode Pelunasan</th>
|
||||
<th class="dark">Tanggal Lunas</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($penjualan) || is_object($penjualan)) {
|
||||
$no = 1;
|
||||
foreach ($penjualan as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['TGLPENJUALAN']; ?></td>
|
||||
<td><?= $key['NOTAPENJUALAN']; ?></td>
|
||||
<?php if ($key['PRID']==NULL) { ?>
|
||||
<td><strong class="text-quartenary"><?= $key['KODE_SO']; ?></strong></td>
|
||||
<?php } else { ?>
|
||||
<td><strong class="text-quartenary"><?= $key['KODE_SO']; ?><strong><br><strong class="text-secondary">(<?= $key['KODE_PROYEK']; ?>)</strong></td>
|
||||
<?php } ?>
|
||||
<?php if ($key['TYPE_PELANGGAN']=="0") { ?>
|
||||
<td><strong class="text-primary">Corporate</strong> : <br><?= $key['NAMA_PELANGGAN'] ?> (<?= $key['NAMA_KOTA'] ?>)</td>
|
||||
<?php } else if ($key['TYPE_PELANGGAN']=="1") { ?>
|
||||
<td><strong class="text-success">Dealer</strong> : <br><?= $key['NAMA_PELANGGAN'] ?> (<?= $key['NAMA_KOTA'] ?>)</td>
|
||||
<?php } else if ($key['TYPE_PELANGGAN']=="2") { ?>
|
||||
<td><strong class="text-warning">User</strong> : <br><?= $key['NAMA_PELANGGAN'] ?> (<?= $key['NAMA_KOTA'] ?>)</td>
|
||||
<?php } ?>
|
||||
<?php $uangmasuk = $key['UANGMASUK']; $uangmasuk = number_format($uangmasuk, 2); $uangkeluarbarang = $key['UANGKELUARBARANG'];
|
||||
$uangkeluarbarang = number_format($uangkeluarbarang, 2); $uangkeluarkasbank = $key['UANGKELUARKASBANK']; $uangkeluarkasbank = number_format($uangkeluarkasbank, 2);?>
|
||||
<td class="text-right text-primary"><strong><?= $uangmasuk; ?></strong></td>
|
||||
<td class="text-right text-danger"><strong><?= $uangkeluarbarang; ?></strong></td>
|
||||
<td class="text-right text-danger"><strong><?= $uangkeluarkasbank; ?></strong></td>
|
||||
<td class="text-right text-danger"><strong><?= $key['FEE']; ?></strong></td>
|
||||
<td><?= $key['KODEPELUNASAN']; ?></td>
|
||||
<td><?= $key['TGLPELUNASAN']; ?></td>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="modal fade" id="modal-tambah">
|
||||
<?= form_open('ManagePenjualan/simpandata_IA2', array('id' => 'formpenjualan'), array('method' => 'add')); ?>
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<h4 class="panel-title"><strong>Tambah Data</strong></h4>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<input type="hidden" name="id_kuartal" class="form-control" value="<?= $id_kuartal?>">
|
||||
<label class="col-md-2 control-label"><strong>Kode SO</strong> <span class="required">*</span></label>
|
||||
<div class="col-md-10">
|
||||
<select data-plugin-selectTwo name="id_so" id="ID_SO" class="form-control populate" data-plugin-multiselect data-plugin-options='{ "enableCaseInsensitiveFiltering": true }' required>
|
||||
<option value="" selected>Pilih Kode So</option>
|
||||
<?php if (is_array($so) || is_object($so)) {
|
||||
foreach ($so as $key) { ?>
|
||||
<option value="<?= $key['ID_SO'] ?>" ><?= $key['KODE_SO'] ?> | <?= $key['INV_PENJUALAN'] ?> | <?= $key['NAMA_PELANGGAN'] ?></option>
|
||||
<?php }
|
||||
} ?>
|
||||
</select>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-success"><strong>Tambah</strong> <i class="fa fa-plus"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
|
||||
<div class="modal fade" id="modal-kurang">
|
||||
<?= form_open('ManagePenjualan/kurangdata_IA2', array('id' => 'formpenjualan'), array('method' => 'add')); ?>
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<h4 class="panel-title"><strong>Kurangi Data</strong></h4>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<input type="hidden" name="id_kuartal" class="form-control" value="<?= $id_kuartal?>">
|
||||
<label class="col-md-2 control-label"><strong>Kode SO</strong> <span class="required">*</span></label>
|
||||
<div class="col-md-10">
|
||||
<select data-plugin-selectTwo name="id_mk" id="ID_MK" class="form-control populate" data-plugin-multiselect data-plugin-options='{ "enableCaseInsensitiveFiltering": true }' required>
|
||||
<option value="" selected>Pilih Kode So</option>
|
||||
<?php if (is_array($mk) || is_object($mk)) {
|
||||
foreach ($mk as $key) { ?>
|
||||
<option value="<?= $key['ID_MK'] ?>" ><?= $key['KODE_SO'] ?> | <?= $key['INV_PENJUALAN'] ?> | <?= $key['NAMA_PELANGGAN'] ?></option>
|
||||
<?php }
|
||||
} ?>
|
||||
</select>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-danger"><strong>Kurang</strong> <i class="fa fa-minus"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
|
||||
<div class="modal fade" id="modal-cetak" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<?= form_open('ManagePenjualan/simpan_excel_manajemenkuartal', array('method' => 'post'), array('id' => 'formpenjualan')); ?>
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<h2 class="panel-title"><strong>Buat Excel</strong></h2>
|
||||
</header>
|
||||
|
||||
<div class="panel-body">
|
||||
<input type="hidden" name="id_kuartal" class="form-control" value="<?= $id_kuartal?>">
|
||||
<input type="hidden" name="id_karyawan" class="form-control" value="<?= $id_karyawan?>">
|
||||
<input type="hidden" name="username" class="form-control" value="<?= $username?>">
|
||||
<div class="form-group">
|
||||
<label class="col-md-3 control-label"><strong>Jenis Laporan</strong> <span class="required">*</span></label>
|
||||
<div class="col-md-9">
|
||||
<select data-plugin-selectTwo name="jenis_laporan" id="JENIS_LAPORAN" class="form-control populate">
|
||||
<option value="0" selected>Perhitungan GP</option>
|
||||
<option value="1">Detail Penjualan</option>
|
||||
<option value="2">Biaya Barang</option>
|
||||
<option value="3">Biaya Proyek</option>
|
||||
</select>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<h4><label class="col-md-12 control-label"><strong>Apakah ingin cetak Data?</strong></label></h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitCetak" id="SubmitCetak" formtarget="_blank" class="btn btn-default"><strong>Laporan</strong> <i class="fa fa-file-excel-o"></i></a></button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
<?php $this->load->view('template/sidebar_right'); ?>
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-multiselect/bootstrap-multiselect.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<?php $this->load->view('template/notification'); ?>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
<?php if ($this->session->flashdata('success')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Data berhasil <?= $this->session->flashdata('success'); ?>.',
|
||||
type: 'success',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('failed')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Data gagal <?= $this->session->flashdata('failed'); ?>, hubungi Administrator',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('latest')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Menu tidak valid, silahkan refresh Browser.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('data_lock')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Data berhasil <?= $this->session->flashdata('data_lock'); ?>. Kembali ke Menu Awal.',
|
||||
type: 'warning',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('data_lock_all')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Data berhasil <?= $this->session->flashdata('data_lock'); ?> semua. Kembali ke Menu Awal.',
|
||||
type: 'warning',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('not_zero_negative')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Nilai tidak valid, silahkan Check kembali.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('not_valid')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Data utama berubah, kembali ke Menu Awal.',
|
||||
type: 'warning',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('data_used_kuartalso')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Data SO sudah digunakan di Kuartal lain.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('data_used_pka')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Data terpakai Piutang Karyawan, proses dihentikan.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('data_used_hpa')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Data terpakai Kasbank Hutang Pajak, proses dihentikan.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('date_locked')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Data sudah berbeda Bulan, proses dihentikan.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('fee_pda_error')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Nilai Fee melebihi sisa Piutang, proses dihentikan.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('inventaris_null_error')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Nilai Inventaris kosong, proses dihentikan.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('inventaris_penyusutan_error')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Nilai Penyusutan melebihi Nilai Inventaris, proses dihentikan.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('kendaraan_null_error')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Nilai Kendaraan kosong, proses dihentikan.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('kendaraan_penyusutan_error')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Nilai Penyusutan melebihi Nilai Kendaraan, proses dihentikan.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('ruko_penyusutan_error')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Nilai Penyusutan melebihi Nilai Ruko, proses dihentikan.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('ruko_null_error')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Nilai Ruko Mangga Dua kosong, proses dihentikan.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('dpj_pelanggan_error')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Data Pelanggan DP Penjualan tidak sesuai, proses dihentikan.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('dpj_nilai_error')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Sisa Piutang tidak sesuai dengan Nilai DP, proses dihentikan.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('dpb_supplier_error')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Data Supplier DP Pembelian tidak sesuai, proses dihentikan.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('dpb_nilai_error')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Sisa Hutang tidak sesuai dengan Nilai DP, proses dihentikan.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
});
|
||||
|
||||
$('#table1').dataTable( {
|
||||
"paging": false
|
||||
} );
|
||||
|
||||
$('#SubmitCetak').click(function() {
|
||||
var st = $('#jenis_laporan').val();
|
||||
|
||||
if (st != '') {
|
||||
$('#modal-cetak').modal('toggle');
|
||||
}
|
||||
});
|
||||
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
<?php
|
||||
} else {
|
||||
echo "<script>alert('Akses ditolak')</script>";
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user