Changeset 2974 for sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments-network
- Timestamp:
- 04/18/2016 12:43:31 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments-network/includes/wordcamp-budgets-dashboard.php
r2862 r2974 729 729 'processed' => false, 730 730 'message' => null, 731 'date' => null, 731 732 732 733 'edit_all_url' => null, … … 742 743 $entry['amount'] = round( floatval( $line[13] ), 2 ); 743 744 $entry['currency'] = strtoupper( $line[14] ); 745 746 $date = date_create_from_format( 'm/d/y', $line[21] ); 747 $entry['date'] = strtotime( $date->format( 'Y-m-d 00:00:00' ) ); 744 748 } 745 749 break; … … 751 755 $entry['amount'] = round( floatval( $line[13] ), 2 ); 752 756 $entry['currency'] = strtoupper( $line[14] ); 757 758 $date = date_create_from_format( 'm/d/y', $line[21] ); 759 $entry['date'] = strtotime( $date->format( 'Y-m-d 00:00:00' ) ); 753 760 } 754 761 break; … … 801 808 802 809 $currency = false; 803 $amout = false; 810 $amount = false; 811 $date_key = '_wcbrr_date_paid'; 804 812 805 813 if ( $post->post_type == 'wcb_reimbursement' ) { … … 811 819 } 812 820 } 821 822 $date_key = '_wcbrr_date_paid'; 823 813 824 } elseif ( $post->post_type == 'wcp_payment_request' ) { 814 825 $currency = get_post_meta( $post->ID, '_camppayments_currency', true ); 815 826 $amount = floatval( get_post_meta( $post->ID, '_camppayments_payment_amount', true ) ); 827 828 $date_key = '_camppayments_date_vendor_paid'; 816 829 } 817 830 $amount = round( $amount, 2 ); … … 837 850 } 838 851 852 update_post_meta( $post->ID, $date_key, $entry['date'] ); 853 839 854 $post->post_status = 'wcb-paid'; 840 855 wp_insert_post( $post ); … … 852 867 } 853 868 869 update_post_meta( $post->ID, $date_key, $entry['date'] ); 870 854 871 $post->post_status = 'wcb-paid'; 855 872 wp_insert_post( $post );
Note: See TracChangeset
for help on using the changeset viewer.