I have a field called ‘AdjTotal’ which is the sum of a number of fields.I have a number of approvers that need to be notified and approve document then pass onto next approver. When the L1 Approval Button is selected it needs to send a link to either L2 or L3 for approval depending on the total of the ‘AdjTotal’.
How do I link/check the Total for each approval.
L1 Approval Button
tmpYesNo := @Prompt([YesNo]; “Approve Adjustment”; “Do you want to approve this adjustment?”);
@If( tmpYesNo = 1 ; @Success ;
@Return( @Prompt([Ok]; "@Return" ;"This adjustment has not been approved.") ) );
FIELD L1Status := “Approved”;
FIELD L1ApprovalDate := @Today ;
FIELD L1ApprovedBy := @Name([CN] ; @UserName)
Want to only send to L2 if Adj Total is over $1000 ???
SendTo := L2SupplyOpMgr : L2Backup;
@MailSend(SendTo;“”;“”;(“NOTIFICATION: GDT Warehouse Stock Adjustment Request”) : “”;“”;"NOTIFICATION: Please review and Authorise Stock Adjustment ";[IncludeDoclink])
Want to only send to L3 if Adj Total is over $5000 ???
SendTo := L3SupplyOpMgr : L3Backup;
@MailSend(SendTo;“”;“”;(“NOTIFICATION: GDT Warehouse Stock Adjustment Request”) : “”;“”;"NOTIFICATION: Please review and Authorise Stock Adjustment ";[IncludeDoclink])