.id
4768
.gutitle
jx_account_transactions
.title
jx_account_transactions
.file
.extension
.name
.user_id
7
.notes
.body
<!--- SteveCard account info --->
<tag.account function="get" whereclause="account.userid_unsignedint = #client_id#">
<var Account = return>





<div>

<div style="float:right;">
Balance: #dollarFormat(Account.total_double)#
</div>

<h3>SteveCard Transactions on Joelie</h3>

<div>&nbsp;</div>

<div style="margin-left:1em;">
<tag.txn function="get" whereclause="txn.type IN ('cash_in','pmt') AND txn.userid_unsignedint = #client_id# AND txn.site_id = #site_id#" orderby="txn.so_dateinserted DESC">
<var Txn = return>
<if Txn.recordcount EQ 0>
(none)
<else>
<small><div>
<loop query="Txn">
<var _title = reReplaceNoCase(Txn.title,"^(Debit|Credit):[ ]+","")>
<var _title = reReplaceNoCase(_title,"\|[^|]+\|","")>
<var _color = "black">
<var _sign = "+">
<if Txn.sum_double LT 0>
<var _color = "##a33">
<var _sign = "-">
</if>
<div style="color:#_color#; margin-bottom:0.2em;">
<div style="float:right; width:30%;" align="right">
#_sign#
#dollarFormat(abs(Txn.sum_double))#
</div>
<div style="float:left; width:15%;">
#_title#
</div>
<div style="float:left; width:19%; margin-left:1%;">
#timeAgo(Txn.so_dateinserted)#
</div>
<div style="margin-left:36%; margin-right:31%;">
<if Txn.notes NEQ "" AND Txn.name NEQ "">
<var _name = replaceNoCase(Txn.name,"|spf|","")>
<var _name = listFirst(_name,"|")>
<var _tbl = listLast(listFirst(_name,"-"),"/")>
<var _idnum = listLast(_name,"-")>
<if isValidGutitle(_tbl) EQ 1 AND isNumeric(_idnum)>
<var _href = "http://#this_domain#/jredirect?&j=#urlEncodedFormat('/#_tbl#-#_idnum#')#">
(<a href="#_href#">#escapeMarkup(Txn.notes)#</a>)
<else>
&nbsp;
</if>
<else>
&nbsp;
</if>
</div>
</div>
</loop>
</div></small>
</if>
</div>

<div>&nbsp;</div>

</div>
 
.sum_double
0.00
.producttype
.productincludes
.physical_unsignedint
0
.isprotected_unsignedint
0
.overridesiteheader_unsignedint
0