Kaynağa Gözat

add default value to project financial summary

tags/Baseline_30082024_FRONTEND_UAT
cyril.tsui 1 yıl önce
ebeveyn
işleme
e5672ab22c
2 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. +1
    -1
      src/components/ProjectFinancialSummary/ProjectFinancialCard.tsx
  2. +1
    -1
      src/components/ProjectFinancialSummary/ProjectFinancialSummary.tsx

+ 1
- 1
src/components/ProjectFinancialSummary/ProjectFinancialCard.tsx Dosyayı Görüntüle

@@ -96,7 +96,7 @@ const ProjectFinancialCard: React.FC<Props> = ({
Total Cumulative Expenditure
</div>
<div className="text-lg font-medium ml-5" style={{ color: "#6b87cf" }}>
{TotalCumulative?.toLocaleString(undefined, { minimumFractionDigits: 2, maximumFractionDigits: 2 })}
{TotalCumulative.toLocaleString(undefined, { minimumFractionDigits: 2, maximumFractionDigits: 2 })}
</div>
<hr />
<div className="text-sm font-medium ml-5" style={{ color: "#898d8d" }}>


+ 1
- 1
src/components/ProjectFinancialSummary/ProjectFinancialSummary.tsx Dosyayı Görüntüle

@@ -398,7 +398,7 @@ const columns2 = [
<div className="ml-10 mr-10" style={{ display: 'flex', flexWrap: 'wrap', justifyContent: 'start'}}>
{projectFinancialData.map((record:any, index:any) => (
<div className="hover:cursor-pointer ml-4 mt-5 mb-4 inline-block" key={index} onClick={(r) => handleCardClick(record,index)}>
<ProjectFinancialCard Title={record.teamName} TotalActiveProjectNumber={record.projectNo} TotalFees={record.totalFee} TotalBudget={record.totalBudget} TotalCumulative={record.cumulativeExpenditure} TotalInvoicedAmount={record.totalInvoiced} TotalReceivedAmount={record.totalReceived} CashFlowStatus={record.cashFlowStatus} CostPerformanceIndex={record.cpi} ClickedIndex={isCardClickedIndex} Index={index}/>
<ProjectFinancialCard Title={record.teamName} TotalActiveProjectNumber={record.projectNo} TotalFees={record.totalFee} TotalBudget={record.totalBudget} TotalCumulative={record.cumulativeExpenditure ?? 0} TotalInvoicedAmount={record.totalInvoiced ?? 0} TotalReceivedAmount={record.totalReceived ?? 0} CashFlowStatus={record.cashFlowStatus ?? "Negative"} CostPerformanceIndex={record.cpi ?? 0} ClickedIndex={isCardClickedIndex} Index={index}/>
</div>
))}
</div>


Yükleniyor…
İptal
Kaydet