diff --git a/app/Helpers/Helperku.php b/app/Helpers/Helperku.php
index 8cda07b..78b60b2 100644
--- a/app/Helpers/Helperku.php
+++ b/app/Helpers/Helperku.php
@@ -54,8 +54,14 @@ public static function get_stok_barang($id_barang,$jenis_barang = '')
}
+ public static function format_rupiah($angka)
+ {
- public function get_join_barang($id_barang,$table = '')
+ $hasil_rupiah = "Rp " . number_format($angka,2,',','.');
+ return $hasil_rupiah;
+ }
+
+ public static function get_join_barang($id_barang,$table = '')
{
$data = DB::table('tbl_barang')
diff --git a/app/Http/Controllers/BarangController.php b/app/Http/Controllers/BarangController.php
index 944b93d..b68e392 100644
--- a/app/Http/Controllers/BarangController.php
+++ b/app/Http/Controllers/BarangController.php
@@ -56,7 +56,7 @@ public function store(Request $request)
'harga'=>$request->harga_barang,
'nup'=>$request->nup,
'kategori_simak_id'=>$request->kategori_simak,
- 'kode_barang'=>$request->kode_barang
+ 'kodebarang'=>$request->kode_barang
);
$insert = DB::table('tbl_barang')->insert($data);
@@ -109,9 +109,9 @@ public function updates_barang(Request $request)
'tanggal_masuk'=>$request->tanggal_masuk,
'keterangan'=>$request->keterangan,
'image'=>$fileName,
- 'kode_barang'=>$request->kode_barang,
+ 'kodebarang'=>$request->kode_barang,
'kategori_simak_id'=>$request->kategori_simak,
- 'harga'=>$request->harga_barang,
+ 'harga'=>$request->harga,
'nup'=>$request->nup,
);
@@ -135,9 +135,9 @@ public function updates_barang(Request $request)
'lokasi'=>$request->lokasi,
'tanggal_masuk'=>$request->tanggal_masuk,
'keterangan'=>$request->keterangan,
- 'kode_barang'=>$request->kode_barang,
+ 'kodebarang'=>$request->kode_barang,
'kategori_simak_id'=>$request->kategori_simak,
- 'harga'=>$request->harga_barang,
+ 'harga'=>$request->harga,
'nup'=>$request->nup,
);
diff --git a/resources/views/admin/barang/index.blade.php b/resources/views/admin/barang/index.blade.php
index 3be5ef0..41333b1 100644
--- a/resources/views/admin/barang/index.blade.php
+++ b/resources/views/admin/barang/index.blade.php
@@ -112,6 +112,22 @@