sunnyman's (sunnyman) wrote in changelog,
sunnyman's
sunnyman
changelog

[ljcom] r12332: LJSUP-12390: Implement statistics report...

Committer: vtroitsky
LJSUP-12390: Implement statistics reports subsystem
U   trunk/htdocs/admin/accounts/paidsummary.bml
Modified: trunk/htdocs/admin/accounts/paidsummary.bml
===================================================================
--- trunk/htdocs/admin/accounts/paidsummary.bml	2012-07-23 11:09:57 UTC (rev 12331)
+++ trunk/htdocs/admin/accounts/paidsummary.bml	2012-07-23 11:36:58 UTC (rev 12332)
@@ -267,9 +267,14 @@
             $subkey = $amount;
         } 
         elsif ($item eq 'selfpromo') {
-            my $sp_type = $it->get_prop('selfpromo') || 'entry';
-            my $sp_country = $it->get_prop('selfpromo_country') || 'cyr';
-            $subkey = "selfpromo $sp_type $sp_country";
+            my $subitem = $it->get_subitem();
+            if ($subitem && $subitem =~ /^commercial/) {
+                $subkey = 'calendar';
+            } else { 
+                my $sp_type = $it->get_prop('selfpromo') || 'entry';
+                my $sp_country = $it->get_prop('selfpromo_country') || 'cyr';
+                $subkey = "selfpromo $sp_type $sp_country";
+            }
         }
         else {
             $subkey = ( UNIVERSAL::isa($it, 'LJ::Pay::Payment::PayItem::Addon::Sized')

Tags: bml, ljcom, sunnyman, vtroitsky
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