Last active
August 25, 2022 10:57
-
-
Save defrindr/23e8e8ef4bed8d25b9f239ef81514af6 to your computer and use it in GitHub Desktop.
Step to Reproduce
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. import file (insert) tambahan.sql | |
2. tambahkan menu : | |
- cashflow : dengan controller menuju ke "cashflow" | |
- cashflow (Fungsi) : dengan controller menuju ke "cashflow-fungsi" | |
3. atur rbac: | |
- centang menu cashflow & seluruh aksi nya | |
- centang seluruh aksi di cashflow (Fungsi) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Adminer 4.6.2 MySQL dump | |
SET NAMES utf8; | |
SET time_zone = '+00:00'; | |
SET foreign_key_checks = 0; | |
SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO'; | |
CREATE TABLE `t_cashflow` ( | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`cashflow_kategori_id` int(11) NOT NULL, | |
`tanggal` date NOT NULL, | |
`keterangan` text NOT NULL, | |
`jumlah` int(11) DEFAULT NULL, | |
`fungsi` varchar(150) DEFAULT NULL, | |
`jenis` int(1) NOT NULL COMMENT '0:debit;1:kredit', | |
`order` int(1) NOT NULL COMMENT '0', | |
`flag` int(11) NOT NULL DEFAULT '1', | |
PRIMARY KEY (`id`), | |
KEY `cashflow_kategori_id` (`cashflow_kategori_id`), | |
CONSTRAINT `t_cashflow_ibfk_1` FOREIGN KEY (`cashflow_kategori_id`) REFERENCES `t_cashflow_kategori` (`id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=latin1; | |
INSERT INTO `t_cashflow` (`id`, `cashflow_kategori_id`, `tanggal`, `keterangan`, `jumlah`, `fungsi`, `jenis`, `order`, `flag`) VALUES | |
(5, 2, '2022-08-23', 'Penjualan (Pembelian) Aktiva Tetap', 7000000, NULL, 1, 0, 1), | |
(6, 3, '2022-08-23', 'Kas diterima sebagai investasi oleh pemilik', 30000000, NULL, 0, 0, 1), | |
(7, 3, '2022-08-23', 'Penarikan oleh pemilik', 1500000, NULL, 1, 0, 1), | |
(9, 1, '0000-00-00', 'Alokasi Dana Debit Pembayaran Transaksi', NULL, 'alokasiDanaDebitPembayaranTransaksi', 0, 1, 1); | |
CREATE TABLE `t_cashflow_kategori` ( | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`nama` varchar(150) NOT NULL, | |
`order` int(11) NOT NULL DEFAULT '1', | |
`flag` int(11) NOT NULL DEFAULT '1', | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=latin1; | |
INSERT INTO `t_cashflow_kategori` (`id`, `nama`, `order`, `flag`) VALUES | |
(1, 'Arus Kas Dari Aktifitas Operasi', 1, 1), | |
(2, 'Arus Kas Dari Aktifitas investasi', 2, 1), | |
(3, 'Arus Kas dari aktifitas pendanaan', 3, 1); | |
ALTER TABLE `t_produk` | |
ADD `satuan_terkecil` int(1) NOT NULL DEFAULT '0', | |
ADD `rasio` int(11) NOT NULL AFTER `satuan_terkecil`, | |
ADD `rasio_terhadap` varchar(100) NOT NULL AFTER `rasio`; | |
-- 2022-08-25 04:53:58 | |
ALTER TABLE `t_produk` | |
CHANGE `rasio_terhadap` `rasio_terhadap` varchar(100) COLLATE 'utf8_unicode_ci' NULL AFTER `rasio`; | |
ALTER TABLE `t_produk` | |
CHANGE `rasio` `rasio` int(11) NULL AFTER `satuan_terkecil`; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment