@@ -748,7 +744,12 @@ class FormCreate extends Component {
"subject":"New Approval Request Document",
"name":dataApprover[0].EmpFullName[0],
"email":dataApprover[0].EMail[0],
"message":"Hello "+dataApprover[0].EmpFullName[0]+", you have new request for approve a document. Please check your account document management."
"message":"<p>Dengan hormat,</p><br /> \
<p>Terdapat pengajuan dokumen dengan No."+this.state.businessUnit+"-"+this.state.documentType+"-"+this.state.revisionCode+" "+this.state.subject+" yang diajukan oleh "+JSON.parse(localStorage.getItem("user"))["Full Name"]+". Untuk review dan approval silahkan klik link <a href='http://10.10.86.48:3000'>Link_Document</a></p><br /> \
<p>Terimakasih</p> \
<p>Regards</p><br /> \
<p>Admin</p><br /> \
<p><i>Ini adalah email otomatis, harap jangan me-reply ke alamat email ini</i></p>"
if(dataRevision[dataRevision.length-1].status.includes("Waiting for Approval")&&dataAllDocument[i].doc_status[0]=="New"){
if(
(dataRevision[dataRevision.length-1].status=="Waiting for Approval - Compliance Officer"&&JSON.parse(localStorage.getItem('dataLogin')).user_role[0].includes("Compliance Officer"))||
(dataRevision[dataRevision.length-1].status=="Waiting for Approval - "+JSON.parse(dataAllDocument[i].approver[0]).EmpFullName&&JSON.parse(localStorage.getItem('dataLogin')).user_role[0].includes("Approver")&&JSON.parse(localStorage.getItem("dataProfile")).LoginName==JSON.parse(dataAllDocument[i].approver[0]).LoginName)||
(dataRevision[dataRevision.length-1].status=="Waiting for Approval - Manager Representative"&&JSON.parse(localStorage.getItem('dataLogin')).user_role[0].includes("Manager Representative"))