Debug Pembelian System

1. Database Connection Test

✅ Database connected successfully

2. Tables Check

✅ Table 'pembelian' exists
✅ Table 'pembelian_detail' exists
✅ Table 'penjualan_pembelian_link' exists

3. Basic Insert Test

✅ Test insert berhasil, ID: 26
✅ Test data cleaned up

4. POST Data Check

No POST data (normal - this is GET request)

5. File Upload Directory Check

✅ Directory 'nota_pembelian/' already exists
✅ Directory 'nota_pembelian/' is writable

6. PHP Configuration

PHP Version: 8.0.30
Upload Max Filesize: 10M
Post Max Size: 10M
Max Execution Time: 30 seconds

Manual Test Form

No Pembelian:

Tanggal:

Supplier ID:

Keterangan:

Produk ID:

Qty Beli:

Satuan:

Harga Beli:

Test File: