Update various controllers and scripts; modify last modified dates, enhance JSON responses, and adjust PPN handling for improved functionality
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
Description : Laporan Mutasi Stok Barang
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
Created Date : July 16th, 2011.
|
||||
Last Modified : October 12th, 2026.
|
||||
Last Modified : November 4th, 2026.
|
||||
|
||||
(c) 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
@@ -83,6 +83,18 @@ class MutasiController {
|
||||
$this->app->json($ajson);
|
||||
}
|
||||
|
||||
public function scan_produk() {
|
||||
$tcari = Param::Get("Cari_Produk", "");
|
||||
$scandata = [ 'InvID'=>0, 'Nama_Produk'=>"" ];
|
||||
|
||||
// Cari by SKU + Barcode
|
||||
// InvID : Nama_Produk
|
||||
$_row = $this->db->fetchRow("SELECT P.InvID,P.Nama_Lengkap Nama_Produk FROM (SELECT * FROM vi_inv_produk WHERE Aktif=1 AND Barcode_Nama LIKE ?) P", ['%'.$tcari.'%']);
|
||||
if ($_row) $scandata = array_merge($scandata, $_row->getData());
|
||||
|
||||
$this->app->json( $scandata );
|
||||
}
|
||||
|
||||
private function prepare() {
|
||||
$apre = [
|
||||
'id_inv' => Param::Int("InvID", 0),
|
||||
@@ -198,7 +210,11 @@ class MutasiController {
|
||||
<div class="row mb-1">
|
||||
<label class="col-sm-4 col-lg-3 col-form-label" for="CabID">Nama Cabang</label>
|
||||
<div class="col">'.$tcab.'</div>
|
||||
</div>
|
||||
</div>';
|
||||
if (isMobile()) {
|
||||
$ajson['html'] .= '<div class="row mb-1"><div class="col"><div id="qr-reader"></div></div></div>';
|
||||
}
|
||||
$ajson['html'] .= '
|
||||
<div class="row mb-1">
|
||||
<label class="col-sm-4 col-lg-3 col-form-label" for="Nama_Produk">Nama Barang</label>
|
||||
<div class="col"><div class="input-group">'.$tproduk.'<button id="butBrowProduk" class="btn btn-info" type="button"><i class="bi-bag"></i></button></div></div>
|
||||
|
||||
Reference in New Issue
Block a user