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
40abadf3
Commit
40abadf3
authored
Jun 26, 2020
by
Trisno
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add tax if trans type dine in, else 'Tax Included'
parent
c13a6ea2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
33 additions
and
4 deletions
+33
-4
app.json
app.json
+2
-2
en.json
lib/en.json
+3
-1
id.json
lib/id.json
+3
-1
OrderDetail.js
view/OrderDetail.js
+25
-0
No files found.
app.json
View file @
40abadf3
...
...
@@ -29,14 +29,14 @@
"ios"
:
{
"supportsTablet"
:
true
,
"bundleIdentifier"
:
"id.web.ravintola.excelsocrm"
,
"buildNumber"
:
"20062
509
00"
,
"buildNumber"
:
"20062
616
00"
,
"config"
:
{
"googleMapsApiKey"
:
"AIzaSyCvIFNvXKmBNetqPrV4VnjvF772avYbA3M"
}
},
"android"
:
{
"package"
:
"id.web.ravintola.excelsocrm"
,
"versionCode"
:
20062
509
00
,
"versionCode"
:
20062
616
00
,
"config"
:
{
"googleMaps"
:
{
"apiKey"
:
"AIzaSyAcCfuNHVFstDUE-ZDafWsiUmA3ON79cqo"
...
...
lib/en.json
View file @
40abadf3
...
...
@@ -144,5 +144,7 @@
"alertyes"
:
"Yes"
,
"alertno"
:
"No"
,
"active"
:
"Active"
,
"alertreedemexpired"
:
"Sorry, the redemption code has expired, please cancel!"
"alertreedemexpired"
:
"Sorry, the redemption code has expired, please cancel!"
,
"taxincluded"
:
"(Tax Included)"
,
"tax"
:
"Tax"
}
\ No newline at end of file
lib/id.json
View file @
40abadf3
...
...
@@ -146,6 +146,8 @@
"alertyes"
:
"Ya"
,
"alertno"
:
"Tidak"
,
"active"
:
"Aktif "
,
"alertreedemexpired"
:
"Mohon maaf kode redeem sudah tidak berlaku, Mohon Batalkan !"
"alertreedemexpired"
:
"Mohon maaf kode redeem sudah tidak berlaku, Mohon Batalkan !"
,
"taxincluded"
:
"(Harga sudah termasuk pajak)"
,
"tax"
:
"Pajak"
}
\ No newline at end of file
view/OrderDetail.js
View file @
40abadf3
...
...
@@ -542,6 +542,31 @@ class OrderDetail extends React.Component {
<
NumberFormat
decimalScale
=
{
0
}
value
=
{
this
.
state
.
detail_trans
.
trans_subtotal
}
renderText
=
{
value
=>
<
Text
style
=
{{
fontSize
:
12
,
fontFamily
:
'Gotham-Light'
,
color
:
'grey'
,
textAlign
:
'right'
}}
>
Rp
.
{
value
}
<
/Text>} displayType={'text'} thousandSeparator={true} prefix={''} /
>
<
/View
>
<
/View
>
{
this
.
state
.
detail_trans
.
trans_type
==
3
?
(
<
View
style
=
{{
marginHorizontal
:
10
,
flexDirection
:
'row'
,
justifyContent
:
'space-between'
,
flex
:
1
}}
>
<
View
style
=
{{
flex
:
0.5
,
marginLeft
:
10
,
marginVertical
:
5
}}
>
<
Text
style
=
{{
fontSize
:
12
,
fontFamily
:
'Gotham-Light'
,
color
:
'grey'
}}
>
{
i18n
.
t
(
'tax'
)}
<
/Text
>
<
/View
>
<
View
style
=
{{
flex
:
0.5
,
marginVertical
:
5
,
alignItems
:
'flex-end'
,
marginRight
:
10
}}
>
{
/* <Text style={{ fontSize: 12, fontFamily: 'Gotham-Light', textAlign: 'right' }}>{this.state.detail_trans.trans_subtotal}</Text> */
}
<
NumberFormat
decimalScale
=
{
0
}
value
=
{
this
.
state
.
detail_trans
.
trans_tax
}
renderText
=
{
value
=>
<
Text
style
=
{{
fontSize
:
12
,
fontFamily
:
'Gotham-Light'
,
color
:
'grey'
,
textAlign
:
'right'
}}
>
Rp
.
{
value
}
<
/Text>} displayType={'text'} thousandSeparator={true} prefix={''} /
>
<
/View
>
<
/View
>
)
:
(
<
View
style
=
{{
marginHorizontal
:
10
,
flexDirection
:
'row'
,
justifyContent
:
'space-between'
,
flex
:
1
}}
>
<
View
style
=
{{
flex
:
0.5
,
marginLeft
:
10
,
marginVertical
:
5
}}
>
<
Text
style
=
{{
fontSize
:
12
,
fontFamily
:
'Gotham-Light'
,
color
:
'grey'
}}
>
{
i18n
.
t
(
'taxincluded'
)}
<
/Text
>
<
/View
>
{
/* <View style={{ flex: 0.5, marginVertical: 5, alignItems: 'flex-end', marginRight: 10 }}> */
}
{
/* <Text style={{ fontSize: 12, fontFamily: 'Gotham-Light', textAlign: 'right' }}>{this.state.detail_trans.trans_subtotal}</Text> */
}
{
/* <NumberFormat decimalScale={0} value={this.state.detail_trans.trans_tax} renderText={value => <Text style={{ fontSize: 12, fontFamily: 'Gotham-Light', color: 'grey', textAlign: 'right' }}>Rp. {value}</Text>} displayType={'text'} thousandSeparator={true} prefix={''} /> */
}
{
/* </View> */
}
<
/View
>
)
}
{
this
.
state
.
detail_trans
!=
''
?
(
this
.
state
.
detail_trans
.
used_reward
.
length
?
(
...
...
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