Index: civicrm/trunk/sites/all/modules/paypal_audit/paypal_audit.module |
— | — | @@ -49,7 +49,7 @@ |
50 | 50 | |
51 | 51 | // find the 'tender type' and trxn id columns so we can tell paypal v payflow |
52 | 52 | $columns = $report->getReportResponse()->findColumnNumber( array('Tender Type', 'Transaction ID', 'PayPal Transaction ID' )); |
53 | | - |
| 53 | + watchdog( 'paypal_audit', 'PayPal custom report run complete.', array(), WATCHDOG_DEBUG ); |
54 | 54 | //loop through trxns (each trxn is a reportDataRow object), isolate paypal v non-paypal |
55 | 55 | foreach( $pp_trxns->getData() as $trxn ) { |
56 | 56 | if ( $trxn[ $tt_column ] == 'PayPal' ) { |
— | — | @@ -59,12 +59,17 @@ |
60 | 60 | } |
61 | 61 | } |
62 | 62 | |
| 63 | + watchdog( 'paypal_audit', 'PayPal transactions present in report: %d', array('%d' => count($pp_trxns)), WATCHDOG_DEBUG ); |
| 64 | + watchdog( 'paypal_audit', 'PayflowPro transactions present in report: %d', array('%d' => count($pfp_trxns)), WATCHDOG_DEBUG ); |
| 65 | + |
63 | 66 | //check for missing non-paypal |
64 | 67 | $pp_trxns_missing = paypal_audit_find_missing_pp_trxns( $pp_trxns ); |
| 68 | + watchdog( 'paypal_audit', 'PayPal transactions missing: %d', array( '%d', count($pp_trxns_missing)), WATCHDOG_DEBUG ); |
65 | 69 | array_push( $missing_trxns, paypal_audit_format_trxns( $pp_trxns_missing, $report, 'PayPal' )); |
66 | 70 | |
67 | 71 | //check for missing paypal |
68 | 72 | $pf_trxns_missing = paypal_audit_find_missing_pf_trxns( $pf_trxns ); |
| 73 | + watchdog( 'paypal_audit', 'PayflowPro transactions missing: %d', array( '%d', count($pfp_trxns_missing)), WATCHDOG_DEBUG ); |
69 | 74 | array_push( $missing_trxns, paypal_audit_format_trxns( $pf_trxns_missing, $report )); |
70 | 75 | |
71 | 76 | // add to $trxns and return |