diff --git a/src/components/Partner_Facture.js b/src/components/Partner_Facture.js index 26db87f..d9ef589 100644 --- a/src/components/Partner_Facture.js +++ b/src/components/Partner_Facture.js @@ -467,7 +467,7 @@ const Partner_Facture = (props) => { setLoading(false); if (String(res.data.status) === String("true")) { //console.log(" In Getall_Invoice_Paiement res.data.status = " + res.data.status); - //console.log(" In Getall_Invoice_Paiement res.data.message r_class = " + res.data.message); + console.log(" In Getall_Invoice_Paiement res.data.message r_class = " + res.data.message); setGetall_Invoice_Paiement_api("true"); setGetall_Invoice_Paiement_result(res.data.message); @@ -3827,12 +3827,16 @@ const Partner_Facture = (props) => { {String(header_submenu) === "paiement" &&
- {Getall_Invoice_Paiement_result && + {New_Getall_Invoice_Paiement_Payed_Remain_Amounts_result && New_Getall_Invoice_Paiement_Payed_Remain_Amounts_result.length > 0 &&
{New_Getall_Invoice_Paiement_Payed_Remain_Amounts_result &&
- {New_Getall_Invoice_Paiement_Payed_Remain_Amounts_result[0]['remaining_amount'] && + + {New_Getall_Invoice_Paiement_Payed_Remain_Amounts_result + && New_Getall_Invoice_Paiement_Payed_Remain_Amounts_result[0] && + New_Getall_Invoice_Paiement_Payed_Remain_Amounts_result[0]['remaining_amount'] && + parseFloat(New_Getall_Invoice_Paiement_Payed_Remain_Amounts_result[0]['remaining_amount']) > 0 && } - {New_Getall_Invoice_Paiement_Payed_Remain_Amounts_result[0]['remaining_amount'] && + {New_Getall_Invoice_Paiement_Payed_Remain_Amounts_result + && New_Getall_Invoice_Paiement_Payed_Remain_Amounts_result[0] && + New_Getall_Invoice_Paiement_Payed_Remain_Amounts_result[0]['remaining_amount'] && + + parseFloat(New_Getall_Invoice_Paiement_Payed_Remain_Amounts_result[0]['remaining_amount']) <= 0 && } + }
}