Historique cote agent
This commit is contained in:
parent
e8c621331d
commit
2dabc343f9
File diff suppressed because one or more lines are too long
|
@ -165,6 +165,15 @@
|
||||||
"SAVE_MONEY_TYPE": "Savings type",
|
"SAVE_MONEY_TYPE": "Savings type",
|
||||||
"CAUTION_CREDIT": "Caution credit demand",
|
"CAUTION_CREDIT": "Caution credit demand",
|
||||||
"ID_DEMAND": "Demand ID",
|
"ID_DEMAND": "Demand ID",
|
||||||
|
|
||||||
|
"DEMAND_DATE": "Demand date",
|
||||||
|
"DATE_REMBOURSEMENT_PREVU": "Expected refund date",
|
||||||
|
"DATE_REMBOURSEMENT": "Refund date",
|
||||||
|
"AMOUNT_REFUND": "Amount reimbursed",
|
||||||
|
"AMOUNT_PARTIALLY_REFUND": "Amount partially refunded",
|
||||||
|
"FINAL_DATE": "End date",
|
||||||
|
"CASSATION_DATE": "Cassation date",
|
||||||
|
|
||||||
"DEMAND_DURATION_IN_MONTH": "Duration (in months)",
|
"DEMAND_DURATION_IN_MONTH": "Duration (in months)",
|
||||||
"PAIEMENT_FACTURE": "Bill payment",
|
"PAIEMENT_FACTURE": "Bill payment",
|
||||||
"NUMERO_ABONNE": "Subscriber number",
|
"NUMERO_ABONNE": "Subscriber number",
|
||||||
|
|
|
@ -172,6 +172,15 @@
|
||||||
"REFUND_DONE": "Remboursement effectué",
|
"REFUND_DONE": "Remboursement effectué",
|
||||||
"CAUTION_CREDIT": "Cautionner une demande de crédit",
|
"CAUTION_CREDIT": "Cautionner une demande de crédit",
|
||||||
"ID_DEMAND": "Identifiant de la demande",
|
"ID_DEMAND": "Identifiant de la demande",
|
||||||
|
|
||||||
|
"DEMAND_DATE": "Date de la demande",
|
||||||
|
"DATE_REMBOURSEMENT_PREVU": "Date de remboursement prévu",
|
||||||
|
"DATE_REMBOURSEMENT": "Date de remboursement",
|
||||||
|
"AMOUNT_REFUND": "Montant remboursé",
|
||||||
|
"AMOUNT_PARTIALLY_REFUND": "Montant partiellement remboursé",
|
||||||
|
"FINAL_DATE": "Date de fin",
|
||||||
|
"CASSATION_DATE": "Date de cassation",
|
||||||
|
|
||||||
"DEMAND_DURATION_IN_MONTH": "Durée (en mois)",
|
"DEMAND_DURATION_IN_MONTH": "Durée (en mois)",
|
||||||
"PAIEMENT_FACTURE": "Paiement de facture",
|
"PAIEMENT_FACTURE": "Paiement de facture",
|
||||||
"NUMERO_ABONNE": "Numéro d'abonnée",
|
"NUMERO_ABONNE": "Numéro d'abonnée",
|
||||||
|
|
|
@ -7,6 +7,7 @@ const route = require('./../../route.json');
|
||||||
let slugify = require('slugify');
|
let slugify = require('slugify');
|
||||||
import I18n from 'react-native-i18n';
|
import I18n from 'react-native-i18n';
|
||||||
import isEqual from 'lodash/isEqual';
|
import isEqual from 'lodash/isEqual';
|
||||||
|
import isNil from 'lodash/isNil';
|
||||||
import omit from 'lodash/omit';
|
import omit from 'lodash/omit';
|
||||||
import * as Utils from '../../utils/DeviceUtils';
|
import * as Utils from '../../utils/DeviceUtils';
|
||||||
import { Images } from '../../config/Images';
|
import { Images } from '../../config/Images';
|
||||||
|
@ -63,7 +64,7 @@ class WalletOptionSelect extends Component {
|
||||||
this.props.getNanoCreditAccountAction(user.id);
|
this.props.getNanoCreditAccountAction(user.id);
|
||||||
this.props.getNanoCreditUserHistoryAction(user.id, true);
|
this.props.getNanoCreditUserHistoryAction(user.id, true);
|
||||||
} else {
|
} else {
|
||||||
this.props.getNanoCreditUserHistoryAction(user.agentId, false);
|
this.props.getNanoCreditUserHistoryAction(this.state.wallet.id, false);
|
||||||
}
|
}
|
||||||
this.setState({ user });
|
this.setState({ user });
|
||||||
}
|
}
|
||||||
|
@ -413,21 +414,40 @@ class WalletOptionSelect extends Component {
|
||||||
return (
|
return (
|
||||||
<TouchableOpacity onPress={() => { this.setState({ displayModalHistory: true, historyItemDetail: item }) }} style={[styles.contentService, { borderBottomColor: Color.primaryColor }]}>
|
<TouchableOpacity onPress={() => { this.setState({ displayModalHistory: true, historyItemDetail: item }) }} style={[styles.contentService, { borderBottomColor: Color.primaryColor }]}>
|
||||||
{
|
{
|
||||||
Object.keys(omit(item, ['id', 'type', 'id_epargne', 'date_demande', 'id_demande', 'duree_mois', 'taxe', '', 'date_fin', 'date_cassation', 'etat', 'id_user', 'id_network', 'user', 'partiellement_rembourse', 'user_phone', 'type_caution', 'interet', 'date_remboursement_prevu', 'date_remboursement', 'id_wallet_agent', 'retrait_cash', 'codeParrain', 'agent', 'montant_rembourse', ''])).map((element, i) => (
|
!isNil(this.state.user.category) ?
|
||||||
<View style={{ alignItems: 'center' }} key={i}>
|
Object.keys(omit(item, ['id', 'retrait_cash', 'id_demande', 'montant_rembourse', 'partiellement_rembourse', 'duree_mois', 'etat', 'interet', 'taxe', 'date_validation', 'date_remboursement_prevu', 'date_remboursement', 'id_user', 'id_wallet_agent', 'id_network', 'user', 'user_phone', 'agent', 'codeParrain'])).map((element, i) => (
|
||||||
<Text style={[Typography.overline, Color.grayColor], { marginTop: 4 }}>
|
<View style={{ alignItems: 'center' }} key={i}>
|
||||||
{
|
|
||||||
isEqual(element, 'montant') ?
|
<Text style={[Typography.overline, Color.grayColor], { marginTop: 4 }}>
|
||||||
` ${thousands(item[element], ' ')} ${this.state.wallet.currency_code}`
|
{
|
||||||
: isEqual(element, 'date_creation') ?
|
isEqual(element, 'montant') ?
|
||||||
cutStringWithoutDot(item[element], 16) :
|
` ${thousands(item[element], ' ')} ${this.state.wallet.currency_code}`
|
||||||
isEqual(element, 'type_historique') ?
|
: isEqual(element, 'date_creation') ?
|
||||||
displayTransactionType(item[element])
|
cutStringWithoutDot(item[element], 16) :
|
||||||
: item[element]
|
isEqual(element, 'type_historique') ?
|
||||||
}
|
displayTransactionType(item[element])
|
||||||
</Text>
|
: item[element]
|
||||||
</View>
|
}
|
||||||
))
|
</Text>
|
||||||
|
</View>
|
||||||
|
))
|
||||||
|
:
|
||||||
|
Object.keys(omit(item, ['id', 'type', 'id_epargne', 'date_demande', 'id_demande', 'duree_mois', 'taxe', '', 'date_fin', 'date_cassation', 'etat', 'id_user', 'id_network', 'user', 'partiellement_rembourse', 'user_phone', 'type_caution', 'interet', 'date_remboursement_prevu', 'date_remboursement', 'id_wallet_agent', 'retrait_cash', 'codeParrain', 'agent', 'montant_rembourse', ''])).map((element, i) => (
|
||||||
|
<View style={{ alignItems: 'center' }} key={i}>
|
||||||
|
|
||||||
|
<Text style={[Typography.overline, Color.grayColor], { marginTop: 4 }}>
|
||||||
|
{
|
||||||
|
isEqual(element, 'montant') ?
|
||||||
|
` ${thousands(item[element], ' ')} ${this.state.wallet.currency_code}`
|
||||||
|
: isEqual(element, 'date_creation') ?
|
||||||
|
cutStringWithoutDot(item[element], 16) :
|
||||||
|
isEqual(element, 'type_historique') ?
|
||||||
|
displayTransactionType(item[element])
|
||||||
|
: item[element]
|
||||||
|
}
|
||||||
|
</Text>
|
||||||
|
</View>
|
||||||
|
))
|
||||||
}
|
}
|
||||||
</TouchableOpacity>
|
</TouchableOpacity>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue