Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
N
new_excelso
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Prasetya Saputra
new_excelso
Commits
1f638431
You need to sign in or sign up before continuing.
Commit
1f638431
authored
Oct 14, 2020
by
Wahyu Adjie Prasetyo
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
ssh://repo.cs.co.id:2222/wahyu/bahanoprek
parents
4e40f5e7
2c2c3d35
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
en.json
lib/en.json
+1
-1
id.json
lib/id.json
+1
-1
ShoppingCart.js
view/ShoppingCart.js
+2
-2
No files found.
lib/en.json
View file @
1f638431
...
...
@@ -223,7 +223,7 @@
"alertDeleteItemTitle"
:
"Delete item"
,
"alertDeleteItemContent"
:
"Are you sure want to delete item?"
,
"alertSelectOrderFirst"
:
"Please choose your order first"
,
"alertBalanceNotEnoughtWithVooucher"
:
"
Rewards cannot be used, your minimum transaction is not enough
"
,
"alertBalanceNotEnoughtWithVooucher"
:
"
cannot be used, your order has not reached the required minimum transaction of Rp.
"
,
"alertSuccessTransaction"
:
"Transaction success"
,
"updateVersion"
:
"Please update your Excelso App first!"
,
"upgradePremiumRespon"
:
"Your premium account upgrade request will require maximum 24 hours to process"
,
...
...
lib/id.json
View file @
1f638431
...
...
@@ -223,7 +223,7 @@
"alertDeleteItemTitle"
:
"Hapus item"
,
"alertDeleteItemContent"
:
"Anda yakin ingin menghapus item?"
,
"alertSelectOrderFirst"
:
"Silahkan pilih pesanan Anda terlebih dahulu"
,
"alertBalanceNotEnoughtWithVooucher"
:
"
Reward tidak bisa dipakai karena pesanan belum mencapai minimum transaksi yang dibutuhkan
"
,
"alertBalanceNotEnoughtWithVooucher"
:
"
tidak bisa dipakai karena pesanan belum mencapai minimum transaksi yang dibutuhkan yaitu Rp.
"
,
"alertSuccessTransaction"
:
"Transaksi Berhasil"
,
"updateVersion"
:
"Mohon update aplikasi Anda terlebih dahulu!"
,
"upgradePremiumRespon"
:
"Permintaan upgrade akun anda ke Premium sudah kami terima dan akan diproses dalam 1x24 jam"
,
...
...
view/ShoppingCart.js
View file @
1f638431
import
React
from
'react'
;
import
{
View
,
Text
,
TextInput
,
StyleSheet
,
Button
,
TouchableOpacity
,
ScrollView
,
FlatList
,
Image
,
Alert
,
ActivityIndicator
,
TouchableWithoutFeedback
}
from
'react-native'
;
import
{
View
,
Text
,
TextInput
,
StyleSheet
,
Button
,
TouchableOpacity
,
ScrollView
,
FlatList
,
Image
,
Alert
,
ActivityIndicator
}
from
'react-native'
;
import
{
connect
}
from
'react-redux'
import
CheckBox
from
'react-native-check-box'
import
{
Card
}
from
'react-native-shadow-cards'
...
...
@@ -617,7 +617,7 @@ class ShoppingCart extends React.Component {
Alert
.
alert
(
'Error'
,
i18n
.
t
(
'alertselectpayment'
))
}
else
if
(
this
.
props
.
value_voucher
!==
''
)
{
if
(
parseInt
(
this
.
props
.
value_voucher
.
reward
.
min_transaction
)
>
parseInt
(
this
.
props
.
order_total
))
{
Alert
.
alert
(
''
,
i18n
.
t
(
'alertBalanceNotEnoughtWithVooucher'
))
Alert
.
alert
(
''
,
this
.
props
.
value_voucher
.
reward
.
title
+
i18n
.
t
(
'alertBalanceNotEnoughtWithVooucher'
)
+
this
.
props
.
value_voucher
.
reward
.
min_transaction
.
toString
().
replace
(
/
(\d)(?=(\d\d\d)
+
(?!\d))
/g
,
"$1,"
))
}
else
{
this
.
props
.
navigation
.
navigate
(
'CONFIRM YOUR ORDER'
,
{
balanceUsed
:
this
.
state
.
balanceused
,
pointused
:
this
.
state
.
pointsused
})
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment