Fixing IGS problem
This commit is contained in:
parent
2349f60ba8
commit
d1b4021c19
|
@ -593,7 +593,7 @@
|
|||
"MODIFICATION_ORDRE_RECETTE": "Modify recipe order",
|
||||
"SAISIE_NUMERO_QUITANCE": "Enter receipt number",
|
||||
"MODIFICATION_NUMERO_QUITANCE": "Modify receipt number",
|
||||
"SAISIR_QUITANCE": "Enter receipt",
|
||||
"SAISIR_QUITANCE": "Making a payment",
|
||||
"CODE_AGENT": "Agent code ",
|
||||
"AVIS_IMPOSITION": "Tax notice",
|
||||
"AGENT_INFORMATION": "Agent Information",
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"WELCOME": "Bienvenue sur iLink City !",
|
||||
"WELCOME": "Bienvenue sur Sim_ba mobile !",
|
||||
"WAITING_LONG": "Veuillez patienter un instant",
|
||||
"HELP": "Aide",
|
||||
"SIMPLE_USER": "Utilisateur simple",
|
||||
|
@ -248,7 +248,7 @@
|
|||
"HISTORY": "Historique",
|
||||
"WITHDRAWAL_TRANSACTION_HISTORY_DESCRIPTION": "Retrait de",
|
||||
"DEPOSIT_TRANSACTION_HISTORY_DESCRIPTION": "Dépôt de",
|
||||
"NO_WALLET_HISTORY": "Aucune transaction à ce jour",
|
||||
"NO_WALLET_HISTORY": "Aucun historique",
|
||||
"DEMAND_SEND": "Demande envoyé",
|
||||
"EPARGNE_DEPOSE": "Epargne déposée",
|
||||
"BREAK_EPARGNE_DONE": "Epargne cassée avec succès",
|
||||
|
@ -384,7 +384,7 @@
|
|||
"OK": "OK",
|
||||
"SIMPLE": "Simple",
|
||||
"BLOCKED": "Bloqué",
|
||||
"APP_FULLNAME": "Ilink City",
|
||||
"APP_FULLNAME": "Sim_ba mobile",
|
||||
"GUIDE_TITLE": "Bienvenue dans le Guide de",
|
||||
"GUIDE_USER_SIMPLE": "Guide pour un utilisateur",
|
||||
"GUIDE_AGENT": "Guide pour un agent",
|
||||
|
@ -543,8 +543,8 @@
|
|||
"MEMBERSHIP_REQUEST": "Demandes d'adhésion",
|
||||
"HISTORY_TYPE_REQUEST": "Requêtes",
|
||||
"TREAT": "Traité",
|
||||
"EXIT_TITLE": "Fermer iLink City !",
|
||||
"EXIT_DESC": "Voulez-vous vraiment fermer iLink City ?",
|
||||
"EXIT_TITLE": "Fermer Sim_ba mobile !",
|
||||
"EXIT_DESC": "Voulez-vous vraiment fermer Sim_ba mobile ?",
|
||||
"NO_TREAT": "Non traité",
|
||||
"EXIT": "Fermer",
|
||||
"PERIOD": "Période",
|
||||
|
@ -557,7 +557,7 @@
|
|||
"ACCOUNT_ACTIVATE_TEXT": "Votre compte a été activé avec succès !",
|
||||
"HISTORY_END": "Fin",
|
||||
"DONT_VALIDATE_ACCOUNT": "Compte non validé",
|
||||
"CONNEXION_SUCCESSFULL_TEXT": "Connexion réussie. Bienvenue dans iLink City ! ",
|
||||
"CONNEXION_SUCCESSFULL_TEXT": "Connexion réussie. Bienvenue dans Sim_ba mobile ! ",
|
||||
"UNVALIDATE_ACCOUNT_TEXT": "Votre hyperviseur n'a pas encore validé votre compte",
|
||||
"TEXT_NEED_POSITION": "Veuillez mettre à jour votre position !",
|
||||
"TITLE_NEED_POSITION": "Votre position doit être mise à jour",
|
||||
|
@ -570,12 +570,12 @@
|
|||
"TITLE_PROBLE_COME": "Un problème a été rencontré",
|
||||
"TITLE_SUPPRESS_CONFIRM": "Confirmation de suppression",
|
||||
"TEXT_SUPPRESS_CONFIRM": "Voulez vous vraiment supprimer cet utilisateur ?",
|
||||
"TEXT_ERROR_START_APPLICATION": "Une erreur est survenue au démarrage de iLink City. Veuillez relancer iLink City",
|
||||
"TEXT_UNABLE_TO_GET_YOUR_POSITION": "Impossible de recupérez votre position. Veuillez verifier que votre GPS est activé et relancez iLink City",
|
||||
"TEXT_ERROR_START_APPLICATION": "Une erreur est survenue au démarrage de Sim_ba mobile. Veuillez relancer Sim_ba mobile",
|
||||
"TEXT_UNABLE_TO_GET_YOUR_POSITION": "Impossible de recupérez votre position. Veuillez verifier que votre GPS est activé et relancez Sim_ba mobile",
|
||||
"RESTART": "RECOMMENCER",
|
||||
"TEXT_UNABLE_TO_GET_COUNTRY_INFO": "Impossible de recupérer les informations de votre pays. Verifiez votre connexion internet ! cliquez sur \"Ok\" pour reessayer",
|
||||
"TITLE_UNABLE_TO_AUTORISE": "Echec de l'autorisation",
|
||||
"MISSING_AUTORISATION_LOCATION": "iLink City n'est pas autorisé à acceder à votre position. Veuillez autoriser iLink City à accéder à votre localisation et relancez iLink City",
|
||||
"MISSING_AUTORISATION_LOCATION": "Sim_ba mobile n'est pas autorisé à acceder à votre position. Veuillez autoriser Sim_ba mobile à accéder à votre localisation et relancez Sim_ba mobile",
|
||||
"TEXT_FORGOTTEN_PASSWORD": "Saisissez votre identifiant,nous vous enverrons un nouveau mot de passe\n",
|
||||
"TEXT_NETWORK_UNABLE": "Réseau non disponible, voulez vous réessayer ?",
|
||||
"LOADING_TEXT_MARKERS": "Suite des points ",
|
||||
|
@ -584,7 +584,7 @@
|
|||
"LAUNCH_POINT_WITH_FILTER": "Voulez-vous relancer la recherche dans un rayon de ",
|
||||
"LOADING_TEXT_MARKERS_2": "autour",
|
||||
"UNABLE_GET_INFORMATION": "Problème de récuperation des Informations",
|
||||
"UNABLE_GET_INFORMATION_TEXT": "Vérifiez que votre GPS est activé et mis en mode haute precision et relancez iLink City",
|
||||
"UNABLE_GET_INFORMATION_TEXT": "Vérifiez que votre GPS est activé et mis en mode haute precision et relancez Sim_ba mobile",
|
||||
"TITLE_HELP_SOON": "Aide non disponible !",
|
||||
"YOUR_NETWORK": "Sélectionner votre réseau",
|
||||
"YOUR_NETWORK_SELECTED": "Votre réseau",
|
||||
|
@ -600,7 +600,7 @@
|
|||
"MODIFICATION_ORDRE_RECETTE": "Modifier ordre recette",
|
||||
"SAISIE_NUMERO_QUITANCE": "Saisir numéro quitance",
|
||||
"MODIFICATION_NUMERO_QUITANCE": "Modifier numéro quitance",
|
||||
"SAISIR_QUITANCE": "Saisir quitance",
|
||||
"SAISIR_QUITANCE": "Effectuer un paiement",
|
||||
"CODE_AGENT": "Code agent ",
|
||||
"AVIS_IMPOSITION": "Déclaration",
|
||||
"AGENT_INFORMATION": "Informations sur l'agent",
|
||||
|
|
|
@ -1,4 +1,10 @@
|
|||
import React, {Component} from 'react';
|
||||
import CheckBox from '@react-native-community/checkbox';
|
||||
import Button from 'apsl-react-native-button';
|
||||
import axios from "axios";
|
||||
import _ from "lodash";
|
||||
import isNil from 'lodash/isNil';
|
||||
import DateTimePicker from "@react-native-community/datetimepicker"
|
||||
import React, { Component } from 'react';
|
||||
import {
|
||||
Alert,
|
||||
BackHandler,
|
||||
|
@ -13,35 +19,30 @@ import {
|
|||
TouchableOpacity,
|
||||
View
|
||||
} from 'react-native';
|
||||
import CheckBox from '@react-native-community/checkbox';
|
||||
import FontAwesomeIcon from 'react-native-vector-icons/FontAwesome';
|
||||
import {responsiveHeight, responsiveWidth} from 'react-native-responsive-dimensions';
|
||||
import {Fumi} from 'react-native-textinput-effects'
|
||||
import * as Animatable from 'react-native-animatable';
|
||||
import Button from 'apsl-react-native-button';
|
||||
import MapView, {Marker} from 'react-native-maps';
|
||||
import {Dropdown} from 'react-native-material-dropdown-v2';
|
||||
import isNil from 'lodash/isNil';
|
||||
import {getPositionInformation} from './../../webservice/MapService';
|
||||
import I18n from 'react-native-i18n'
|
||||
import {material} from 'react-native-typography';
|
||||
import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
|
||||
import {createGeolocatedAccount} from './../../webservice/AuthApi';
|
||||
import {MaterialDialog} from "react-native-material-dialog";
|
||||
import Geolocation from 'react-native-geolocation-service';
|
||||
import ImagePicker from 'react-native-image-crop-picker';
|
||||
import {Color} from "../../config/Color";
|
||||
import {FontWeight, Typography} from "../../config/typography";
|
||||
import Dialog from "react-native-dialog";
|
||||
import axios from "axios";
|
||||
import {actifToSave, supervisorCode, uploadImage, usagerToSave} from "../../webservice/IlinkConstants";
|
||||
import {ProgressDialog} from "react-native-simple-dialogs";
|
||||
import _ from "lodash";
|
||||
import {connect} from "react-redux";
|
||||
import {saveActifSocietyAction, saveActifSocietyReset} from "../../webservice/regisseur/WalletRegisseurApi";
|
||||
import {bindActionCreators} from "redux";
|
||||
import Geolocation from 'react-native-geolocation-service';
|
||||
import I18n from 'react-native-i18n';
|
||||
import ImagePicker from 'react-native-image-crop-picker';
|
||||
import MapView, { Marker } from 'react-native-maps';
|
||||
import { MaterialDialog } from "react-native-material-dialog";
|
||||
import { Dropdown } from 'react-native-material-dropdown-v2';
|
||||
import OneSignal from "react-native-onesignal";
|
||||
import {getData, storeData} from "../../webservice/persistences/StorageService";
|
||||
import { responsiveHeight, responsiveWidth } from 'react-native-responsive-dimensions';
|
||||
import { ProgressDialog } from "react-native-simple-dialogs";
|
||||
import { Fumi } from 'react-native-textinput-effects';
|
||||
import { material } from 'react-native-typography';
|
||||
import FontAwesomeIcon from 'react-native-vector-icons/FontAwesome';
|
||||
import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
|
||||
import { connect } from "react-redux";
|
||||
import { bindActionCreators } from "redux";
|
||||
import { Color } from "../../config/Color";
|
||||
import { FontWeight, Typography } from "../../config/typography";
|
||||
import { actifToSave, supervisorCode, uploadImage, usagerToSave } from "../../webservice/IlinkConstants";
|
||||
import { getData, storeData } from "../../webservice/persistences/StorageService";
|
||||
import { saveActifSocietyAction, saveActifSocietyReset } from "../../webservice/regisseur/WalletRegisseurApi";
|
||||
import { createGeolocatedAccount } from './../../webservice/AuthApi';
|
||||
import { getPositionInformation } from './../../webservice/MapService';
|
||||
import FilteredList from './FilteredList ';
|
||||
|
||||
const GEOLOCATION_OPTIONS = {enableHighAccuracy: true, timeout: 20000, maximumAge: 1000, useSignificantChanges: true};
|
||||
|
@ -137,6 +138,7 @@ class CreateUserStep extends Component {
|
|||
id_patente: null,
|
||||
TVA: false,
|
||||
IRPP: false,
|
||||
licence: false,
|
||||
activity_type: null,
|
||||
year_tax_paid_N: false,
|
||||
year_tax_paid_N_1: false,
|
||||
|
@ -160,7 +162,19 @@ class CreateUserStep extends Component {
|
|||
publicites_taxes: null,
|
||||
messageRequiredImage: "",
|
||||
selectedTax: null,
|
||||
|
||||
accountType:"",
|
||||
cni_number:"",
|
||||
birth_date:new Date(),
|
||||
birth_place:"",
|
||||
birth_country:"",
|
||||
nationality_country:"",
|
||||
father_lastname:"",
|
||||
father_firstname:"",
|
||||
mother_lastname:"",
|
||||
mother_firstname:"",
|
||||
signboard:"",
|
||||
entreprise_creation_date: new Date(), // initialisation avec la date actuelle
|
||||
showDatePicker: false,
|
||||
|
||||
};
|
||||
|
||||
|
@ -170,7 +184,36 @@ class CreateUserStep extends Component {
|
|||
this.props.saveActifSocietyReset();
|
||||
OneSignal.addEventListener('ids', this.onIds);
|
||||
}
|
||||
// Méthode appelée lors de la sélection d'une date
|
||||
onChangeDate = (event, selectedDate) => {
|
||||
// Sur Android, si l'utilisateur annule, event.type sera "dismissed"
|
||||
if (Platform.OS === 'android' && event.type === 'dismissed') {
|
||||
this.setState({ showDatePicker: false });
|
||||
return;
|
||||
}
|
||||
const currentDate = selectedDate || this.state.entreprise_creation_date;
|
||||
this.setState({
|
||||
entreprise_creation_date: currentDate,
|
||||
showDatePicker: Platform.OS === 'ios' // en iOS, le picker reste affiché
|
||||
});
|
||||
};
|
||||
onChangeDate2 = (event, selectedDate) => {
|
||||
// Sur Android, si l'utilisateur annule, event.type sera "dismissed"
|
||||
if (Platform.OS === 'android' && event.type === 'dismissed') {
|
||||
this.setState({ showDatePicker: false });
|
||||
return;
|
||||
}
|
||||
const currentDate = selectedDate || this.state.birth_date;
|
||||
this.setState({
|
||||
birth_date: currentDate,
|
||||
showDatePicker: Platform.OS === 'ios' // en iOS, le picker reste affiché
|
||||
});
|
||||
};
|
||||
|
||||
// Afficher le date picker
|
||||
showDatePicker = () => {
|
||||
this.setState({ showDatePicker: true });
|
||||
};
|
||||
createFormData = (photo) => {
|
||||
this.dataToSendTemp.append("image", {
|
||||
name: photo.path.split('/').pop(),
|
||||
|
@ -1303,7 +1346,7 @@ handleTaxSlection = (selectedTax) => {
|
|||
|
||||
renderUserGeoAccount() {
|
||||
let year = new Date();
|
||||
const {required_taxes_only_single_tax, selectedTax} = this.state
|
||||
const {required_taxes_only_single_tax, selectedTax,accountType} = this.state
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
{this.state.displayImage && this.renderDialogImage()}
|
||||
|
@ -1319,9 +1362,37 @@ handleTaxSlection = (selectedTax) => {
|
|||
|
||||
</View>
|
||||
<ScrollView ref={component => this._scrollView = component} style={styles.container}>
|
||||
{/* Sélection du type de compte */}
|
||||
|
||||
|
||||
|
||||
|
||||
<>
|
||||
<Text style={styles.title}>{I18n.t('INFORMATION_FICHE_CIRCUIT')}</Text>
|
||||
{/* <View
|
||||
style={{
|
||||
width: responsiveWidth(90),
|
||||
marginTop: 20,
|
||||
alignSelf: 'center',
|
||||
borderRadius: 10,
|
||||
paddingLeft: 20,
|
||||
paddingRight: 20,
|
||||
backgroundColor: 'white'
|
||||
}}>
|
||||
<Dropdown
|
||||
label="Type de compte"
|
||||
data={[
|
||||
{ label: "Personne Physique", value: "PP" },
|
||||
{ label: "Personne Morale", value: "PM" }
|
||||
]}
|
||||
onChangeText={(value) => this.setState({ accountType: value })}
|
||||
value={accountType}
|
||||
/>
|
||||
</View> */}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<Animatable.View ref={(comp) => {
|
||||
this.societyTypeAnim = comp
|
||||
|
@ -1334,8 +1405,9 @@ handleTaxSlection = (selectedTax) => {
|
|||
borderRadius: 10,
|
||||
paddingLeft: 20,
|
||||
paddingRight: 20,
|
||||
backgroundColor: 'white'
|
||||
backgroundColor: this.state.accountType && this.state.accountType !== '' ? '#FFE0B2' : 'white'
|
||||
}}>
|
||||
{console.log("this.state.result.companies_types===>>",this.state.result.companies_types)}
|
||||
<Dropdown
|
||||
label={`${I18n.t('SOCIETY_TYPE')} *`}
|
||||
data={this.state.result !== null ? this.state.result.companies_types : []}
|
||||
|
@ -1349,11 +1421,205 @@ handleTaxSlection = (selectedTax) => {
|
|||
onChangeText={(value, index, data) => {
|
||||
this.setState({companies_types_selected: value.id});
|
||||
this.updateRequiredTaxes(value);
|
||||
//console.log("Company", value);
|
||||
console.log("value12===>>",value)
|
||||
if (value.name ==="PPH"){ this.setState({accountType:"PP"})}else{this.setState({accountType:"PM"})}
|
||||
|
||||
}}
|
||||
/>
|
||||
</View>
|
||||
</Animatable.View>
|
||||
{ accountType === "PP" && (
|
||||
<>
|
||||
{/* Champ NUMERO CNI (obligatoire) */}
|
||||
<Fumi
|
||||
iconClass={FontAwesomeIcon}
|
||||
iconName={'id-card'}
|
||||
label="Numéro de la CNI"
|
||||
iconColor={'#f95a25'}
|
||||
style={styles.input}
|
||||
value={this.state.cni_number}
|
||||
onChangeText={(text) => this.setState({ cni_number: text })}
|
||||
/>
|
||||
{/* Champ DATE DE NAISSANCE (obligatoire) */}
|
||||
{/* <Fumi
|
||||
iconClass={FontAwesomeIcon}
|
||||
iconName={'calendar'}
|
||||
label="Date de naissance *"
|
||||
iconColor={'#f95a25'}
|
||||
style={styles.input}
|
||||
value={this.state.birth_date}
|
||||
onChangeText={(text) => this.setState({ birth_date: text })}
|
||||
/> */}
|
||||
<TouchableOpacity onPress={this.showDatePicker} style={{height: 60,
|
||||
marginTop: responsiveHeight(2),
|
||||
marginLeft: responsiveWidth(5),
|
||||
marginRight: responsiveWidth(5),
|
||||
backgroundColor:"white",
|
||||
padding: 10,
|
||||
borderRadius: 5,}}>
|
||||
<View>
|
||||
<Text style={{ marginLeft: 5,marginBottom:5 }}>
|
||||
Date de naissance *
|
||||
</Text>
|
||||
<View style={{ flexDirection: 'row', alignItems: 'center' }}>
|
||||
<FontAwesomeIcon name="calendar" size={20} color="#f95a25" />
|
||||
<Text style={{ marginLeft: 10 }}>
|
||||
{this.state.birth_date.toLocaleDateString()}
|
||||
</Text>
|
||||
</View>
|
||||
</View>
|
||||
</TouchableOpacity >
|
||||
{this.state.showDatePicker &&(
|
||||
<DateTimePicker
|
||||
testID="dateTimePicker"
|
||||
value={this.state.birth_date}
|
||||
mode="date"
|
||||
display="default"
|
||||
onChange={this.onChangeDate2}
|
||||
/>
|
||||
)}
|
||||
{/* Champ LIEU DE NAISSANCE (obligatoire) */}
|
||||
<Fumi
|
||||
iconClass={FontAwesomeIcon}
|
||||
iconName={'map-marker'}
|
||||
label="Lieu de naissance *"
|
||||
iconColor={'#f95a25'}
|
||||
style={styles.input}
|
||||
value={this.state.birth_place}
|
||||
onChangeText={(text) => this.setState({ birth_place: text })}
|
||||
/>
|
||||
{/* Champ PAYS NAISSANCE (obligatoire) */}
|
||||
<Fumi
|
||||
iconClass={FontAwesomeIcon}
|
||||
iconName={'globe'}
|
||||
label="Pays de naissance *"
|
||||
iconColor={'#f95a25'}
|
||||
style={styles.input}
|
||||
value={this.state.birth_country}
|
||||
onChangeText={(text) => this.setState({ birth_country: text })}
|
||||
/>
|
||||
{/* Champ PAYS NATIONALITE (obligatoire) */}
|
||||
<Fumi
|
||||
iconClass={FontAwesomeIcon}
|
||||
iconName={'flag'}
|
||||
label="Nationalité *"
|
||||
iconColor={'#f95a25'}
|
||||
style={styles.input}
|
||||
value={this.state.nationality_country}
|
||||
onChangeText={(text) => this.setState({ nationality_country: text })}
|
||||
/>
|
||||
{/* Champs pour les informations parentales */}
|
||||
<Fumi
|
||||
iconClass={FontAwesomeIcon}
|
||||
iconName={'user'}
|
||||
label="Nom de la mère *"
|
||||
iconColor={'#f95a25'}
|
||||
style={styles.input}
|
||||
value={this.state.father_lastname}
|
||||
onChangeText={(text) => this.setState({ father_lastname: text })}
|
||||
/>
|
||||
<Fumi
|
||||
iconClass={FontAwesomeIcon}
|
||||
iconName={'user'}
|
||||
label="Prénom de la mère"
|
||||
iconColor={'#f95a25'}
|
||||
style={styles.input}
|
||||
value={this.state.father_firstname}
|
||||
onChangeText={(text) => this.setState({ father_firstname: text })}
|
||||
/>
|
||||
<Fumi
|
||||
iconClass={FontAwesomeIcon}
|
||||
iconName={'user'}
|
||||
label="Nom du père *"
|
||||
iconColor={'#f95a25'}
|
||||
style={styles.input}
|
||||
value={this.state.mother_lastname}
|
||||
onChangeText={(text) => this.setState({ mother_lastname: text })}
|
||||
/>
|
||||
<Fumi
|
||||
iconClass={FontAwesomeIcon}
|
||||
iconName={'user'}
|
||||
label="Prénom du père"
|
||||
iconColor={'#f95a25'}
|
||||
style={styles.input}
|
||||
value={this.state.mother_firstname}
|
||||
onChangeText={(text) => this.setState({ mother_firstname: text })}
|
||||
/>
|
||||
{/* Masquer les champs TECHNICAL AGREMENT et PATENTE */}
|
||||
</>
|
||||
)}
|
||||
|
||||
{ accountType === "PM" && (
|
||||
<>
|
||||
{/* Champ SIGLE (commun aux deux types mais ici on le traite dans le PM) */}
|
||||
<Fumi
|
||||
iconClass={FontAwesomeIcon}
|
||||
iconName={'id-badge'}
|
||||
label="Sigle"
|
||||
iconColor={'#f95a25'}
|
||||
style={styles.input}
|
||||
value={this.state.signboard}
|
||||
onChangeText={(text) => this.setState({ signboard: text })}
|
||||
/>
|
||||
{/* Champ DATE CREATION (obligatoire) */}
|
||||
{/* <Fumi
|
||||
iconClass={FontAwesomeIcon}
|
||||
iconName={'calendar'}
|
||||
label="Date de création *"
|
||||
iconColor={'#f95a25'}
|
||||
style={styles.input}
|
||||
value={this.state.entreprise_creation_date}
|
||||
onChangeText={(text) => this.setState({ entreprise_creation_date: text })}
|
||||
/> */}
|
||||
<TouchableOpacity onPress={this.showDatePicker} style={{height: 60,
|
||||
marginTop: responsiveHeight(2),
|
||||
marginLeft: responsiveWidth(5),
|
||||
marginRight: responsiveWidth(5),
|
||||
backgroundColor:"white",
|
||||
padding: 10,
|
||||
borderRadius: 5,}}>
|
||||
<View>
|
||||
<Text style={{ marginLeft: 5,marginBottom:5 }}>
|
||||
Date de création
|
||||
</Text>
|
||||
<View style={{ flexDirection: 'row', alignItems: 'center' }}>
|
||||
<FontAwesomeIcon name="calendar" size={20} color="#f95a25" />
|
||||
<Text style={{ marginLeft: 10 }}>
|
||||
{this.state.entreprise_creation_date.toLocaleDateString()}
|
||||
</Text>
|
||||
</View>
|
||||
</View>
|
||||
</TouchableOpacity >
|
||||
{this.state.showDatePicker &&(
|
||||
<DateTimePicker
|
||||
testID="dateTimePicker"
|
||||
value={this.state.entreprise_creation_date}
|
||||
mode="date"
|
||||
display="default"
|
||||
onChange={this.onChangeDate}
|
||||
/>
|
||||
)}
|
||||
{/* Ici, on peut conserver TECHNICAL AGREMENT et PATENTE pour PM */}
|
||||
<Fumi
|
||||
iconClass={FontAwesomeIcon}
|
||||
iconName={'file'}
|
||||
label="Technical agrement"
|
||||
iconColor={'#f95a25'}
|
||||
style={styles.input}
|
||||
value={this.state.technical_approval}
|
||||
onChangeText={(text) => this.setState({ technical_approval: text })}
|
||||
/>
|
||||
<Fumi
|
||||
iconClass={FontAwesomeIcon}
|
||||
iconName={'file'}
|
||||
label="Patente"
|
||||
iconColor={'#f95a25'}
|
||||
style={styles.input}
|
||||
value={this.state.id_patente}
|
||||
onChangeText={(text) => this.setState({ id_patente: text })}
|
||||
/>
|
||||
</>
|
||||
)}
|
||||
|
||||
{required_taxes_only_single_tax ? (
|
||||
|
||||
|
@ -1618,7 +1884,7 @@ handleTaxSlection = (selectedTax) => {
|
|||
}}/>
|
||||
</Animatable.View>
|
||||
|
||||
<Animatable.View>
|
||||
{/* <Animatable.View>
|
||||
<Fumi iconClass={FontAwesomeIcon}
|
||||
iconName={'file'}
|
||||
label={I18n.t('PATENTE')}
|
||||
|
@ -1628,7 +1894,7 @@ handleTaxSlection = (selectedTax) => {
|
|||
onChangeText={(text) => {
|
||||
this.setState({id_patente: text})
|
||||
}}/>
|
||||
</Animatable.View>
|
||||
</Animatable.View> */}
|
||||
|
||||
|
||||
<View style={{
|
||||
|
@ -1660,10 +1926,12 @@ handleTaxSlection = (selectedTax) => {
|
|||
<View
|
||||
style={styles.checkboxContainer}>
|
||||
<CheckBox
|
||||
onValueChange={value => this.setState({IRPP: value})}
|
||||
value={this.state.IRPP}
|
||||
onValueChange={value => this.setState({licence: value})}
|
||||
value={this.state.licence}
|
||||
style={styles.checkbox}/>
|
||||
<Text style={styles.label}>Licence</Text>
|
||||
{console.log("licence===>>",this.state.licence)}
|
||||
{console.log("licence===>>",typeof this.state.licence)}
|
||||
</View>
|
||||
{/* <View
|
||||
style={styles.checkboxContainer}>
|
||||
|
@ -2132,7 +2400,7 @@ handleTaxSlection = (selectedTax) => {
|
|||
}
|
||||
|
||||
data['taxes'] = taxes_to_send;
|
||||
data['required_taxes'] = this.state.required_taxes.filter((element, i) => element.id_network_tax === this.state.selectedTax.id)
|
||||
data['required_taxes'] = this.state.required_taxes.filter((element, i) => element.id_network_tax === this.state.selectedTax?.id)
|
||||
//data['required_taxes'] = this.state.required_taxes;
|
||||
data['id_company_type'] = this.state.companies_types_selected;
|
||||
data['identification_number'] = this.state.identification_number;
|
||||
|
@ -2146,6 +2414,7 @@ handleTaxSlection = (selectedTax) => {
|
|||
data['id_patente'] = this.state.id_patente;
|
||||
data['TVA'] = this.state.TVA;
|
||||
data['IRPP'] = this.state.IRPP;
|
||||
data['licence'] = this.state.licence;
|
||||
data['activity_type'] = this.state.activity_type;
|
||||
data['year_tax_paid_N_1'] = this.state.year_tax_paid_N;
|
||||
data['year_tax_paid_N_2'] = this.state.year_tax_paid_N_1;
|
||||
|
@ -2153,6 +2422,18 @@ handleTaxSlection = (selectedTax) => {
|
|||
data['latitude'] = this.state.data.latitude;
|
||||
data['longitude'] = this.state.data.longitude;
|
||||
data['player_id'] = this.state.player_id;
|
||||
data['accountType'] = this.state.accountType;
|
||||
data['cni_number'] = this.state.cni_number;
|
||||
data['birth_date'] = this.state.birth_date;
|
||||
data['birth_place'] = this.state.birth_place;
|
||||
data['birth_country'] = this.state.birth_country;
|
||||
data['nationality_country'] = this.state.nationality_country;
|
||||
data['father_lastname'] = this.state.father_lastname;
|
||||
data['father_firstname'] = this.state.father_firstname;
|
||||
data['mother_lastname'] = this.state.mother_lastname;
|
||||
data['mother_firstname'] = this.state.mother_firstname;
|
||||
data['signboard'] = this.state.signboard;
|
||||
data['entreprise_creation_date'] = this.state.entreprise_creation_date;
|
||||
for (let i in user) {
|
||||
data[i] = user[i];
|
||||
}
|
||||
|
@ -2257,8 +2538,8 @@ handleTaxSlection = (selectedTax) => {
|
|||
} else this.setState({isLoading: false});
|
||||
|
||||
} else {
|
||||
console.log("here===>>",data);
|
||||
createGeolocatedAccount(data).then((result) => {
|
||||
console.log("here===>>",data);
|
||||
console.log("here2===>>",result);
|
||||
if (result.success !== undefined && result.success === 1) {
|
||||
const message = result.category === 'super' ? I18n.t("HYPERVISOR_MUST_VALIDATE_SUPERVISOR")
|
||||
|
|
|
@ -228,6 +228,7 @@ export default class ForgottenPassword extends Component{
|
|||
iconName={'phone'}
|
||||
label={"Indicatif"}
|
||||
style={styles.inputCode}
|
||||
onChangeText={(text) => { this.setState({indicatif: text})}}
|
||||
value={this.state.indicatif}
|
||||
iconColor={theme.accent}
|
||||
/>
|
||||
|
@ -250,10 +251,12 @@ export default class ForgottenPassword extends Component{
|
|||
|
||||
onRenitPassword() {
|
||||
if(this.state.phone.length>0){
|
||||
console.log("Messi===>>")
|
||||
if(this.props.navigation.state.params.type!==null){
|
||||
let type= this.props.navigation.state.params.type === 0 ? 'user' : 'agent';
|
||||
console.log("Type user send", this.props.navigation.state.params.type);
|
||||
this.setState({isSending:true});
|
||||
console.log("Messi===>>",this.state.indicatif+this.state.phone,type)
|
||||
reinitpassword(this.state.indicatif+this.state.phone,type).then((data)=>{
|
||||
|
||||
this.setState({isSending:false})
|
||||
|
|
|
@ -594,7 +594,7 @@
|
|||
"MODIFICATION_ORDRE_RECETTE": "Modify recipe order",
|
||||
"SAISIE_NUMERO_QUITANCE": "Enter receipt number",
|
||||
"MODIFICATION_NUMERO_QUITANCE": "Modify receipt number",
|
||||
"SAISIR_QUITANCE": "Enter receipt",
|
||||
"SAISIR_QUITANCE": "Making a payment",
|
||||
"CODE_AGENT": "Agent code ",
|
||||
"AVIS_IMPOSITION": "Tax notice",
|
||||
"AGENT_INFORMATION": "Agent Information",
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"WELCOME": "Bienvenue sur iLink City !",
|
||||
"WELCOME": "Bienvenue sur Sim_ba mobile !",
|
||||
"WAITING_LONG": "Veuillez patienter un instant",
|
||||
"HELP": "Aide",
|
||||
"SIMPLE_USER": "Utilisateur simple",
|
||||
|
@ -248,7 +248,7 @@
|
|||
"HISTORY": "Historique",
|
||||
"WITHDRAWAL_TRANSACTION_HISTORY_DESCRIPTION": "Retrait de",
|
||||
"DEPOSIT_TRANSACTION_HISTORY_DESCRIPTION": "Dépôt de",
|
||||
"NO_WALLET_HISTORY": "Aucune transaction à ce jour",
|
||||
"NO_WALLET_HISTORY": "Aucun historique",
|
||||
"DEMAND_SEND": "Demande envoyé",
|
||||
"EPARGNE_DEPOSE": "Epargne déposée",
|
||||
"BREAK_EPARGNE_DONE": "Epargne cassée avec succès",
|
||||
|
@ -301,7 +301,7 @@
|
|||
"SUPER_ADMIN": "Super administrateur",
|
||||
"GEOLOCATED": "Agent géo-localisé",
|
||||
"DELETE_GEOLOCATED_USER": "Supprimer",
|
||||
"ADDRESS": "Adresse EX:TotalEnergies Bonateki",
|
||||
"ADDRESS": "Lieu dit EX:TotalEnergies Bonateki",
|
||||
"CREDIT": "Crédit",
|
||||
"NEXT": "Suivant",
|
||||
"PREVIOUS": "Précédent",
|
||||
|
@ -384,7 +384,7 @@
|
|||
"OK": "OK",
|
||||
"SIMPLE": "Simple",
|
||||
"BLOCKED": "Bloqué",
|
||||
"APP_FULLNAME": "Ilink City",
|
||||
"APP_FULLNAME": "Sim_ba mobile",
|
||||
"GUIDE_TITLE": "Bienvenue dans le Guide de",
|
||||
"GUIDE_USER_SIMPLE": "Guide pour un utilisateur",
|
||||
"GUIDE_AGENT": "Guide pour un agent",
|
||||
|
@ -544,8 +544,8 @@
|
|||
"MEMBERSHIP_REQUEST": "Demandes d'adhésion",
|
||||
"HISTORY_TYPE_REQUEST": "Requêtes",
|
||||
"TREAT": "Traité",
|
||||
"EXIT_TITLE": "Fermer iLink City !",
|
||||
"EXIT_DESC": "Voulez-vous vraiment fermer iLink City ?",
|
||||
"EXIT_TITLE": "Fermer Sim_ba mobile !",
|
||||
"EXIT_DESC": "Voulez-vous vraiment fermer Sim_ba mobile ?",
|
||||
"NO_TREAT": "Non traité",
|
||||
"EXIT": "Fermer",
|
||||
"PERIOD": "Période",
|
||||
|
@ -558,7 +558,7 @@
|
|||
"ACCOUNT_ACTIVATE_TEXT": "Votre compte a été activé avec succès !",
|
||||
"HISTORY_END": "Fin",
|
||||
"DONT_VALIDATE_ACCOUNT": "Compte non validé",
|
||||
"CONNEXION_SUCCESSFULL_TEXT": "Connexion réussie. Bienvenue dans iLink City ! ",
|
||||
"CONNEXION_SUCCESSFULL_TEXT": "Connexion réussie. Bienvenue dans Sim_ba mobile ! ",
|
||||
"UNVALIDATE_ACCOUNT_TEXT": "Votre hyperviseur n'a pas encore validé votre compte",
|
||||
"TEXT_NEED_POSITION": "Veuillez mettre à jour votre position !",
|
||||
"TITLE_NEED_POSITION": "Votre position doit être mise à jour",
|
||||
|
@ -571,12 +571,12 @@
|
|||
"TITLE_PROBLE_COME": "Un problème a été rencontré",
|
||||
"TITLE_SUPPRESS_CONFIRM": "Confirmation de suppression",
|
||||
"TEXT_SUPPRESS_CONFIRM": "Voulez vous vraiment supprimer cet utilisateur ?",
|
||||
"TEXT_ERROR_START_APPLICATION": "Une erreur est survenue au démarrage de iLink City. Veuillez relancer iLink City",
|
||||
"TEXT_UNABLE_TO_GET_YOUR_POSITION": "Impossible de recupérez votre position. Veuillez verifier que votre GPS est activé et relancez iLink City",
|
||||
"TEXT_ERROR_START_APPLICATION": "Une erreur est survenue au démarrage de Sim_ba mobile. Veuillez relancer Sim_ba mobile",
|
||||
"TEXT_UNABLE_TO_GET_YOUR_POSITION": "Impossible de recupérez votre position. Veuillez verifier que votre GPS est activé et relancez Sim_ba mobile",
|
||||
"RESTART": "RECOMMENCER",
|
||||
"TEXT_UNABLE_TO_GET_COUNTRY_INFO": "Impossible de recupérer les informations de votre pays. Verifiez votre connexion internet ! cliquez sur \"Ok\" pour reessayer",
|
||||
"TITLE_UNABLE_TO_AUTORISE": "Echec de l'autorisation",
|
||||
"MISSING_AUTORISATION_LOCATION": "iLink City n'est pas autorisé à acceder à votre position. Veuillez autoriser iLink City à accéder à votre localisation et relancez iLink City",
|
||||
"MISSING_AUTORISATION_LOCATION": "Sim_ba mobile n'est pas autorisé à acceder à votre position. Veuillez autoriser Sim_ba mobile à accéder à votre localisation et relancez Sim_ba mobile",
|
||||
"TEXT_FORGOTTEN_PASSWORD": "Saisissez votre identifiant,nous vous enverrons un nouveau mot de passe\n",
|
||||
"TEXT_NETWORK_UNABLE": "Réseau non disponible, voulez vous réessayer ?",
|
||||
"LOADING_TEXT_MARKERS": "Suite des points ",
|
||||
|
@ -585,7 +585,7 @@
|
|||
"LAUNCH_POINT_WITH_FILTER": "Voulez-vous relancer la recherche dans un rayon de ",
|
||||
"LOADING_TEXT_MARKERS_2": "autour",
|
||||
"UNABLE_GET_INFORMATION": "Problème de récuperation des Informations",
|
||||
"UNABLE_GET_INFORMATION_TEXT": "Vérifiez que votre GPS est activé et mis en mode haute precision et relancez iLink City",
|
||||
"UNABLE_GET_INFORMATION_TEXT": "Vérifiez que votre GPS est activé et mis en mode haute precision et relancez Sim_ba mobile",
|
||||
"TITLE_HELP_SOON": "Aide non disponible !",
|
||||
"YOUR_NETWORK": "Sélectionner votre réseau",
|
||||
"YOUR_NETWORK_SELECTED": "Classe de la taxe",
|
||||
|
@ -601,7 +601,7 @@
|
|||
"MODIFICATION_ORDRE_RECETTE": "Modifier ordre recette",
|
||||
"SAISIE_NUMERO_QUITANCE": "Saisir numéro quitance",
|
||||
"MODIFICATION_NUMERO_QUITANCE": "Modifier numéro quitance",
|
||||
"SAISIR_QUITANCE": "Saisir quitance",
|
||||
"SAISIR_QUITANCE": "Effectuer un paiement",
|
||||
"CODE_AGENT": "Code agent ",
|
||||
"AVIS_IMPOSITION": "Déclaration",
|
||||
"AGENT_INFORMATION": "Informations sur l'agent",
|
||||
|
@ -612,7 +612,7 @@
|
|||
"NUMERO_QUITANCE_SUCCES": "Numéro de quitance enregistré avec succès",
|
||||
"ORDRE_RECETTE_MODIFY_SUCCES": "Numéro ordre de recette modifié avec succès",
|
||||
"NUMERO_QUITANCE_MODIFY_SUCCES": "Numéro de quitance modifié avec succès",
|
||||
"TAXES_SUR_LA_PROPRETE": "Impôt général synthétique",
|
||||
"TAXES_SUR_LA_PROPRETE": "Impôt général synthétique *",
|
||||
"SAVE": "Enregistrer",
|
||||
"TEXT_SUPPRESS_CONFIRM_TAXE": "Voulez vous vraiment supprimer cette taxe?",
|
||||
"NUMERO_QUITANCE": "Numéro quitance",
|
||||
|
|
|
@ -245,7 +245,7 @@ export const saveQuitanceAction = (data, pay = false) => {
|
|||
}
|
||||
})
|
||||
.then(response => {
|
||||
console.log(response);
|
||||
console.log("Reponse Wallet===>>",response);
|
||||
dispatch(fetchModifyAvisImpositionSuccess(response));
|
||||
})
|
||||
.catch(error => {
|
||||
|
|
Loading…
Reference in New Issue