diff --git a/src/components/bid-record/BidRecordList.vue b/src/components/bid-record/BidRecordList.vue
index 53278b4..edc4102 100644
--- a/src/components/bid-record/BidRecordList.vue
+++ b/src/components/bid-record/BidRecordList.vue
@@ -54,7 +54,7 @@
{{ item.masa_bidaan }} |
{{ item.berat }}g |
- RM{{ item.hargabida }} |
+ RM{{ item.hargabida?.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",") || '' }} |
| Jumlah |
@@ -127,15 +127,26 @@
{{ marhun.marhun }} |
{{ marhun.karat }} |
{{ marhun.berat }}g |
- RM{{ marhun.hargaasas }} |
+ RM{{ marhun.hargaasas?.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",") || '' }} |
| Jumlah |
{{ theData.berat }}g |
- RM{{ theData.hargaasas }} |
+ RM{{ theData.hargaasas?.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",") || '' }} |
+
+
+
+
+
+
+ RM
+ {{theData.hargabida?.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",") || ''}}
+
+
+
diff --git a/src/components/cart/CartListNew.vue b/src/components/cart/CartListNew.vue
index 1f7f657..45b1321 100644
--- a/src/components/cart/CartListNew.vue
+++ b/src/components/cart/CartListNew.vue
@@ -65,8 +65,8 @@
{{ surat.berat }}g |
- RM{{ surat.hargaasas }} |
- RM{{ surat.hargabida }} |
+ RM{{ surat.hargaasas?.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",") || '' }} |
+ RM{{ surat.hargabida?.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",") || '' }} |
|
{{ data.karat }} |
{{ data.berat }}g |
- RM{{ data.hargaasas }} |
+ RM{{ data.hargaasas?.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",") || '' }} |
| Jumlah |
{{ theSurat.berat }}g |
- RM{{ theSurat.hargaasas }} |
+ RM{{ theSurat.hargaasas?.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",") || '' }} |
@@ -266,12 +266,7 @@
@@ -350,7 +345,7 @@
class="form-control text-start justify-content-start"
disabled
>
- {{ theSurat.hargaasas }}
+ {{ theSurat.hargaasas?.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",") || '' }}
@@ -413,7 +408,7 @@
class="btn btn-success"
@click="updateItem(theSurat)"
>
- Terima
+ Ubah
@@ -454,7 +449,7 @@
| {{ theSurat.norujukan }} |
- RM{{ theSurat.hargabida }} |
+ RM{{ theSurat.hargabida?.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",") || '' }} |
diff --git a/src/components/layouts/TheHeader.vue b/src/components/layouts/TheHeader.vue
index 126e923..e24becb 100644
--- a/src/components/layouts/TheHeader.vue
+++ b/src/components/layouts/TheHeader.vue
@@ -41,7 +41,7 @@
data-bs-toggle="dropdown"
aria-expanded="false"
>
- {{ username }}!
+ {{ username }}
@@ -139,7 +139,7 @@
{{ marhun.marhun_desc }} |
{{ marhun.karat }} |
{{ marhun.berat }}g |
- RM{{ marhun.hargaasas }} |
+ RM{{ marhun.hargaasas?.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",") || '' }} |
| Jumlah |
@@ -162,7 +162,7 @@
class="form-control text-start justify-content-start"
disabled
>
- {{ norujukan.hargaasas }}
+ {{ norujukan.hargaasas?.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",") || ''}}