Commit 6354e2d5 authored by Trisno's avatar Trisno

benerin pengecekan balance shopping cart dan build 126

parent 1b313880
{ {
"expo": { "expo": {
"extra" : { "extra" : {
"buildNumber" : "125", "buildNumber" : "126",
"remarks": "" "remarks": ""
}, },
......
...@@ -45,9 +45,6 @@ class ShoppingCart extends React.Component { ...@@ -45,9 +45,6 @@ class ShoppingCart extends React.Component {
componentDidMount() { componentDidMount() {
// console.log("INI YA : "+this.props.BASE_URL)
// console.log('INI VALUE : ' + this.props.value_voucher)
if (!this.props.type_pickup) { if (!this.props.type_pickup) {
this.getRate() this.getRate()
} }
...@@ -423,11 +420,13 @@ class ShoppingCart extends React.Component { ...@@ -423,11 +420,13 @@ class ShoppingCart extends React.Component {
} }
render() { render() {
// console.log('496000'.replace(/,/g, '')) // console.log('tes balance poin selection')
// console.log(this.props) // console.log(this.props.order_total + ' total belanja')
// console.log(this.props.order_total) // console.log(this.props.grabamount + ' ongkir')
// console.log(this.props.order_item.length) // console.log(parseInt(this.state.kasproPoint) + parseInt(this.state.kasproBalance) + ' balance dan point')
console.log(this.props.value_voucher) // console.log(this.props.order_total + this.props.grabamount + ' total belanja dan ongkir')
// console.log(this.state.kasproPoint + this.state.kasproBalance >= this.props.order_total + this.props.grabamount && this.state.kasproBalance != 0 && this.state.kasproPoint != 0)
return ( return (
<ScrollView style={styles.container}> <ScrollView style={styles.container}>
<MyStatusBar /> <MyStatusBar />
...@@ -605,7 +604,7 @@ class ShoppingCart extends React.Component { ...@@ -605,7 +604,7 @@ class ShoppingCart extends React.Component {
</View> </View>
<View style={{ alignItems: 'center' }}> <View style={{ alignItems: 'center' }}>
{ {
this.state.kasproPoint + this.state.kasproBalance >= this.props.order_total + this.props.grabamount && this.state.kasproBalance != 0 && this.state.kasproPoint != 0 ? ( parseInt(this.state.kasproPoint) + parseInt(this.state.kasproBalance) >= this.props.order_total + this.props.grabamount && this.state.kasproBalance != 0 && this.state.kasproPoint != 0 ? (
<TouchableOpacity onPress={() => { <TouchableOpacity onPress={() => {
this.checkedSelection('balancepoint') this.checkedSelection('balancepoint')
}}> }}>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment