<?php

namespace App\Libraries;

class InvoiceGenerator {
    public function generateNomor($tipe) {
        // Format: INV-YYMM-0001
        $prefix = ($tipe == 'resmi') ? 'INV-R-' : 'INV-U-';
        return $prefix . date('ymd') . '-' . rand(1000, 9999);
    }
}