'info', 'Produksi berjalan' => 'primary', 'QC / Finishing' => 'warning', 'Barang selesai' => 'success', 'Invoice / Tagihan' => 'dark', default => 'secondary' }; } $pdo = db(); $id = max(0, (int)($_GET['id'] ?? 0)); $stmt = $pdo->prepare('SELECT * FROM print_orders WHERE id = :id LIMIT 1'); $stmt->execute([':id' => $id]); $order = $stmt->fetch(); if (!$order) { http_response_code(404); echo 'Order tidak ditemukan.'; exit; } $statuses = ['Order diterima', 'SPK dibuat', 'Produksi berjalan', 'QC / Finishing', 'Barang selesai', 'Invoice / Tagihan']; $amount = ((float)$order['quantity'] * (float)$order['unit_price']) - (float)$order['discount']; $remaining = max(0, $amount - (float)$order['paid_amount']); $projectDescription = $_SERVER['PROJECT_DESCRIPTION'] ?? 'Detail order percetakan Kenanga Kreasindo.'; $projectImageUrl = $_SERVER['PROJECT_IMAGE_URL'] ?? ''; ?> Detail <?= e($order['order_no']) ?> — Kenanga Kreasindo
← Kembali

Detail Order

·


Pekerjaan

Project
Kategori
Qty
Ukuran
Bahan
Finishing
Deadline

Keuangan

Invoice
Total
Terbayar
Sisa Tagihan