Hi,
We have a high volume of daily purchase orders and we are using the Document Approval process to authorize them. The system is working great but purchasers are having a hard time knowing which orders have been rejected. Typically they get an e-mail notification stating that it has been rejected, but the e-mail does not make any reference to the order number. Where is the rejections template and what can I do to add this field in it? I only see the approval and overdue templates.
Thanks for your help,
Eduardo
0
Comments
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
SendPurchaseRejectionsMail(PurchaseHeader : Record "Purchase Header";ApprovalEntry : Record "Approval Entry")
SetTemplate(ApprovalEntry);
Subject := STRSUBSTNO(Text007,Text010);
Body := Text013;
SMTP.CreateMessage(SenderName,FromUser,SenderAddress,Subject,Body,TRUE);
SMTP.AddCC(Recipient);
Body := '';
Thanks for your help!
ED
Subject := STRSUBSTNO(Text007,Text010);
to
Subject := STRSUBSTNO(Text007,Text010) + ' ' + FORMAT(PurchaseHeader."Document Type") + ' : ' + PurchaseHeader."No.";