copy dari repo om Irfan
This commit is contained in:
@@ -0,0 +1,684 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>PROSES | KEUANGAN</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>PPN | Sampai Tanggal <b style="color:Gold"><?=$tgl_view?></b></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>Rekap Pajak</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-success">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('') ?>index.php" class="text-dark"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
<h2 class="panel-title"><strong style="color:Green">PAJAK PPN PEMUNGUT</strong></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<?php if ($count>0) { ?>
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<div class="btn-group">
|
||||
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#modal-kunci"><strong>Kunci Data</strong> <i class="fa fa-lock"></i></button>
|
||||
<button type="button" class="btn btn-danger" data-toggle="modal" data-target="#modal-void"><strong>Void Data</strong> <i class="fa fa-unlock"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<table class="table table-bordered table-striped mb-none" id="table2">
|
||||
<thead>
|
||||
<th class="center default">No</th>
|
||||
<th width="200px" class="default">Nota</th>
|
||||
<th class="default text-right">DPP</th>
|
||||
<th class="default text-right">Tarif</th>
|
||||
<th class="default text-right">Jumlah</th>
|
||||
<th class="default">Pelanggan</th>
|
||||
<th width="220px" class="default">Keterangan</th>
|
||||
<th class="center default">PILIHAN</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($keuangan) || is_object($keuangan)) {
|
||||
$no = 1;
|
||||
foreach ($keuangan as $key) { ?>
|
||||
<tr>
|
||||
<?php if ($key['ID_DRPJ']==NULL) { ?>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<?php } else { ?>
|
||||
<td class="center"><?= $no; ?><br><b style="color:Blue"><i class="fa fa-check"></i></b></td>
|
||||
<?php } ?>
|
||||
<?php if ($key['ID_DRPJ']==NULL) { ?>
|
||||
<td><b style="color:DarkOrchid"><?= $key['INV_PENJUALAN']; ?></b><br><i>(<?= $key['TGLNOTA']; ?>)</i><br><b style="color:Chocolate"><?= $key['FP_PENJUALAN']; ?></b></td>
|
||||
<?php } else { ?>
|
||||
<td><b style="color:Blue"><?= $key['INV_PENJUALAN']; ?></b><br><i>(<?= $key['TGLNOTA']; ?>)</i></td>
|
||||
<?php } ?>
|
||||
<td class="text-dark text-right"><strong><?= $key['DPP']; ?></strong></td>
|
||||
<td class="text-success text-right"><strong><?= round($key['PPN_SO'],0); ?>%</strong></td>
|
||||
<td class="text-secondary text-right"><strong><?= $key['SUBTOTAL']; ?></strong></td>
|
||||
<?php if ($key['TYPE_PELANGGAN']=="0") { ?>
|
||||
<td><strong class="text-primary">Corporate</strong> : <br><?= $key['NAMA_PELANGGAN'] ?><br>(<?= $key['NAMA_KOTA'] ?>)</td>
|
||||
<?php } else if ($key['TYPE_PELANGGAN']=="1") { ?>
|
||||
<td><strong class="text-success">Dealer</strong> : <br><?= $key['NAMA_PELANGGAN'] ?><br>(<?= $key['NAMA_KOTA'] ?>)</td>
|
||||
<?php } else if ($key['TYPE_PELANGGAN']=="2") { ?>
|
||||
<td><strong class="text-warning">User</strong> : <br><?= $key['NAMA_PELANGGAN'] ?><br>(<?= $key['NAMA_KOTA'] ?>)</td>
|
||||
<?php } ?>
|
||||
<td style="color:Navy"><strong><?= $key['KET_PAJAK']; ?></strong></td>
|
||||
<td class="actions center">
|
||||
<button type="button" onclick="ketData('<?= $key['ID_PENJUALAN']; ?>','<?= $key['KET_PAJAK']; ?>')" class="btn btn-xs btn-warning" data-toggle="modal" data-target="#modal-ket"><i class="fa fa-book"></i></button>
|
||||
<?php if ($key['ID_DRPJ']==NULL) { ?>
|
||||
<button type="button" onclick="setData('<?= $key['ID_PENJUALAN']; ?>')" class="btn btn-xs btn-primary" data-toggle="modal" data-target="#modal-set"><i class="fa fa-check"></i></button>
|
||||
<?php } else { ?>
|
||||
<button type="button" onclick="ubahData('<?= $key['ID_DRPJ']; ?>','<?= $key['DPP_DRPJ']; ?>')" class="btn btn-xs btn-warning" data-toggle="modal" data-target="#modal-ubah"><i class="fa fa-pencil"></i></button>
|
||||
<button type="button" onclick="resetData('<?= $key['ID_DRPJ']; ?>')" class="btn btn-xs btn-danger" data-toggle="modal" data-target="#modal-reset"><i class="fa fa-rotate-left"></i></button>
|
||||
<?php } ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
<!-- Modal Isi Keterangan -->
|
||||
<div id="modal-ket" class="modal fade" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<?= form_open('ManageKeuangan/ketrekap_KC1', array('id' => 'formkeuangan'), array('method' => 'ketrekap_KC1')); ?>
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<h2 class="panel-title"><strong>Isi Keterangan</strong></h2>
|
||||
</header>
|
||||
<div class="modal-body">
|
||||
<input type="hidden" name="id_penjualanket" id="id_penjualanket" class="form-control">
|
||||
<div class="form-group">
|
||||
<div class="col-md-2">
|
||||
<label><strong>Keterangan</strong></label>
|
||||
</div>
|
||||
<div class="col-md-10">
|
||||
<textarea cols="3" rows="3" name="ket_pajak" id="ket_pajak" class="form-control" data-plugin-maxlength maxlength="128" autocomplete="off" placeholder="Kosongi jika tidak diperlukan"></textarea>
|
||||
<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-warning"><strong>Isi</strong> <i class="fa fa-book"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Modal Pilih -->
|
||||
<div id="modal-set" class="modal fade" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<?= form_open('ManageKeuangan/setrekap_KC1', array('id' => 'formkeuangan'), array('method' => 'setrekap_KC1')); ?>
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<h2 class="panel-title"><strong>Pilih Data</strong></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="modal-wrapper">
|
||||
<div class="modal-text">
|
||||
<input type="hidden" name="id_penjualanset" id="id_penjualanset" class="form-control">
|
||||
<h4>Apakah ingin pilih Data?</h4>
|
||||
</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-primary"><strong>Pilih</strong> <i class="fa fa-check"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Modal Reset -->
|
||||
<div id="modal-reset" class="modal fade" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<?= form_open('ManageKeuangan/resetrekap_KABC1', array('id' => 'formkeuangan'), array('method' => 'resetrekap_KABC1')); ?>
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<h2 class="panel-title"><strong>Reset Data</strong></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="modal-wrapper">
|
||||
<div class="modal-text">
|
||||
<input type="hidden" name="id_drpjset" id="id_drpjset" class="form-control">
|
||||
<h4>Apakah ingin reset Data?</h4>
|
||||
</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>Reset</strong> <i class="fa fa-rotate-left"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Modal Ubah -->
|
||||
<div class="modal fade" id="modal-ubah">
|
||||
<?= form_open('ManageKeuangan/ubahrekap_KABC1', array('id' => 'formkeuangan'), array('method' => 'ubahrekap_KABC1')); ?>
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<h4 class="panel-title"><strong>Ubah Data </strong><b class="text-danger">[Warna Merah harus diisi]</b></h4>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<input type="hidden" name="id_drpjed" id="id_drpjed" class="form-control">
|
||||
<label class="col-md-2 control-label"><strong class="text-danger">DPP</strong></label>
|
||||
<div class="col-md-10">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon">Rp</span>
|
||||
<input type="decimal" name="dpp_drpjed" id="dpp_drpjed" class="form-control" autocomplete="off" placeholder="Nilai DPP" required>
|
||||
</div>
|
||||
<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-warning"><strong>Ubah</strong> <i class="fa fa-pencil"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
|
||||
<!-- Modal Kunci -->
|
||||
<div class="modal fade" id="modal-kunci">
|
||||
<?= form_open('ManageKeuangan/kuncirekap_KC1', array('id' => 'formkeuangan'), array('method' => 'kuncirekap_KC1')); ?>
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<h4 class="panel-title"><strong>Kunci Data </strong><b class="text-danger">[Warna Merah harus diisi]</b></h4>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-2 control-label"><strong class="text-danger">Customer</strong></label>
|
||||
<div class="col-md-10">
|
||||
<select data-plugin-selectTwo name="id_customer" id="ID_CUSTOMER" class="form-control populate" required>
|
||||
<option value="" selected>Pilih Nama Customer</option>
|
||||
<?php if (is_array($customer) || is_object($customer)) {
|
||||
foreach ($customer as $key) { ?>
|
||||
<option value="<?= $key['ID_CUSTOMER'] ?>" ><?= $key['NPWP_CUSTOMER'] ?> | <?= $key['NAMA_CUSTOMER'] ?> (<?= $key['ALAMAT_CUSTOMER'] ?>)</option>
|
||||
<?php }
|
||||
} ?>
|
||||
</select>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-2">
|
||||
<label><strong class="text-danger">Tanggal</strong></label>
|
||||
</div>
|
||||
<div class="col-md-10">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
|
||||
<input type="date" name="tgl_rpj" id="TGL_RPJ" class="form-control" value="<?=$tgl?>" required>
|
||||
</div>
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-2">
|
||||
<label><strong>NTPN</strong></label>
|
||||
</div>
|
||||
<div class="col-md-10">
|
||||
<input type="text" name="ntpn_rpj" id="NTPN_RPJ" style="text-transform:uppercase" data-plugin-maxlength minlength="16" maxlength="16" placeholder="16 Karakter" class="form-control" autocomplete="off">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-2">
|
||||
<label><strong>ID BILLING</strong></label>
|
||||
</div>
|
||||
<div class="col-md-10">
|
||||
<input type="text" name="billing_rpj" id="BILLING_RPJ" style="text-transform:uppercase" data-plugin-maxlength minlength="15" maxlength="15" placeholder="15 Karakter" class="form-control" autocomplete="off">
|
||||
<small class="help-block"></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-2">
|
||||
<label><strong>SP2D</strong></label>
|
||||
</div>
|
||||
<div class="col-md-10">
|
||||
<input type="text" name="sp2d_rpj" id="SP2D_RPJ" style="text-transform:uppercase" data-plugin-maxlength minlength="15" maxlength="15" placeholder="15 Karakter" class="form-control" autocomplete="off">
|
||||
<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-primary"><strong>Kunci</strong> <i class="fa fa-lock"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
|
||||
<!-- Modal Void -->
|
||||
<div class="modal fade" id="modal-void">
|
||||
<?= form_open('ManageKeuangan/voidrekap_KABC1', array('id' => 'formkeuangan'), array('method' => 'voidrekap_KABC1')); ?>
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<h4 class="panel-title"><strong>Void Data </strong><b class="text-danger">[Warna Merah harus diisi]</b></h4>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<input type="hidden" name="jenis_rpj" id="jenis_rpj" value="3" class="form-control">
|
||||
<div class="col-md-2">
|
||||
<label><strong class="text-danger">Keterangan</strong></label>
|
||||
</div>
|
||||
<div class="col-md-10">
|
||||
<textarea cols="3" rows="3" name="void_rpj" id="VOID_RPJ" style="text-transform:uppercase" data-plugin-maxlength maxlength="64" placeholder="64 Karakter" class="form-control" autocomplete="off" required></textarea>
|
||||
<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>Void</strong> <i class="fa fa-unlock"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
<?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>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-maskedinput/jquery.maskedinput.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-maxlength/bootstrap-maxlength.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('data_lock')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Data berhasil <?= $this->session->flashdata('data_lock'); ?>. Silahkan Konfirmasi dengan Penerima Barang.',
|
||||
type: 'success',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('data_receive')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Data berhasil <?= $this->session->flashdata('data_receive'); ?>. Lihat Stok untuk perubahan barang.',
|
||||
type: 'success',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('not_zero_negative')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Nilai kurang dari/sama dengan 0.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('twin_item')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Kode Barang sama, silahkan Check kembali.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('retail_item')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Barang non-SN, tidak bisa dipotong part.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('latest')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Data mengalami perubahan, check kembali.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('over_qty')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Data melebihi jumlah stock, hubungi Team Gudang.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('ppn_check')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Setting PPN tidak sesuai, pastikan data benar.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('input_check')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Tidak ada Data yang terpilih.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('price_check')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Harga belum terisi, silahkan Check kembali.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('data_used')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Data sudah terpakai, tidak bisa diproses',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('sn_check')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'SN belum terisi, silahkan Check kembali.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('keluhan_update')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Data berhasil diperbaruhi.',
|
||||
type: 'success',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('keluhan_error')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Keluhan belum terisi.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('data_sns')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Ada SN yang belum selesai Service.',
|
||||
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('ntpn_error')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'NTPN sudah digunakan, isi dengan data lain.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('pkp_error')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Data yang terpilih, ada PKP yang berbeda.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('billing_error')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'ID Billing sudah digunakan, isi dengan data lain.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('sp2d_error')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'SP2D sudah digunakan, isi dengan data lain.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
});
|
||||
|
||||
$('#table1').dataTable( {
|
||||
"paging": false
|
||||
} );
|
||||
|
||||
$('#table2').dataTable( {
|
||||
"paging": false
|
||||
} );
|
||||
|
||||
function ketData(id_penjualan, ket_pajak) {
|
||||
document.getElementById("id_penjualanket").value = id_penjualan;
|
||||
document.getElementById("ket_pajak").value = ket_pajak;
|
||||
}
|
||||
|
||||
function setData(id_penjualan) {
|
||||
document.getElementById("id_penjualanset").value = id_penjualan;
|
||||
}
|
||||
|
||||
function resetData(id_drpj) {
|
||||
document.getElementById("id_drpjset").value = id_drpj;
|
||||
}
|
||||
|
||||
function ubahData(id_drpj, dpp_drpj) {
|
||||
document.getElementById("id_drpjed").value = id_drpj
|
||||
document.getElementById("dpp_drpjed").value = dpp_drpj;
|
||||
}
|
||||
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user