wisest owl (wisest_owl) wrote in changelog,
wisest owl
wisest_owl
changelog

[ljcom] r12996: LJSUP-13388: LJ Shop - Styles

Committer: wisest-owl
LJSUP-13388: LJ Shop - Styles

U   trunk/htdocs/admin/accounts/paidsummary.bml
Modified: trunk/htdocs/admin/accounts/paidsummary.bml
===================================================================
--- trunk/htdocs/admin/accounts/paidsummary.bml	2012-12-05 06:05:30 UTC (rev 12995)
+++ trunk/htdocs/admin/accounts/paidsummary.bml	2012-12-05 07:48:04 UTC (rev 12996)
@@ -352,6 +352,16 @@
         elsif ($item eq 'donate') { # LJSUP-14373: Remove donate and repost from paid summary
             next;
         }
+        elsif ($item eq 'theme') {
+            my ($is_buyout) = $it->{'subitem'} =~ m#^theme-\d+:\d+:(\d+)#;
+            if ($is_buyout) {
+                $subkey = 'theme_buyout';
+            } elsif ($it->get_prop ('have_discount') > 0) {
+                $subkey = 'theme_discount';
+            } else {
+                $subkey = 'theme_purchase';
+            }
+        }
         else {
             $subkey = ( UNIVERSAL::isa($it, 'LJ::Pay::Payment::PayItem::Addon::Sized')
                           ? ((split('-', $it->{subitem}))[0] . '-')

Tags: bml, ljcom, wisest-owl
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments