Created
April 29, 2011 18:00
-
-
Save jamiely/948719 to your computer and use it in GitHub Desktop.
Bond e-mail fix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfelseif ListGetAt(record,13) NEQ "!NA"> <!--- This bond has a date for pricing, but does not have a price yet ---> | |
<cfparam name="application.bad_bonds" default="#StructNew()#" /> | |
<cfset variables.bad_bond_cusip = ListGetAt(record,1) /> | |
<cfif NOT StructKeyExists(application.bad_bonds, bad_bond_cusip) | |
OR DateDiff("h", application.bad_bonds[bad_bond_cusip], Now()) GT 6> | |
<!--- only send if we dont have a record of sending it or it has been 6 hours since we last sent one ---> | |
<cfmail to="#application.admin_Email#" from="[email protected]" subject="#application.URL#: Morning Process: Bond Record with bad data"> | |
The following record had bad data in either price or shares outstanding on #application.title#: | |
#record# | |
</cfmail> | |
<cfset application.bad_bonds[bad_bond_cusip] = Now() /> | |
</cfif> | |
</cfif> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment