Commit 6354e2d5 authored by Trisno's avatar Trisno

benerin pengecekan balance shopping cart dan build 126

parent 1b313880
{
"expo": {
"extra" : {
"buildNumber" : "125",
"buildNumber" : "126",
"remarks": ""
},
......
......@@ -45,9 +45,6 @@ class ShoppingCart extends React.Component {
componentDidMount() {
// console.log("INI YA : "+this.props.BASE_URL)
// console.log('INI VALUE : ' + this.props.value_voucher)
if (!this.props.type_pickup) {
this.getRate()
}
......@@ -423,11 +420,13 @@ class ShoppingCart extends React.Component {
}
render() {
// console.log('496000'.replace(/,/g, ''))
// console.log(this.props)
// console.log(this.props.order_total)
// console.log(this.props.order_item.length)
console.log(this.props.value_voucher)
// console.log('tes balance poin selection')
// console.log(this.props.order_total + ' total belanja')
// console.log(this.props.grabamount + ' ongkir')
// console.log(parseInt(this.state.kasproPoint) + parseInt(this.state.kasproBalance) + ' balance dan point')
// 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 (
<ScrollView style={styles.container}>
<MyStatusBar />
......@@ -605,7 +604,7 @@ class ShoppingCart extends React.Component {
</View>
<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={() => {
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