t(`Please check the corresponding Invoice No. <br>`)+ `${response.invoiceList.join(", ")}`, t)
t(`Please check the corresponding Invoice No. The invoice is imported. <br>`)+ `${response.invoiceList.join(", ")}`, t)
.then(() => {
window.location.reload()
})
}
else if (response.duplicateItem.length >= 1){
errorDialogWithContent(t("Import Fail"),
t(`Please check the corresponding Invoice No. The below invoice has duplicated number. <br>`)+ `${response.duplicateItem.join(", ")}`, t)
.then(() => {
window.location.reload()
})
}else if (response.paymentMilestones.length >= 1){
errorDialogWithContent(t("Import Fail"),
t(`The payment milestone does not match with records. Please check the corresponding Invoice No. <br>`)+ `${concatListOfObject(response.paymentMilestones)}`, t)
t(`Please fill the mandatory field at Row <br> ${response.emptyRowList.join(", ")}`), t)
.then(() => {
window.location.reload()
})
}
else if (response.projectList.length >= 1){
errorDialogWithContent(t("Import Fail"),
t(`Please check the corresponding project code <br> ${response.projectList.join(", ")}`), t)
.then(() => {
// window.location.reload()
})
}
else if (response.invoiceList.length >= 1){
errorDialogWithContent(t("Import Fail"),
t(`Please check the corresponding Invoice No. The invoice has not yet issued. <br>`)+ `${response.invoiceList.join(", ")}`, t)
.then(() => {
window.location.reload()
})
}
else if (response.duplicateItem.length >= 1){
errorDialogWithContent(t("Import Fail"),
t(`Please check the corresponding Invoice No. The below invoice has duplicated number. <br>`)+ `${response.duplicateItem.join(", ")}`, t)
.then(() => {
window.location.reload()
})
}else if (response.paymentMilestones.length >= 1){
errorDialogWithContent(t("Import Fail"),
t(`The payment milestone does not match with records. Please check the corresponding Invoice No. <br>`)+ `${concatListOfObject2(response.paymentMilestones)}`, t)