Correction de nombreux bugs
This commit is contained in:
parent
1755385e39
commit
6a7588759c
File diff suppressed because one or more lines are too long
|
@ -714,5 +714,7 @@
|
|||
"INVOICE_ID": "ID facture",
|
||||
"INVOICE": "Facture",
|
||||
"HISTORY": "Historique",
|
||||
"INFORMATION_MESSAGE": "Message d'information"
|
||||
"INFORMATION_MESSAGE": "Message d'information",
|
||||
"MONTANT_ASSURANCE_CONSOMME": "Montant de l'assurance consommé",
|
||||
"MONTANT_ASSURANCE_RESTANTE": "Montant de l'assurance restante"
|
||||
}
|
||||
|
|
|
@ -291,6 +291,7 @@ const ExecuterPrescriptionScreen = ({
|
|||
const [modalPrice, setModalPrice] = useState(false);
|
||||
const [modalListAssure, setModalListAssure] = useState(false);
|
||||
const [modalListMedicament, setModalListMedicament] = useState(false);
|
||||
const [tmpSheetId, setTmpSheetId] = useState(''+Date.now());
|
||||
|
||||
const [prestations, setPrestations] = useState([]);
|
||||
|
||||
|
@ -571,6 +572,7 @@ const ExecuterPrescriptionScreen = ({
|
|||
quantity: consultation.exams.filter(exam => elementToSetPrice.id === exam.id)[0].quantity
|
||||
}
|
||||
],
|
||||
tmp_sheet_id:tmpSheetId,
|
||||
});
|
||||
} else {
|
||||
setConsultation({
|
||||
|
@ -588,6 +590,7 @@ const ExecuterPrescriptionScreen = ({
|
|||
care_condition: consultation._care_condition,
|
||||
act_action: "INSERT",
|
||||
act_type: "PRESCRIPTION",
|
||||
tmp_sheet_id:tmpSheetId,
|
||||
prescriptions: [
|
||||
{
|
||||
unit_price: values.price,
|
||||
|
@ -767,7 +770,7 @@ const ExecuterPrescriptionScreen = ({
|
|||
<TouchableOpacity
|
||||
style={[
|
||||
styles.contentActionModalBottom,
|
||||
{borderBottomColor: Color.borderColor, width: "100%"},
|
||||
{borderBottomColor: Color.borderColor, width: "100%",flexDirection: 'column',},
|
||||
]}
|
||||
key={item.id}
|
||||
onPress={() => {
|
||||
|
@ -797,6 +800,12 @@ const ExecuterPrescriptionScreen = ({
|
|||
<Text body2 semibold>
|
||||
{`${item.user.firstname !== null ? item.user.firstname : ''} ${item.user.lastname !== null ? item.user.lastname : ''}`}
|
||||
</Text>
|
||||
<Text footnote>
|
||||
{`${I18n.t('MONTANT_ASSURANCE_CONSOMME')}: ${item.insurance_consumed_amount}`}
|
||||
</Text>
|
||||
<Text footnote>
|
||||
{`${I18n.t('MONTANT_ASSURANCE_RESTANTE')}: ${item.insurance_remaining_amount}`}
|
||||
</Text>
|
||||
</TouchableOpacity>
|
||||
{item.beneficiaries.map((beneficiary) => (
|
||||
<TouchableOpacity style={styles.beneficiarySubSection}
|
||||
|
@ -818,9 +827,15 @@ const ExecuterPrescriptionScreen = ({
|
|||
}}>
|
||||
<View style={{width: 10}}/>
|
||||
<View style={{paddingHorizontal: 10, alignItems: 'flex-start'}}>
|
||||
<Text subhead semibold>
|
||||
<Text subhead semibold textAlign="left">
|
||||
{`${beneficiary.firstname !== null ? beneficiary.firstname : ''} ${beneficiary.lastname !== null ? beneficiary.lastname : ''} (${I18n.t('AYANT_DROITS')})`}
|
||||
</Text>
|
||||
<Text footnote>
|
||||
{`${I18n.t('MONTANT_ASSURANCE_CONSOMME')}: ${beneficiary.insurance_consumed_amount}`}
|
||||
</Text>
|
||||
<Text footnote>
|
||||
{`${I18n.t('MONTANT_ASSURANCE_RESTANTE')}: ${beneficiary.insurance_remaining_amount}`}
|
||||
</Text>
|
||||
</View>
|
||||
</TouchableOpacity>
|
||||
))}
|
||||
|
|
|
@ -277,6 +277,7 @@ const ModifierExecutionPrescriptionScreen = ({
|
|||
const [beneficiary, setBeneficiary] = useState(null);
|
||||
const [medicament, setMedicament] = useState(null);
|
||||
const [elementToSetPrice, setElementToSetPrice] = useState(null);
|
||||
const [tmpSheetId, setTmpSheetId] = useState(''+Date.now());
|
||||
|
||||
const wizard = useRef();
|
||||
const [isFirstStep, setIsFirstStep] = useState(true);
|
||||
|
@ -572,6 +573,7 @@ const ModifierExecutionPrescriptionScreen = ({
|
|||
quantity: consultation.exams.filter(exam => elementToSetPrice.id === exam.id)[0].quantity
|
||||
}
|
||||
],
|
||||
tmp_sheet_id:tmpSheetId,
|
||||
});
|
||||
} else {
|
||||
setConsultation({
|
||||
|
@ -596,6 +598,7 @@ const ModifierExecutionPrescriptionScreen = ({
|
|||
quantity: consultation.prescriptions.filter(prescription => elementToSetPrice.id === prescription.id)[0].quantity
|
||||
}
|
||||
],
|
||||
tmp_sheet_id:tmpSheetId,
|
||||
});
|
||||
}
|
||||
}}>
|
||||
|
@ -768,7 +771,7 @@ const ModifierExecutionPrescriptionScreen = ({
|
|||
<TouchableOpacity
|
||||
style={[
|
||||
styles.contentActionModalBottom,
|
||||
{borderBottomColor: Color.borderColor, width: "100%"},
|
||||
{borderBottomColor: Color.borderColor, width: "100%",flexDirection: 'column',},
|
||||
]}
|
||||
key={item.id}
|
||||
onPress={() => {
|
||||
|
@ -798,6 +801,12 @@ const ModifierExecutionPrescriptionScreen = ({
|
|||
<Text body2 semibold>
|
||||
{`${item.user.firstname !== null ? item.user.firstname : ''} ${item.user.lastname !== null ? item.user.lastname : ''}`}
|
||||
</Text>
|
||||
<Text footnote>
|
||||
{`${I18n.t('MONTANT_ASSURANCE_CONSOMME')}: ${item.insurance_consumed_amount}`}
|
||||
</Text>
|
||||
<Text footnote>
|
||||
{`${I18n.t('MONTANT_ASSURANCE_RESTANTE')}: ${item.insurance_remaining_amount}`}
|
||||
</Text>
|
||||
</TouchableOpacity>
|
||||
{item.beneficiaries.map((beneficiary) => (
|
||||
<TouchableOpacity style={styles.beneficiarySubSection}
|
||||
|
@ -819,9 +828,15 @@ const ModifierExecutionPrescriptionScreen = ({
|
|||
}}>
|
||||
<View style={{width: 10}}/>
|
||||
<View style={{paddingHorizontal: 10, alignItems: 'flex-start'}}>
|
||||
<Text subhead semibold>
|
||||
<Text subhead semibold textAlign="left">
|
||||
{`${beneficiary.firstname !== null ? beneficiary.firstname : ''} ${beneficiary.lastname !== null ? beneficiary.lastname : ''} (${I18n.t('AYANT_DROITS')})`}
|
||||
</Text>
|
||||
<Text footnote>
|
||||
{`${I18n.t('MONTANT_ASSURANCE_CONSOMME')}: ${beneficiary.insurance_consumed_amount}`}
|
||||
</Text>
|
||||
<Text footnote>
|
||||
{`${I18n.t('MONTANT_ASSURANCE_RESTANTE')}: ${beneficiary.insurance_remaining_amount}`}
|
||||
</Text>
|
||||
</View>
|
||||
</TouchableOpacity>
|
||||
))}
|
||||
|
|
|
@ -294,6 +294,8 @@ const ModifierFeuilleSoinScreen = ({
|
|||
const [isNumeroAssureSearch, setIsNumeroAssureSearch] = useState(false);
|
||||
const [isPhoneAssureSearch, setIsPhoneAssureSearch] = useState(false);
|
||||
|
||||
const [tmpSheetId, setTmpSheetId] = useState(''+Date.now());
|
||||
|
||||
const [datePrestation, setDatePrestation] = useState('' + moment(new Date()).format('YYYY-MM-DD HH:mm'));
|
||||
const [showDatePrestation, setShowDatePrestation] = useState(false);
|
||||
const [dateDebutGrossesse, setDateDebutGrossesse] = useState(null);
|
||||
|
@ -745,10 +747,11 @@ const ModifierFeuilleSoinScreen = ({
|
|||
fetchCheckInsuranceCoverageAmount({
|
||||
insurance_id: assure.id,
|
||||
beneficiary_id: beneficiary !== null ? beneficiary.id : null,
|
||||
care_condition: careConditon,
|
||||
care_condition: consultation._care_condition,
|
||||
act_action: "UPDATE",
|
||||
act_type: "PERFORMANCE",
|
||||
act_id: values.code_acte.id,
|
||||
tmp_sheet_id:tmpSheetId,
|
||||
performances: [
|
||||
{
|
||||
amount: values.amount_prestation,
|
||||
|
@ -844,7 +847,7 @@ const ModifierFeuilleSoinScreen = ({
|
|||
fetchGetAmountConsultation({
|
||||
network_id: wallet.id_network,
|
||||
amount: '' + value,
|
||||
care_condition: careConditon
|
||||
care_condition: consultation._care_condition
|
||||
});
|
||||
}}
|
||||
onBlur={handleBlur('amount_prestation')}
|
||||
|
@ -1033,7 +1036,7 @@ const ModifierFeuilleSoinScreen = ({
|
|||
fetchGetAmountConsultation({
|
||||
network_id: wallet.id_network,
|
||||
amount: '' + text,
|
||||
care_condition: careConditon
|
||||
care_condition: consultation._care_condition
|
||||
});
|
||||
}}
|
||||
/>
|
||||
|
@ -2036,10 +2039,8 @@ const ModifierFeuilleSoinScreen = ({
|
|||
<TouchableOpacity
|
||||
style={[
|
||||
styles.contentActionModalBottom,
|
||||
{
|
||||
borderBottomColor: Color.borderColor,
|
||||
width: "100%"
|
||||
},
|
||||
{borderBottomColor: Color.borderColor, width: "100%",flexDirection: 'column',},
|
||||
|
||||
]}
|
||||
key={item.id}
|
||||
onPress={() => {
|
||||
|
@ -2069,6 +2070,12 @@ const ModifierFeuilleSoinScreen = ({
|
|||
<Text body2 semibold>
|
||||
{`${item.user.firstname !== null ? item.user.firstname : ''} ${item.user.lastname !== null ? item.user.lastname : ''}`}
|
||||
</Text>
|
||||
<Text footnote>
|
||||
{`${I18n.t('MONTANT_ASSURANCE_CONSOMME')}: ${item.insurance_consumed_amount}`}
|
||||
</Text>
|
||||
<Text footnote>
|
||||
{`${I18n.t('MONTANT_ASSURANCE_RESTANTE')}: ${item.insurance_remaining_amount}`}
|
||||
</Text>
|
||||
</TouchableOpacity>
|
||||
{item.beneficiaries.map((beneficiary) => (
|
||||
<TouchableOpacity style={styles.beneficiarySubSection}
|
||||
|
@ -2089,9 +2096,15 @@ const ModifierFeuilleSoinScreen = ({
|
|||
}}>
|
||||
<View style={{width: 10}}/>
|
||||
<View style={{paddingHorizontal: 10, alignItems: 'flex-start'}}>
|
||||
<Text subhead semibold>
|
||||
<Text subhead semibold textAlign="left">
|
||||
{`${beneficiary.firstname !== null ? beneficiary.firstname : ''} ${beneficiary.lastname !== null ? beneficiary.lastname : ''} (${I18n.t('AYANT_DROITS')})`}
|
||||
</Text>
|
||||
<Text footnote>
|
||||
{`${I18n.t('MONTANT_ASSURANCE_CONSOMME')}: ${beneficiary.insurance_consumed_amount}`}
|
||||
</Text>
|
||||
<Text footnote>
|
||||
{`${I18n.t('MONTANT_ASSURANCE_RESTANTE')}: ${beneficiary.insurance_remaining_amount}`}
|
||||
</Text>
|
||||
</View>
|
||||
</TouchableOpacity>
|
||||
))}
|
||||
|
@ -2481,8 +2494,7 @@ const ModifierFeuilleSoinScreen = ({
|
|||
pregnancy_end_at: values.pregnancy_end_at,
|
||||
performances: consultation.performances,
|
||||
prescriptions: consultation.prescriptions,
|
||||
exams: consultation.exams,
|
||||
tmp_sheet_id: Date.now()
|
||||
exams: consultation.exams
|
||||
});
|
||||
},
|
||||
});
|
||||
|
|
|
@ -292,6 +292,7 @@ const SaisirFeuilleSoinScreen = ({
|
|||
const [showDateDebutGrossessePicker, setShowDateDebutGrossessePicker] = useState(false);
|
||||
const [showDateFinGrossessePicker, setShowDateFinGrossessePicker] = useState(false);
|
||||
const [careConditon, setCareCondition] = useState(null);
|
||||
const [tmpSheetId, setTmpSheetId] = useState(''+Date.now());
|
||||
|
||||
const [user, setUser] = useState(null);
|
||||
const [assure, setAssure] = useState(null);
|
||||
|
@ -799,6 +800,7 @@ const SaisirFeuilleSoinScreen = ({
|
|||
care_condition: careConditon,
|
||||
act_action: "INSERT",
|
||||
act_type: "PERFORMANCE",
|
||||
tmp_sheet_id:tmpSheetId,
|
||||
performances: [
|
||||
{
|
||||
amount: values.amount_prestation,
|
||||
|
@ -1382,7 +1384,7 @@ const SaisirFeuilleSoinScreen = ({
|
|||
<TouchableOpacity
|
||||
style={[
|
||||
styles.contentActionModalBottom,
|
||||
{borderBottomColor: Color.borderColor, width: "100%"},
|
||||
{borderBottomColor: Color.borderColor, width: "100%",flexDirection: 'column',},
|
||||
]}
|
||||
key={item.id}
|
||||
onPress={() => {
|
||||
|
@ -1413,6 +1415,12 @@ const SaisirFeuilleSoinScreen = ({
|
|||
<Text body2 semibold>
|
||||
{`${item.user.firstname !== null ? item.user.firstname : ''} ${item.user.lastname !== null ? item.user.lastname : ''}`}
|
||||
</Text>
|
||||
<Text footnote>
|
||||
{`${I18n.t('MONTANT_ASSURANCE_CONSOMME')}: ${item.insurance_consumed_amount}`}
|
||||
</Text>
|
||||
<Text footnote>
|
||||
{`${I18n.t('MONTANT_ASSURANCE_RESTANTE')}: ${item.insurance_remaining_amount}`}
|
||||
</Text>
|
||||
</TouchableOpacity>
|
||||
{item.beneficiaries.map((beneficiary) => (
|
||||
<TouchableOpacity style={styles.beneficiarySubSection}
|
||||
|
@ -1435,9 +1443,15 @@ const SaisirFeuilleSoinScreen = ({
|
|||
}}>
|
||||
<View style={{width: 10}}/>
|
||||
<View style={{paddingHorizontal: 10, alignItems: 'flex-start'}}>
|
||||
<Text subhead semibold>
|
||||
<Text subhead semibold textAlign="left">
|
||||
{`${beneficiary.firstname !== null ? beneficiary.firstname : ''} ${beneficiary.lastname !== null ? beneficiary.lastname : ''} (${I18n.t('AYANT_DROITS')})`}
|
||||
</Text>
|
||||
<Text footnote>
|
||||
{`${I18n.t('MONTANT_ASSURANCE_CONSOMME')}: ${beneficiary.insurance_consumed_amount}`}
|
||||
</Text>
|
||||
<Text footnote>
|
||||
{`${I18n.t('MONTANT_ASSURANCE_RESTANTE')}: ${beneficiary.insurance_remaining_amount}`}
|
||||
</Text>
|
||||
</View>
|
||||
</TouchableOpacity>
|
||||
))}
|
||||
|
@ -1577,8 +1591,7 @@ const SaisirFeuilleSoinScreen = ({
|
|||
pregnancy_end_at: values.pregnancy_end_at,
|
||||
performances: prestations,
|
||||
prescriptions: prescriptions,
|
||||
exams: examens,
|
||||
tmp_sheet_id: Date.now()
|
||||
exams: examens
|
||||
})
|
||||
}
|
||||
},
|
||||
|
|
|
@ -714,5 +714,7 @@
|
|||
"INVOICE_ID": "ID facture",
|
||||
"INVOICE": "Facture",
|
||||
"HISTORY": "Historique",
|
||||
"INFORMATION_MESSAGE": "Message d'information"
|
||||
"INFORMATION_MESSAGE": "Message d'information",
|
||||
"MONTANT_ASSURANCE_CONSOMME": "Montant de l'assurance consommé",
|
||||
"MONTANT_ASSURANCE_RESTANTE": "Montant de l'assurance restante"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue