Update metode pembayaran

This commit is contained in:
2023-09-09 15:42:51 +07:00
parent 375a22ef69
commit 8287bff759
3 changed files with 20 additions and 8 deletions

View File

@@ -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];
}
}