AppSales-Mobile icon indicating copy to clipboard operation
AppSales-Mobile copied to clipboard

Reports not showing number of units

Open ddaddy opened this issue 11 years ago • 9 comments

Is anyone else's reports today showing the days earnings but showing 0 for number of sales?

ddaddy avatar Oct 11 '13 17:10 ddaddy

Same for me. No number of sales for oktober 10th.

Morpheus2002 avatar Oct 12 '13 11:10 Morpheus2002

here is quick fix of this issue.

diff --git a/Classes/Report.m b/Classes/Report.m
--- a/Classes/Report.m
+++ b/Classes/Report.m
@@ -281,7 +281,7 @@
                if (transactionType) {
                        NSString *promoType = transaction.promoType;
                        //Some old reports have "FREE" as the promo code identifier for updates, in newer reports, the field is empty.
-                       if (promoType && ![promoType isEqualToString:@"FREE"]) { 
+                       if (promoType && ![promoType isEqualToString:@"FREE"] && ![promoType isEqualToString:@" "]) {
                                transactionType = [NSString stringWithFormat:@"%@.%@", transactionType, promoType];
                        }
                        NSInteger count = [[[transactionsByType objectForKey:productIdentifier] objectForKey:transactionType] integerValue];

This code does not fix for downloaded reports.

ktakayama avatar Oct 12 '13 11:10 ktakayama

The code above worked for me. Need to delete the last zero-report first and update again.

Morpheus2002 avatar Oct 12 '13 11:10 Morpheus2002

This code for downloaded reports.

diff --git a/Classes/Report.m b/Classes/Report.m
--- a/Classes/Report.m
+++ b/Classes/Report.m
@@ -466,9 +466,13 @@
        if (!combinedPaidTransactionTypes) {
                combinedPaidTransactionTypes = [[NSSet alloc] initWithObjects:
                                                        @"1",           //iPhone App
+                                                       @"1. ",         //iPhone App
                                                        @"1F",          //Universal App
+                                                       @"1F. ",        //Universal App
                                                        @"1T",          //iPad App
+                                                       @"1T. ",        //iPad App
                                                        @"F1",          //Mac App
+                                                       @"F1. ",        //Mac App
                                                        @"IA1",         //In-App Purchase
                                                        @"IA1. ",       //In-App Purchase
                                                        @"IA9",         //In-App Subscription

ktakayama avatar Oct 12 '13 11:10 ktakayama

Great thanks :+1:

ddaddy avatar Oct 12 '13 13:10 ddaddy

Hi, can you pull the patch ?

ckjbeos avatar Oct 15 '13 09:10 ckjbeos

ok Regards, i go to close my issue

ckjbeos avatar Oct 15 '13 09:10 ckjbeos

I've created new request. regards.

ktakayama avatar Oct 15 '13 11:10 ktakayama

Still got the issue #184 ...

Morpheus2002 avatar Oct 16 '13 11:10 Morpheus2002