Comments (9)
Oh oke, saya mau coba. :D
from dompet.
Terima kasih sebelumnya mas. 🙏
from dompet.
mas @satyakresna, issue ini sudah bisa kita closed dengan PR #21 yang sudah merged. 👍
from dompet.
Betul mas, di class Policy nya sudah dibuat seperti itu CategoryPolicy.php#L58-L62. Tujuannya agar transaksi tidak error ketika kategorinya dihapus.
Atau mas @satyakresna ada masukan terkait hal ini?
from dompet.
Kalau dari saya saat ini lagi ingin menghapus kategori transaksi Jenius di aplikasinya, hanya saja sudah ada daftar transaksi walaupun hanya sekitar 10 baris. Cuma, saya rada malas kalau hapus satu per satu. Bagaimana kalau kita menghapus sebuah kategori yang sudah ada transaksi tetapi tidak benar" dihapus di database? Alias ada bantuan soft delete.
from dompet.
Bisa sih, cuman mengubah struktur table lagi ya.
Gimana kalau gini: Kita kasih checbox "Hapus bersama transaksinya" saat mau hapus kategori. Secara umum kira-kira begini:
- Fitur hapus kategori dibuka (walapun ada transaksi).
- Tampil informasi jumlah transaksi pada kategori ini
- Checkbox "Hapus semua transaksinya".
- Jika checbox dicentang, maka semua transaksinya ikut dihapus.
- Jika checbox tidak dicentang, maka semua transaksi diset
null
pada kolom category_id nya.
How about it, mas?
from dompet.
Saya lihat itu ide yang bagus mas. Kita bisa coba ini.
from dompet.
Mau coba contribute dengan PR mas @satyakresna? Hehe..
from dompet.
Sip, sama" mas.
from dompet.
Related Issues (19)
- Bikin API HOT 2
- [PROPOSAL] Halaman Laporan Transaksi Tahunan HOT 1
- Navbar Break
- Apakah ini bug? HOT 12
- [Feedback] Sebaiknya pakai input type number HOT 3
- Apakah ini juga bug? #2 HOT 4
- Error saat membuka list transaksi berdasarkan kategori HOT 8
- [PROPOSAL] User can filter transaction with no category or no partner
- [PROPOSAL] User can search transaction for all time HOT 1
- [TANYA] Seputar autentikasi dan permasalahan logout HOT 5
- [BUG] Error on Report Menu for MySQL 5.7 HOT 1
- [RF] Add ability to manage loan HOT 6
- Some deprecation/abandonment warnings when installing with Composer HOT 1
- Unable to prepare route [change-password] for serialization. Another route has already been assigned name [password.change]. HOT 4
- [PROPOSAL] Restructure Menu by Creating a Settings Page HOT 1
- [PROPOSAL] Dynamic Currency Code based on User Settings HOT 1
- [PROPOSAL] Multi Login Feature
- Dompet
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dompet.