Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dashboard template and currency format in Helper class #44

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Isnotcristhianr
Copy link

No description provided.

@@ -9,7 +9,7 @@ class Helper
{
public static function convertToRupiah($price)
{
return 'Rp. '.number_format($price, 2, ',', '.');
return '$. '.number_format($price, 2, ',', '.');
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since it's convertToRupiah, it should've been prefixed with Rp. (Rupiah), we can add one more static method for creating dollar convertor if you want, and im open for it.

If we want to support more than 1 convertor, we can find package that has already create it.

@@ -29,16 +29,16 @@ public function definition()
'D',
];
$price = [
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's keep this change on cloned repo only i think? since overall of this app built with rupiah

@@ -0,0 +1 @@
http://[::1]:5173
Copy link
Owner

@WailanTirajoh WailanTirajoh Jun 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can ignore this file on .gitignore i guess, feel free to add that there.

@WailanTirajoh
Copy link
Owner

Anyway thankyou for the PR! feel free to discus

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants