Your Balance body<=
[<< Back]
{'userid'}); $sth = $dbh->prepare("SELECT date, amt, method, note FROM bzrpayout WHERE userid=?"); $sth->execute($remote->{'userid'}); my $hist; while (my $po = $sth->fetchrow_hashref) { unless ($hist) { $hist .= ""; $hist .= "Date | Amount | Method | Note |
---|---|---|---|
$po->{'date'} | \$" . sprintf("%0.02f", $po->{'amt'}) . " | $po->{'method'} | $po->{'note'} |
Date | Amount | Balance | Note |
---|---|---|---|
$r->{'date'} | "; $owed += $r->{'owed'}; $ret .= sprintf("\$%0.02f | ", $r->{'amt'}); $ret .= sprintf("\$%0.02f | ", $r->{'owed'}); my $extra; if ($r->{'expired'} > 0) { $extra .= sprintf(" (\$%0.02f expired after 3 months unclaimed)", $r->{'expired'}); } my $time = LJ::mysqldate_to_time($r->{'date'}); my $exptime = $time + 86400*93; if ($r->{'owed'} > 0 && $now < $exptime) { $extra .= ", balance will expire in " . int(($exptime - $now) / 86400) . " days"; } $ret .= "Bazaar \#$r->{'bzid'}$extra | "; $ret .= "
Amount owed: | " . sprintf("\$%0.02f", $owed) . " |
"; $ret .= "Include your LiveJournal username, as well as a mailing address to send your check if your balance is over \$50. If you'd prefer to not get paid (and instead generate coupons later at this URL), indicate as such in your letter."; $ret .= ""; $ret .= ""; return $ret; } if ($owed >= 50) { $ret .= ""; } else { $ret .= ""; } $ret .= "Important note: coupons are either used or unused... they don't maintain a balance. As such, only generate a coupon for the amount you intend to use. For your protection, we only allow coupons to be generated for the amounts \$5.00 - \$25.00. You may use multiple coupons in an order, if your order will be more than \$25.00. p?>"; $ret .= ""; return $ret; } _code?> <=body page?>" . LJ::Pay::postal_address_text() . "