Update metode pembayaran
This commit is contained in:
@@ -199,10 +199,22 @@ class Helper
|
||||
}
|
||||
}
|
||||
|
||||
public static function formatRupiah($angka)
|
||||
{
|
||||
public static function formatRupiah($angka) {
|
||||
return "Rp " . number_format($angka, 0, ',', '.');
|
||||
}
|
||||
|
||||
public static function sPaymentMethod($id) {
|
||||
$sPaymentMethod = [
|
||||
1 => 'Pribadi',
|
||||
2 => 'On-Site Payment',
|
||||
3 => 'OVO',
|
||||
4 => 'Asuransi',
|
||||
5 => 'Voucher',
|
||||
6 => 'ASO'
|
||||
];
|
||||
|
||||
return $sPaymentMethod[$id];
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user