Sprove-Team / skripsi_be_sistem-informasi-konveksi

0 stars 0 forks source link

Remove `ayat_jurnal` and `bukti_pembayaran` in Get All Transaksi `/akuntansi/transaksi ` #3

Closed ekajaya740 closed 8 months ago

ekajaya740 commented 8 months ago

Problem

ayat_jurnal shouldn't shown in Get All transaksi because the data can get too large and too much information shown. I've created the detail page, so ayat jurnal can show there. Also remove the bukti_pembayaran field because It's not the plan to show bukti pembayaran at all transaksi.

Sample

{
    "data": {
        "transaksi": [
            {
                "id": "01HJBKDETQE27Q48V2BJC6K8NG",
                "keterangan": "utang usaha 2",
                "bukti_pembayaran": "", // Remove this
                "tanggal": "2023-12-30 22:17:03",
                "total_kredit": 150,
                "total_debit": 150,
                "ayat_jurnal": [ // Remove This
                    {
                        "ayat_jurnal_id": "01HJBKDETQE27Q48V2BKA3SN0J",
                        "akun_id": "01HJA89HFER1SHXPFA3Q2987JP",
                        "debit": 0,
                        "saldo": 150,
                        "kredit": 150
                    },
                    {
                        "ayat_jurnal_id": "01HJBKDETQE27Q48V2BMK7FF2M",
                        "akun_id": "01HJ626DN89EH1EQTY5SF6B6QH",
                        "debit": 150,
                        "saldo": 150,
                        "kredit": 0
                    }
                ]
            }
        ]
    },
    "message": "sukses mendapatkan data",
    "status": 200
}

Corroborating Evidence

This is screenshots of figma page for reference.

image
ekajaya740 commented 8 months ago

Mark this as resolved