Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

- Memisahkan data aset tetap yang sedang disusutkan dengan aset tetap… #54

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

t0n1zz
Copy link
Owner

@t0n1zz t0n1zz commented Dec 29, 2022

… yang sudah habis masa penyusutannya dan aset tetap yang telah dihapus dari laporan.

  • menambah tombol hapus dari laporan pada tabel aset tetap.
  • menambah input harga perolehan, bulan penyusutan, sisa penyusutan dan sisa bulan penyusutan pada form aset tetap.
  • menambah form input bukti pembelian pada aset tetap.
  • memperbaiki bug ubah lokasi dan ubah kondisi aset tetap.
  • menambah column pokok_penyusutan, bulan_penyusutan, sisa_penyusutan, sisa_bulan_penyusutan, nota dan hapus_dari_laporan.
  • menambah kelas HitungPenyusutan.php untuk menghitung penyusutan dengan command "php artisan hitung:penyusutan" yang dijalankan supervisor dengan jadwal setiap haari pada pukul 01:00. command -> php artisan hitung:penyusutan.
  • menambah kelas SisaBulanPenyusutan.php untuk Menambah Sisa Bulan Penyusutan yang kosong dengan data dari Bulan Penyusutan command -> "php artisan sisa:bulanpenyusutan"
  • menambah kelas SisaPenyusutan.php untuk Menambah Sisa Penyusutan yang Kosong pada Database dengan data Pokok Penyusutan. command -> "php artisan sisa:penyusutan"

query ->
CREATE TABLE IF NOT EXISTS aset_tetap (
id int(11) NOT NULL AUTO_INCREMENT, aset_id int(11) DEFAULT NULL, aktivis_id int(11) DEFAULT NULL, aktivis_id_pembeli int(11) DEFAULT NULL, aset_tetap_golongan_id int(11) DEFAULT NULL, aset_tetap_kelompok_id int(11) DEFAULT NULL, aset_tetap_jenis_id int(11) DEFAULT NULL, aset_tetap_lokasi_id int(11) DEFAULT NULL, kode varchar(255) DEFAULT NULL, name varchar(255) DEFAULT NULL, merk varchar(255) DEFAULT NULL, tipe varchar(255) DEFAULT NULL, kondisi varchar(255) DEFAULT NULL, gambar text, tanggal date DEFAULT NULL, harga double(20,0) DEFAULT NULL, pokok_penyusutan double(20,0) DEFAULT NULL, bulan_penyusutan double(20,0) DEFAULT NULL, sisa_penyusutan double(20,0) DEFAULT NULL, sisa_bulan_penyusutan double(20,0) DEFAULT NULL, nota text, keterangan text, hapus_dari_laporan timestamp NULL DEFAULT NULL, created_at timestamp NULL DEFAULT NULL, updated_at timestamp NULL DEFAULT NULL, deleted_at timestamp NULL DEFAULT NULL, PRIMARY KEY (id), KEY aset_tetap_aset_id_deleted_at (aset_id,deleted_at), KEY aset_tetap_kode_deleted_at (kode,deleted_at) ) ENGINE=InnoDB AUTO_INCREMENT=310 DEFAULT CHARSET=latin1;

… yang sudah habis masa penyusutannya dan aset tetap yang telah dihapus dari laporan.

- menambah tombol hapus dari laporan pada tabel aset tetap.
- menambah input harga perolehan, bulan penyusutan, sisa penyusutan dan sisa bulan penyusutan pada form aset tetap.
- menambah form input bukti pembelian pada aset tetap.
- memperbaiki bug ubah lokasi dan ubah kondisi aset tetap.
- menambah column pokok_penyusutan, bulan_penyusutan, sisa_penyusutan, sisa_bulan_penyusutan, nota dan hapus_dari_laporan.
- menambah kelas HitungPenyusutan.php untuk menghitung penyusutan dengan command "php artisan hitung:penyusutan" yang dijalankan supervisor dengan jadwal setiap haari pada pukul 01:00. command -> php artisan hitung:penyusutan.
- menambah kelas SisaBulanPenyusutan.php untuk Menambah Sisa Bulan Penyusutan yang kosong dengan data dari Bulan Penyusutan command -> "php artisan sisa:bulanpenyusutan"
- menambah kelas SisaPenyusutan.php untuk Menambah Sisa Penyusutan yang Kosong pada Database dengan data Pokok Penyusutan. command -> "php artisan sisa:penyusutan"

query ->
CREATE TABLE IF NOT EXISTS `aset_tetap` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `aset_id` int(11) DEFAULT NULL,
  `aktivis_id` int(11) DEFAULT NULL,
  `aktivis_id_pembeli` int(11) DEFAULT NULL,
  `aset_tetap_golongan_id` int(11) DEFAULT NULL,
  `aset_tetap_kelompok_id` int(11) DEFAULT NULL,
  `aset_tetap_jenis_id` int(11) DEFAULT NULL,
  `aset_tetap_lokasi_id` int(11) DEFAULT NULL,
  `kode` varchar(255) DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  `merk` varchar(255) DEFAULT NULL,
  `tipe` varchar(255) DEFAULT NULL,
  `kondisi` varchar(255) DEFAULT NULL,
  `gambar` text,
  `tanggal` date DEFAULT NULL,
  `harga` double(20,0) DEFAULT NULL,
  `pokok_penyusutan` double(20,0) DEFAULT NULL,
  `bulan_penyusutan` double(20,0) DEFAULT NULL,
  `sisa_penyusutan` double(20,0) DEFAULT NULL,
  `sisa_bulan_penyusutan` double(20,0) DEFAULT NULL,
  `nota` text,
  `keterangan` text,
  `hapus_dari_laporan` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `aset_tetap_aset_id_deleted_at` (`aset_id`,`deleted_at`),
  KEY `aset_tetap_kode_deleted_at` (`kode`,`deleted_at`)
) ENGINE=InnoDB AUTO_INCREMENT=310 DEFAULT CHARSET=latin1;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants